#Code is inactive..

4 messages · Page 1 of 1 (latest)

mortal arrow
#

My code is faded out and hovering over it shows that "code is inactive due to #[cfg] directives: feature {} is disabled". I use VS-Code as an IDE with Rust-analyzer extension. I'm not able to figure out how to fix this issue.
Any help would be appreciated.
Thank you.

little meadow
#

Try adding "rust-analyzer.cargo.features": "all" to your settings.

mortal arrow
little meadow
#

Sorry, that was my only idea. Does your project have serde as an optional dependency?