either icon indicating copy to clipboard operation
either copied to clipboard

Add a "std" feature instead of / in addition to "use_std"?

Open oconnor663 opened this issue 7 years ago • 3 comments

There's some guidance that suggests std is a more idiomatic feature name than use_std: https://rust-lang-nursery.github.io/api-guidelines/naming.html#feature-names-are-free-of-placeholder-words-c-feature

oconnor663 avatar Aug 05 '18 21:08 oconnor663

Renaming it would be a breaking change, but we could add "std" as an alternate.

I think the only time "use_std" would even be mentioned normally is for another crate that is also conditionally using std. Otherwise you just choose either with default features or not.

cuviper avatar Aug 06 '18 02:08 cuviper

Good point.

oconnor663 avatar Aug 06 '18 03:08 oconnor663

must say I would also push to have a feature std and depreciate use_std. Also, serde should probably be imported using default-feature = false

Stargateur avatar Jul 20 '22 04:07 Stargateur