96 questions
1
vote
0
answers
606
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 ...
10
votes
1
answer
4k
views
How do I remove the target wasm32-wasi and add the new wasm32-wasip1?
When I try to rustup update, I get
error: component 'rust-std' for target 'wasm32-wasi' is unavailable for download for channel 'nightly'
error: Sometimes not all components are available in any ...
5
votes
1
answer
390
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
vote
1
answer
113
views
Stepping into functions results in an unknown file error
I am using Visual Studio Code on windows and I am trying to debug a very very simple Rust program, to learn how to properly use the gnu gdb. The issue is of course not on the program, which I report ...
-1
votes
1
answer
737
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 ...
-2
votes
2
answers
836
views
Cannot build Solana NFT program using `anchor build` command due to rustc version issue
I am writing an NFT program in Anchor framework in Solana blockchain.
However, when I tried to build the program using the anchor build command, it always results with an error.
The error is:
error: ...
6
votes
3
answers
6k
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-...
1
vote
1
answer
3k
views
error: could not find `solana-cargo-build-sbf` in registry `crates-io` with version `=1.19.0`
im build a project using anchor and wheen i use anchor build it gives error
package `solana-program v1.18.8` cannot be built because it requires rustc 1.75.0 or newer, while the currently active rustc ...
0
votes
1
answer
109
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 ...
2
votes
2
answers
3k
views
Setting RUSTUP_HOME and CARGO_HOME before running rustup installation does not work in Windows
Defining RUSTUP_HOME and/or CARGO_HOME environment variables to override default installation directory for .cargo and .rustup does not work (in Windows at least).
Steps to reproduce:
Define ...
1
vote
4
answers
11k
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
1k
views
Install wasm-32 for stable rust without rustup
I have a cloud node where I need a rust toolchain installed. Until now I have installed both stable and nightly with some curl magic and scripts from here:
static-host = "https://...
0
votes
1
answer
1k
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 "%...
2
votes
2
answers
937
views
How to compile Rust from Linux to macOS?
I have a simple file main.rs, with the print Hello, World from Rust!. Under my system, Linux, everything compiles without any problems, both through rustc and through cargo. But when I want to make a ...
1
vote
1
answer
447
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 ...