-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve documentation #32
Comments
Whilst this is a big task, a couple of examples1 would probably go a long way to helping newcomers to zerocopy. At its very simplest, it could take the form of a series of links to other repositories, each of which shows usage zerocopy in a common/canonical way. If you could point me to an example or any notes or other resources for packet serialisation I'd be happy to try and knock something up and crate a PR. Footnotes
|
Thanks for offering to help, @tim-seoss! I unfortunately don't have time to help with this right now, but I'll let you know when I do 🙂 |
Hey @tim-seoss, still don't have a ton of time to devote to mentoring this, but I realized that I could at least point you to some locations that have a lot of zerocopy uses you could take a look at. If you're interested in writing these up, I'd suggest at least pinging this thread first to confirm that a given example uses a pattern/style we'd like to encourage. These are both in Fuchsia; the latter is specifically a packet parsing/serializing library, so it's got a lot of more gnarly uses of zerocopy. I'd just use the search function to search for "zerocopy" or the names of individual types, and that'll be a good starting point. |
This PR adds examples to most methods of `FromBytes`, and separately documents `derive(FromBytes)`. Theoretical soundness requirements are placed with trait documentation, and the details of the derive's analysis is placed in the derive documentation. This PR follows the pattern of #505. Makes progress towards #32.
This PR adds examples to most methods of `FromBytes`, and separately documents `derive(FromBytes)`. Theoretical soundness requirements are placed with trait documentation, and the details of the derive's analysis is placed in the derive documentation. This PR follows the pattern of #505. Makes progress towards #32.
This PR adds examples to most methods of `FromBytes`, and separately documents `derive(FromBytes)`. Theoretical soundness requirements are placed with trait documentation, and the details of the derive's analysis is placed in the derive documentation. This PR follows the pattern of #505. Makes progress towards #32.
This PR adds examples to most methods of `FromBytes`, and separately documents `derive(FromBytes)`. Theoretical soundness requirements are placed with trait documentation, and the details of the derive's analysis is placed in the derive documentation. This PR follows the pattern of #505. Makes progress towards #32.
This PR adds examples to most methods of `AsBytes`, and separately documents `derive(AsBytes)`. Theoretical soundness requirements are placed with trait documentation, and the details of the derive's analysis is placed in the derive documentation. This PR follows the pattern of #505. Makes progress towards #32.
This PR adds examples to most methods of `AsBytes`, and separately documents `derive(AsBytes)`. Theoretical soundness requirements are placed with trait documentation, and the details of the derive's analysis is placed in the derive documentation. This PR follows the pattern of #505. Makes progress towards #32.
This PR adds examples to most methods of `AsBytes`, and separately documents `derive(AsBytes)`. Theoretical soundness requirements are placed with trait documentation, and the details of the derive's analysis is placed in the derive documentation. This PR follows the pattern of #505. Makes progress towards #32.
This PR adds examples to the documentation of `transmute!`, `transmute_ref!` and `transmute_mut!`. Makes progress towards #32.
This PR adds examples to the documentation of `transmute!`, `transmute_ref!` and `transmute_mut!`. Makes progress towards #32.
This PR adds examples to most methods of `AsBytes`, and separately documents `derive(AsBytes)`. Theoretical soundness requirements are placed with trait documentation, and the details of the derive's analysis is placed in the derive documentation. This PR follows the pattern of #505. Makes progress towards #32.
This PR adds examples to most methods of `AsBytes`, and separately documents `derive(AsBytes)`. Theoretical soundness requirements are placed with trait documentation, and the details of the derive's analysis is placed in the derive documentation. This PR follows the pattern of #505. Makes progress towards #32.
This PR adds examples to most methods of `AsBytes`, and separately documents `derive(AsBytes)`. Theoretical soundness requirements are placed with trait documentation, and the details of the derive's analysis is placed in the derive documentation. This PR follows the pattern of #505. Makes progress towards #32.
This issue tracks improvements to our documentation. See our roadmap for the high-level vision that the tasks tracked here fit into.
Top-level docs
Framing
Documentation frames zerocopy as a general-purpose tool for replacing unsafe code, not just as a tool for parsing or another specific task.Done in #386.Use cases
Correctness and soundness
Module/item docs
FromBytes
for parsing without considering endiannness)Miscellaneous
examples
directory@kupiakos has provided this writeup and offered that we can incorporate it into our docs; it includes a lot of good examples and explanations
The text was updated successfully, but these errors were encountered: