mirror of
https://github.com/clap-rs/clap
synced 2025-03-04 23:37:32 +00:00
doc(derive): Note derive policies
This commit is contained in:
parent
5672bf9529
commit
92fea91dfe
1 changed files with 10 additions and 0 deletions
10
clap_derive/CONTRIBUTING.md
Normal file
10
clap_derive/CONTRIBUTING.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
# How to Contribute
|
||||
|
||||
See the [clap-wide CONTRIBUTING.md](../CONTRIBUTING.md). This will contain `clap_derive` specific notes.
|
||||
|
||||
## Derive Gotchas
|
||||
|
||||
- Always prefix generated variables with `__clap_` to minimize clashes with the user's variables, see [#2934](https://github.com/clap-rs/clap/issues/2934).
|
||||
- Prefer the path `clap` over `::clap` to allow users to re-export clap, see [#2258](https://github.com/clap-rs/clap/pull/2258).
|
||||
- Prefer substituting variable names to avoid problems with `macro_rules`, see [#2823](https://github.com/clap-rs/clap/pull/2823).
|
||||
- Put whitespace between `#quoted #variables`.
|
Loading…
Add table
Reference in a new issue