Skip to content
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

bindgen v0.61.0 has no binaries #11249

Closed
al-cheb opened this issue Oct 17, 2022 · 3 comments
Closed

bindgen v0.61.0 has no binaries #11249

al-cheb opened this issue Oct 17, 2022 · 3 comments
Labels
C-bug Category: bug

Comments

@al-cheb
Copy link

al-cheb commented Oct 17, 2022

Problem

Unable to install latest bindgen version due to missing binaries:

Ubuntu:

==> azure-arm:     Updating crates.io index
==> azure-arm:  Downloading crates ...
==> azure-arm:   Downloaded bindgen v0.61.0
==> azure-arm: warning: no Cargo.lock file published in bindgen v0.61.0
==> azure-arm: error: there is nothing to install in `bindgen v0.61.0`, because it has no binaries
==> azure-arm: `cargo install` is only for installing programs, and can't be used with libraries.
==> azure-arm: To use a library crate, add it as a dependency in a Cargo project instead.

Windows:

==> vhd:     Updating crates.io index
==> vhd:  Downloading crates ...
==> vhd:   Downloaded bindgen v0.61.0
==> vhd: warning: no Cargo.lock file published in bindgen v0.61.0
==> vhd: error: there is nothing to install in `bindgen v0.61.0`, because it has no binaries
==> vhd: `cargo install` is only for installing programs, and can't be used with libraries.
==> vhd: To use a library crate, add it as a dependency in a Cargo project instead.

Steps

cargo install bindgen

Possible Solution(s)

bindgen v0.60.1

Notes

No response

Version

cargo 1.64.0 (387270bc7 2022-09-16)
release: 1.64.0
commit-hash: 387270bc7f446d17869c7f208207c73231d6a2
commit-date: 2022-09-1
host: x86_64-unknown-linux-gnu
libgit2: 1.4.2 (sys:0.14.2 vendored)
libcurl: [7]3.1-DEV (sys:0.4.55+curl-7.83.1 vendored ssl:OpenSSL/1.1.1q)
os: Ubuntu 20.04 (focal) [64-bit]
@al-cheb al-cheb added the C-bug Category: bug label Oct 17, 2022
@al-cheb
Copy link
Author

al-cheb commented Oct 17, 2022

cc @emilio

@emilio
Copy link

emilio commented Oct 17, 2022

@al-cheb are you installing using cargo install bindgen? If so it's expected, bindgen was split up in two crates in rust-lang/rust-bindgen#2284. The right command to run is cargo install bindgen-cli. The binary will still be named bindgen tho.

This was done mostly to work around the inability to specify different default features for binary and library crates on cargo tho, see rust-lang/rust-bindgen#2238 etc.

@al-cheb
Copy link
Author

al-cheb commented Oct 17, 2022

@al-cheb are you installing using cargo install bindgen? If so it's expected, bindgen was split up in two crates in rust-lang/rust-bindgen#2284. The right command to run is cargo install bindgen-cli. The binary will still be named bindgen tho.

This was done mostly to work around the inability to specify different default features for binary and library crates on cargo tho, see rust-lang/rust-bindgen#2238 etc.

Thank you. That's right, we install bindgen using cargo install bindgen. I will update our code to use bindgen-cli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug
Projects
None yet
Development

No branches or pull requests

2 participants