name
is documented to default to the crate name, but it defaults to the package name
#4934
Closed
2 tasks done
Labels
C-bug
Category: Updating dependencies
Please complete the following tasks
Rust Version
rustc 1.71.0-nightly (9d871b061 2023-05-21)
Clap Version
4.3.0
Minimal reproducible code
Steps to reproduce the bug with the above code
cargo run -- --version
Actual Behaviour
see context
Expected Behaviour
see context
Additional Context
clap/src/_derive/mod.rs
Lines 143 to 144 in 944556e
name
" will be used, but links to the "packagename
" field.clap/clap_derive/src/derives/parser.rs
Line 31 in 944556e
CARGO_PKG_NAME
instead ofCARGO_CRATE_NAME
.There's some confusion in the ecosystem about what a "crate" is, I think it's important to be careful to not perpetuate this misunderstanding in documentation.
Debug Output
No response
The text was updated successfully, but these errors were encountered: