Skip to content
Discussion options

You must be logged in to vote

The only solution is to use CARGO_NET_OFFLINE and then run cargo check (or similar command) directly when you do want to download. Not sure if this will require restarting rust-analyzer. I do not want to add another option - r-a does not really have a notion of "manual" Cargo command, and if your AI agent can write to Cargo.toml, it can probably also do other nefarious things. However if it does currently require a reload to r-a, then I do support adding a manual (cheaper) reload command.

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Float-Moon
Comment options

@ChayimFriedman2
Comment options

Answer selected by Float-Moon
Comment options

You must be logged in to vote
1 reply
@Float-Moon
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants