Rust-for-Linux / linux

Adding support for the Rust language to the Linux kernel.
https://rust-for-linux.com
Other
3.83k stars 399 forks source link

Error updating bindgen #1060

Closed amanuel2 closed 5 months ago

amanuel2 commented 5 months ago

Based on the "rust" branch I get a string of errors. First error I got was exactly this issue, and I applied the patch myself exactly as specified in the lore.

Now I come onto this error trying to update bindgen after changing it to 0.65.1 as per one of the changes in the lore:

> cargo install --locked --version $(scripts/min-tool-version.sh bindgen) bindgen
    Updating crates.io index
warning: no Cargo.lock file published in bindgen v0.65.1
error: there is nothing to install in `bindgen v0.65.1`, because it has no binaries
`cargo install` is only for installing programs, and can't be used with libraries.
To use a library crate, add it as a dependency to a Cargo project with `cargo add`.

I even tried to hack it around as per so, but then got the error

>  cargo add bindgen                               ✔  1997  00:03:21
error: failed to parse manifest at `/home/aman/Documents/rust-linux/Cargo.toml`

Caused by:
  virtual manifests must be configured with [workspace]

Am I missing something entirely here?

ojeda commented 5 months ago

Thanks for the report. There are a few things to note: