You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do not call the feature use-std or with-std or any creative name that is not std.
I like this naming convention. Unfortunately, it's not always possible to follow. For example, say I want to add optional support for serde, the obvious name for such a feature would be serde. However, if some of my types can be derived automatically, I would also want to optionally depend on serde_derive. Part of my manifest will then end up as follows:
However, this is not possible since feature names must not conflict with other package names in the manifest. In such a case, I will either have to use a name like with-serde or come up with a creative name for my feature.
Edit: Had forgotten to insert a hyperlink
The text was updated successfully, but these errors were encountered:
The recommendation for C-FEATURE says:-
I like this naming convention. Unfortunately, it's not always possible to follow. For example, say I want to add optional support for
serde
, the obvious name for such a feature would beserde
. However, if some of my types can be derived automatically, I would also want to optionally depend onserde_derive
. Part of my manifest will then end up as follows:However, this is not possible since feature names must not conflict with other package names in the manifest. In such a case, I will either have to use a name like
with-serde
or come up with a creative name for my feature.Edit: Had forgotten to insert a hyperlink
The text was updated successfully, but these errors were encountered: