Skip to content
\n

Is anyone else using vscode and can share their settings?

","upvoteCount":2,"answerCount":2,"acceptedAnswer":{"@type":"Answer","text":"

This behaviour also happens when normally executing this build command (rather than cargo 3ds build):
\ncargo build --target armv6k-nintendo-3ds -Zbuild-std --lib

\n

You just need to export the env configuration you can see around here.

\n

In simpler terms, add RUSTFLAGS=\"-L/opt/devkitpro/libctru/lib -lctru\" to your env.

\n
{\n  \"rust-analyzer.cargo.extraEnv\": { \"RUSTFLAGS\": \"-L/opt/devkitpro/libctru/lib -lctru\" }\n}
\n

As any good programmer would, I don't use this, because I much prefer having rust-analyzer spit wrong errors than having to use a configuration file for VSCode :P

","upvoteCount":3,"url":"https://github.com/orgs/rust3ds/discussions/127#discussioncomment-6016091"}}}
Discussion options

You must be logged in to vote

This behaviour also happens when normally executing this build command (rather than cargo 3ds build):
cargo build --target armv6k-nintendo-3ds -Zbuild-std --lib

You just need to export the env configuration you can see around here.

In simpler terms, add RUSTFLAGS="-L/opt/devkitpro/libctru/lib -lctru" to your env.

{
  "rust-analyzer.cargo.extraEnv": { "RUSTFLAGS": "-L/opt/devkitpro/libctru/lib -lctru" }
}

As any good programmer would, I don't use this, because I much prefer having rust-analyzer spit wrong errors than having to use a configuration file for VSCode :P

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@DeltaF1
Comment options

Answer selected by Meziu
Comment options

You must be logged in to vote
0 replies
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