Cargo Features
[dependencies]
data-streams = { version = "2.0.0-pre.2", default-features = false, features = ["std", "alloc", "utf8", "unstable", "unstable_specialization", "unstable_uninit_slice", "unstable_ascii_char"] }
- default = alloc, std
-
These default features are set whenever
data-streams
is added without
somewhere in the dependency tree.default-features = false - std default
-
Enables std of num-traits and simdutf8
simdutf8:
enable CPU feature detection, on by default, turn off for no-std support
- alloc default
-
Affects
sink::VecSink
,source::VecSource
… - utf8 = simdutf8
-
Affects
error::Utf8Error
,error::Utf8ErrorKind
,sink::VecSink.write_owned_utf8
,impls::buf_read_utf8_to_end
,source::DataSource.read_utf8
,source::DataSource.read_utf8_codepoint
,utf8::utf8_char_width
… - unstable = unstable_ascii_char, unstable_borrowed_buf, unstable_specialization, unstable_uninit_slice
- unstable_specialization unstable?
- unstable_borrowed_buf unstable_uninit_slice unstable?
- unstable_ascii_char unstable?
-
Affects
error::AsciiError
,sink::DataSink.write_ascii
,source::DataSource.read_ascii
…
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.