Skip to content

Conversation

@ukint-vs
Copy link
Member

@ukint-vs ukint-vs commented Apr 25, 2024

cargo-metadata output for target names changes with Rust 1.79 due to PR rust-lang/cargo#12783 fixing issue rust-lang/cargo#12780. (TLDR: dashes in target names are replaced with underscores starting with Rust 1.79)

Currently, if a user tries to build a program where the package name contains a dash, they will receive an error message:

error: failed to run custom build command for `gear-guessing-game v0.1.0 (/projects/gear-guessing-game)`

Caused by:
  process didn't exit successfully: `/projects/gear-guessing-game/target/release/build/gear-guessing-game-f6620258e346ef1d/build-script-build` (exit status: 1)
  --- stderr
  error: please add "rlib" to [lib.crate-type]

@gear-tech/dev

@ukint-vs ukint-vs added A0-pleasereview PR is ready to be reviewed by the team C0-bug Something isn't working D5-tooling Helper tools and utilities labels Apr 25, 2024
@ukint-vs ukint-vs requested a review from clearloop April 25, 2024 18:04
@ukint-vs ukint-vs self-assigned this Apr 25, 2024
@ukint-vs ukint-vs force-pushed the vs/fix-wasm-builder-nightly branch from c0c4d57 to 85aa467 Compare April 25, 2024 18:14
@ukint-vs ukint-vs merged commit 1473560 into master Apr 25, 2024
@ukint-vs ukint-vs deleted the vs/fix-wasm-builder-nightly branch April 25, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A0-pleasereview PR is ready to be reviewed by the team C0-bug Something isn't working D5-tooling Helper tools and utilities

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants