3 ms·
> - I have a hard time figuring out which features I need to add from a crate and which ones exist in a crate. The documentation for the crate should make clea
by estebank 3y ago
> - I have a hard time figuring out which features I need to add from a crate and which ones exist in a crate.
The documentation for the crate should make clear that a feature should be enabled for their APIs, the list of all features would always be in the Cargo.toml. Recent rustc will tell you when you call method that is configured out, and which feature you need to enable.
> - I have a hard time figuring out if something doesn't work because a trait is missing and it's not just unclear that it is missing but also where it can be found.
If the compiler doesn't clearly tell you that a trait is missing, please file a ticket with a repro case. A trick for finding where any item is defined, if you know the name already, is to use the name in some way. The compiler will then fail to find it in scope and do a global search. If it finds it then, it will tell you the appropriate import path.