Skip to content

Api error during publish to crates.io #204

Closed
@dtolnay

Description

@dtolnay

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    cargoIssues affecting Cargo-based use of cxx

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions