Skip to content

Api error during publish to crates.io #204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dtolnay opened this issue May 12, 2020 · 1 comment
Closed

Api error during publish to crates.io #204

dtolnay opened this issue May 12, 2020 · 1 comment
Labels
cargo Issues affecting Cargo-based use of cxx

Comments

@dtolnay
Copy link
Owner

dtolnay commented May 12, 2020

Crates.io doesn't like our feature naming. I will look into whether this is something I can fix myself in crates.io, otherwise report an issue at https://github.com/rust-lang/crates.io.

cxx/Cargo.toml

Lines 16 to 19 in 6aa34e4

[features]
default = [] # c++11
"c++14" = []
"c++17" = []

$ cargo publish
    Updating crates.io index
   Packaging cxx v0.3.3 (/git/cxx)
   Verifying cxx v0.3.3 (/git/cxx)
  Downloaded cxxbridge-macro v0.3.3
  Downloaded 1 crate (27.7 KB) in 1.76s
   Compiling cc v1.0.52
   Compiling proc-macro2 v1.0.12
   Compiling unicode-xid v0.2.0
   Compiling syn v1.0.20
   Compiling quote v1.0.4
   Compiling link-cplusplus v1.0.1
   Compiling cxx v0.3.3 (/git/cxx/target/package/cxx-0.3.3)
   Compiling cxxbridge-macro v0.3.3
    Finished dev [unoptimized + debuginfo] target(s) in 11.38s
   Uploading cxx v0.3.3 (/git/cxx)
error: api errors (status 200 OK): invalid upload request: invalid value: string "c++14", expected a valid feature name containing only letters, numbers, hyphens, or underscores at line 1 column 959

error: api errors (status 200 OK): invalid upload request: invalid value: string "c++14", expected a valid feature name containing only letters, numbers, hyphens, or underscores at line 1 column 959

@dtolnay dtolnay self-assigned this May 12, 2020
@dtolnay
Copy link
Owner Author

dtolnay commented May 15, 2020

Fixed in rust-lang/crates.io#2510.

@dtolnay dtolnay closed this as completed May 15, 2020
@dtolnay dtolnay added the cargo Issues affecting Cargo-based use of cxx label Aug 30, 2020
@dtolnay dtolnay removed their assignment Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cargo Issues affecting Cargo-based use of cxx
Projects
None yet
Development

No branches or pull requests

1 participant