Closed
Description
crates.io's feature validation is inconsistent and rejects features with "." even though these features are accepted by cargo
/rustc
. This validation isn't applied when using cargo publish --dry-run
.
$ cargo publish
...
Uploading uom v0.18.0 (file:///S:/uom)
error: api errors: invalid upload request: invalid value: string "1.20.0", expected a valid feature name
containing only letters, numbers, hyphens, or underscores at line 1 column 931
This appears to be the check:
crates.io/src/views/krate_publish.rs
Line 110 in 0ccbf09
As a workaround I was able to change the 1.20.0
feature to 1_20_0
.
Metadata
Metadata
Assignees
Labels
No labels