Cargo Features
[dependencies]
ty-tag = { version = "0.1.1", default-features = false, features = ["macros", "core", "alloc", "std", "unsafe", "document-features"] }
- default = core, macros
-
These default features are set whenever
ty-tag
is added without
somewhere in the dependency tree.default-features = false - macros default core
-
Includes the
tag
macro for creating tags from type aliases.Enables ty-tag-macros
- core default alloc? = macros
-
Adds tags for commonly used types in
core
.Affects
ty-tag::external_tags
… - alloc std? = core
-
Adds tags for commonly used types in
alloc
.Affects
ty-tag::external_tags
… - std = alloc
-
Adds tags for commonly used types in
std
.Affects
ty-tag::external_tags
… - unsafe
-
Allows
unsafe
code.Only some convenience methods of
Label
need this.
Features from optional dependencies
- document-features implicit feature
-
Enables document-features
document-features:
Extract documentation for the feature flags from comments in Cargo.toml