What is a key? #3956
-
(The alternative is that I generate Rust code and rely on dead code elimination. Would that work if I do care about all possible locales?) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Generally we just recommend using I do have an open issue about being clearer about this #2685 Currently if you want to figure out which keys are needed, check out the |
Beta Was this translation helpful? Give feedback.
-
To add to @Manishearth's answer, then click on each marker bound, like CollationSpecialPrimariesV1Marker, and in the documentation it tells you the key string, like “collator/prim@1” |
Beta Was this translation helpful? Give feedback.
Generally we just recommend using
--keys-for-bin
to have it detect the keys you need from the binary. If this is tricky in your situation we'd love to know!I do have an open issue about being clearer about this #2685
Currently if you want to figure out which keys are needed, check out the
_unstable
constructors of each type you are constructing, look at the marker bounds, and see what the value of KEY is.