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