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

cargo install rerun-cli fails because of document-features crate #6865

Closed
andresv opened this issue Jul 11, 2024 · 5 comments
Closed

cargo install rerun-cli fails because of document-features crate #6865

andresv opened this issue Jul 11, 2024 · 5 comments
Assignees
Labels
🪳 bug Something isn't working 🦀 Rust API Rust logging API

Comments

@andresv
Copy link

andresv commented Jul 11, 2024

On macOS with rust 1.79.0:

rustc --version
rustc 1.79.0 (129f3b996 2024-06-10)

cargo install rerun-cli
    Updating crates.io index
  Installing rerun-cli v0.17.0
    Updating crates.io index
     Locking 618 packages to latest compatible versions
      Adding accesskit v0.12.3 (latest: v0.16.0)
      Adding accesskit_consumer v0.16.1 (latest: v0.24.0)
      Adding accesskit_macos v0.10.1 (latest: v0.17.0)
....

   Compiling re_types_core v0.17.0
error: Parse error while parsing value description: unbalanced source
  --> /Users/andres/.cargo/registry/src/index.crates.io-6f17d22bba15001f/re_types_core-0.17.0/src/lib.rs:15:10
   |
15 | #![doc = document_features::document_features!()]
   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: this error originates in the macro `document_features::document_features` (in Nightly builds, run with -Z macro-backtrace for more info)

   Compiling arboard v3.4.0
   Compiling fsevent-sys v4.1.0
   Compiling filetime v0.2.23
error: could not compile `re_types_core` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `rerun-cli v0.17.0`, intermediate artifacts can be found at `/var/folders/5b/jlxfj70x1fb_n2l6qh21xxfh0000gn/T/cargo-installTQB5ME`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
@andresv andresv added other Generated by the "Other" issue template 👀 needs triage This issue needs to be triaged by the Rerun team labels Jul 11, 2024
@emilk emilk added this to the Next patch release milestone Jul 11, 2024
@emilk emilk added 🪳 bug Something isn't working 🦀 Rust API Rust logging API and removed other Generated by the "Other" issue template 👀 needs triage This issue needs to be triaged by the Rerun team labels Jul 11, 2024
@emilk
Copy link
Member

emilk commented Jul 11, 2024

Can confirm 😬

@emilk emilk self-assigned this Jul 11, 2024
@emilk
Copy link
Member

emilk commented Jul 11, 2024

The fix is to add --locked:

cargo install rerun-cli --locked

@emilk
Copy link
Member

emilk commented Jul 11, 2024

Upstream issue: slint-ui/document-features#26

emilk added a commit that referenced this issue Jul 11, 2024
Otherwise 3rd party crates can break the install:
* #6865
@emilk emilk changed the title cargo install rerun-cli fails for v0.17.0 cargo install rerun-cli fails because of document-features crate Jul 11, 2024
@emilk
Copy link
Member

emilk commented Jul 11, 2024

emilk added a commit that referenced this issue Jul 11, 2024
Otherwise 3rd party crates can break the install:
* #6865

I've also updated https://github.com/rerun-io/rerun/releases/tag/0.17.0

### Checklist
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)
@emilk
Copy link
Member

emilk commented Jul 11, 2024

The faulty document-features version has been yanked: https://crates.io/crates/document-features/0.2.9

Thanks for reporting this to us!

@emilk emilk closed this as completed Jul 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working 🦀 Rust API Rust logging API
Projects
None yet
Development

No branches or pull requests

2 participants