Very specific Rust question: What is the community convention for Cargo "features" whose name is more than one word? dashes? underscores?
Conversation
I use dashes for crate names and cargo stuff in general (I think it looks better) - really wish there was a convention that we could migrate to though. Sadly crate names and features are the only places where capitalisation is still a free-for-all in Rust. 😟
2
Is it? I thought crate names specifically are enforced to be case insensitive / lowercase (might be only by the registry, now that I think about it)
1
there's no requirement about snake case vs kebab case afaik
1
Here's an example of one of my Cargo.toml files: github.com/pikelet-lang/p
Note that `once_cell` is the only one that uses snake case.
1


