rustowl: Failed to install

Bug Description

I tried to install directly from crates.io and it doesnt work.

cargo install rustowl with or without --locked.

It compiles most dependencies but it stops when it reaches.

...
Compiling tower-lsp v0.20.0
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> /home/user/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustowl-0.3.0/src/bin/rustowlc.rs:5:1
  |
5 | #![feature(rustc_private)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `rustowl` (bin "rustowlc") due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `rustowl v0.3.0`, intermediate artifacts can be found at `/tmp/cargo-installSGRZJx`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.

Maybe it’s expecting to be using the nightly channel to compile, so, not sure the point in having it in crates.io


Edit:

I suppose it would be beneficial to have the binary (already compiled) in binstall https://github.com/cargo-bins/cargo-binstall that way there wouldnt be any need to do it manually in every user machine.

This would make it possible to auto update based on releases. Rather than having to do it manually.

Environment

OS: Arch Linux RustOwl Version: 0.3.0

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 18 (4 by maintainers)

Most upvoted comments

With that command, it works.

❯ cargo binstall rustowl                                                                                                                                                                                                                                                           
 INFO resolve: Resolving package: 'rustowl'
 WARN The package rustowl v0.3.2 (x86_64-unknown-linux-gnu) has been downloaded from github.com
 INFO This will install the following binaries:
 INFO   - rustowl => /home/user/.cargo/bin/rustowl
 INFO   - rustowlc => /home/user/.cargo/bin/rustowlc

 INFO Installing binaries...
 INFO Done in 23.802545064s

Wait now it doesnt work for me also. I will investigate.

Worked with cargo +nightly-2025-04-08 install rustowl

Not needing to clone the project, before the cargo install, this was enough rustup toolchain install nightly-2025-04-08 --component llvm-tools,rustc-dev

I will leave the issue open so you see the binstall suggestion.

Feel free to close the issue, after.


Edit:

I guess if you suggested the simple way, it would perhaps be better.

rustup toolchain install nightly-2025-04-08 --component llvm-tools,rustc-dev
cargo +nightly-2025-04-08 install rustowl

Edit2:

Another way that would make these commands always work.

NIGHTLY_VERSION=$(curl -k https://raw.githubusercontent.com/cordx56/rustowl/refs/heads/main/rust-toolchain.toml | awk -F '"' '/channel/ {print $2}';
rustup toolchain install $NIGHTLY_VERSION --component llvm-tools,rustc-dev
cargo +$NIGHTLY_VERSION install rustowl