96 questions
1
vote
0
answers
534
views
SQLx fails to compile on Windows with error: Error calling dlltool 'dlltool.exe': program not found
I'm trying to learn how to use the SQLx package in Rust, however it fails to compile on Windows due to the fact it tries to execute the dlltool.exe program, which I don't have installed because it's ...
5
votes
1
answer
313
views
Distributing private Rust compiler builds in an organization, e.g. with `rustup`
I have created a custom rust compiler build that requires a proprietary c++ compiler. How can I make this compiler available to my coworkers, e.g. installable with rustup, be able to refresh/update it,...
-1
votes
1
answer
577
views
Rustup problem installing toolchain through Artifactory : SSL certificate not OK
Context
My company is using an Artifactory repository to mirror Rust crates.
So i connected my rustup to this repo and it seems to work fine since it's searching on the good place.
However, i can't ...
6
votes
3
answers
5k
views
Issue with Rust macro expansion in editor: proc-macro server's api version is newer than rust-analyzer's
After recent update of Rust toolchain version to 1.77.1 (by running rustup update) I've started seeing following error in my editor (Neovim):
Here's the error message in more readable format:
rust-...
0
votes
1
answer
100
views
a value is required for '--target <targets>...' but none was supplied when install rust
The command is curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile=default -t --target x86_64-apple-darwin --no-modify-path
This command worked fine before, but for some ...
1
vote
4
answers
10k
views
Rust version problem when running cargo build-bpf
I am trying to run cargo build-bpf on a basic start rust program.
I installed Rust with the curl command curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh.
When I run cargo --version I ...
0
votes
1
answer
957
views
How can I move the RUST tools installation dir?
I mistakenly installed RUST in my "src" tree. It works but I'd like to move it to someplace under my local AppData directory like "%LOCALAPPDATA%\Rust" or maybe "%...
1
vote
1
answer
430
views
Why does rustc automatically downgrade its version?
I was trying to upgrade rust. I tried uninstalling (1.60.0) and reinstalling. The new version is 1.73.0. But when I ran rustc it automatically downloaded 1.60.0 and reverted to 1.60.0. Wonder how can ...
0
votes
0
answers
436
views
Why is my rustc command failing even though the binary exists?
I am attempting to build a Docker image using arm32v7/python:3.11.5-slim-bullseye. Due to the fact that this image is 32-bit, there is no pre-built wheel for one of the pip packages I am installing (...
2
votes
1
answer
1k
views
Configure rust for helix editor on windows 11
When running hx --health rust I do not have any check passing for rust.
How can I configure rust to work with Helix editor on Windows?
8
votes
2
answers
7k
views
Cannot find `cargo` binary on Rust toolchain on Apple M1
I got this error when I override the rustup toolchain to use the rust-toolchain in the repo directory:
error: the 'cargo' binary, normally provided by the 'cargo' component, is not applicable to the '...
0
votes
1
answer
114
views
Why is my rust shell output littered with format characters?
When I use rust commands rustup or cargo my output is littered with what appear to be output format markup characters: $<2>
$<2>info: $<2>syncing channel updates for 'stable-x86_64-...
1
vote
0
answers
389
views
How can I create a Rust Clippy binary to use as part of a separate standalone application?
I am trying to build a standalone application through which I can run Rust Clippy without needing to install it locally. Essentially, I want to run a command like cargo-clippy -- --message-format=json ...
3
votes
2
answers
2k
views
rustup command failed: downloader using installation directions from the book [duplicate]
This references the installation directions in:
https://doc.rust-lang.org/book/ch01-01-installation.html
sudo curl --proto '=https' --tlsv1.3 https://sh.rustup.rs -sSf | sh
I get the following error:
...
1
vote
1
answer
2k
views
How can I reduce the size of rustup install?
I have this Dockerfile which builds my Neovim setup inside an Arch Linux container. Following logs show the amount of space each layer takes. The command rustup install nightly took 1.05GB of space ...
0
votes
1
answer
396
views
Where does rustup on Windows look for MSVC and Windows SDK
I have multiple Visual Studio installations and they are installed in nonstandard locations on my Windows machine. When I run rustup, it says it cannot find MSVC or Windows SDK, but not how to tell it ...
2
votes
2
answers
4k
views
How to install Rust via CLI on Windows?
I am trying to install Rust via the command line on a Windows VM (https://github.com/sansyrox/robyn/pull/263). The script on the main Rust installation website only supports *nix os.
What are the ...
0
votes
1
answer
3k
views
How to install Cargo, Rust package manager on Databricks
I'm trying to install Vaex with !pip install vaex on a cluster on Databricks, but the installation is failing because it has a dependency called blake3, which needs Cargo.
Collecting blake3
Using ...
0
votes
1
answer
2k
views
Mac Intel: zsh: bad CPU type in executable: rustup
I had a Mac with an M1 chip which I backed up on an external HDD. I used the backup to setup a Mac with an Intel chip. When I try to rust rustup I get the following:
$ rustup
zsh: bad CPU type in ...
2
votes
2
answers
861
views
Cannot connect to rust kernel from a jupyter server in a conda env
I have been trying to install a Rust kernel for a Jupyter server inside a dedicated conda environment but I get errors.
Slighty adjusting steps from:
https://depth-first.com/articles/2020/09/21/...
2
votes
1
answer
821
views
error: component 'clippy' for target {target} is unavailable for download
When using a custom rust-toolchain file with a pinned version
1.59.0
and running cargo clippy in 1.59.0, I get
error: the 'cargo-clippy' binary, normally provided by the 'clippy' component, is not ...
0
votes
0
answers
348
views
Cannot install rust-src: "Found argument 'component add rust-src' which wasn't expected, or isn't valid in this context"
I'm on MacO Big Sur, just have the latest stable Rust installed via:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
No, I don't use Homebrew. Then I want to compile xv6-rust. It ...
0
votes
1
answer
74
views
Where is checksumValid() defined?
I am working from a compliance perspective. I am struggling with the simplest thing, how to find the source for various functions that are called by rustup.
For example, the rustup source code ...
4
votes
2
answers
2k
views
rust-toolchain.toml change from msvc to gnu does not work
I would like to set up a toolchain override for one of my rust projects to use the GNU toolchain instead of the default MSVC one. But somehow the configuration in rust-toolchain.toml is ignored. (I am ...
2
votes
2
answers
9k
views
cargo install - specify toolchain? (Windows 10)
I'm new to Rust, and installed it in a Conda environment via: conda create -c conda-forge -n env_rust rust
That all went fine, and after activating the Conda environment, rust and cargo are there:
...