Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
derive_ref/ | 12-May-2024 | - | 471 | 386 | ||
tutorial_builder/ | 12-May-2024 | - | 1,149 | 852 | ||
tutorial_derive/ | 12-May-2024 | - | 1,100 | 774 | ||
README.md | D | 12-May-2024 | 830 | 17 | 12 | |
cargo-example-derive.md | D | 12-May-2024 | 1 KiB | 39 | 28 | |
cargo-example-derive.rs | D | 12-May-2024 | 449 | 21 | 17 | |
cargo-example.md | D | 12-May-2024 | 961 | 39 | 28 | |
cargo-example.rs | D | 12-May-2024 | 659 | 19 | 18 | |
demo.md | D | 12-May-2024 | 444 | 18 | 13 | |
demo.rs | D | 12-May-2024 | 445 | 23 | 15 | |
escaped-positional-derive.md | D | 12-May-2024 | 1.3 KiB | 61 | 44 | |
escaped-positional-derive.rs | D | 12-May-2024 | 692 | 26 | 17 | |
escaped-positional.md | D | 12-May-2024 | 1.2 KiB | 61 | 44 | |
escaped-positional.rs | D | 12-May-2024 | 1 KiB | 33 | 22 | |
find.md | D | 12-May-2024 | 832 | 46 | 37 | |
find.rs | D | 12-May-2024 | 3.2 KiB | 100 | 89 | |
git-derive.md | D | 12-May-2024 | 2.8 KiB | 160 | 113 | |
git-derive.rs | D | 12-May-2024 | 4.1 KiB | 165 | 143 | |
git.md | D | 12-May-2024 | 2.5 KiB | 158 | 112 | |
git.rs | D | 12-May-2024 | 4.8 KiB | 138 | 129 | |
multicall-busybox.md | D | 12-May-2024 | 891 | 40 | 30 | |
multicall-busybox.rs | D | 12-May-2024 | 1.6 KiB | 48 | 43 | |
multicall-hostname.md | D | 12-May-2024 | 268 | 11 | 7 | |
multicall-hostname.rs | D | 12-May-2024 | 654 | 18 | 15 | |
pacman.md | D | 12-May-2024 | 1.8 KiB | 80 | 56 | |
pacman.rs | D | 12-May-2024 | 4.2 KiB | 112 | 101 | |
repl.rs | D | 12-May-2024 | 2.5 KiB | 93 | 81 | |
typed-derive.md | D | 12-May-2024 | 3.8 KiB | 132 | 94 | |
typed-derive.rs | D | 12-May-2024 | 2.9 KiB | 103 | 82 |
README.md
1# Examples 2 3We try to focus our documentation on the [four types of 4documentation](https://documentation.divio.com/). Examples fit into this by 5providing: 6- [Cookbook / How-To Guides](https://docs.rs/clap/latest/clap/_cookbook/index.html) 7- Tutorials ([derive](https://docs.rs/clap/latest/clap/_derive/_tutorial/index.html), [builder](https://docs.rs/clap/latest/clap/_tutorial/index.html)) 8 9This directory contains the source for the above. 10 11## Contributing 12 13New examples should fit within the above structure and support their narrative 14- Add the example to [Cargo.toml](../Cargo.toml) for any `required-features` 15- Document how the example works with a `.md` file which will be verified using [trycmd](https://docs.rs/trycmd) 16- Pull the `.rs` and `.md` file into the appropriate module doc comment to be accessible on docs.rs 17