tree: 5eb3c1c6e4064ec61d6331907ac012b3bbf42de4 [path history] [tgz]
  1. derive_ref/
  2. tutorial_builder/
  3. tutorial_derive/
  4. typed-derive/
  5. cargo-example-derive.md
  6. cargo-example-derive.rs
  7. cargo-example.md
  8. cargo-example.rs
  9. demo.md
  10. demo.rs
  11. escaped-positional-derive.md
  12. escaped-positional-derive.rs
  13. escaped-positional.md
  14. escaped-positional.rs
  15. find.md
  16. find.rs
  17. git-derive.md
  18. git-derive.rs
  19. git.md
  20. git.rs
  21. multicall-busybox.md
  22. multicall-busybox.rs
  23. multicall-hostname.md
  24. multicall-hostname.rs
  25. pacman.md
  26. pacman.rs
  27. README.md
  28. repl-derive.rs
  29. repl.rs
examples/README.md

Examples

We try to focus our documentation on the four types of documentation. Examples fit into this by providing:

This directory contains the source for the above.

Contributing

New examples should fit within the above structure and support their narrative

  • Add the example to Cargo.toml for any required-features
  • Document how the example works with a .md file which will be verified using trycmd
  • Pull the .rs and .md file into the appropriate module doc comment to be accessible on docs.rs