Cargo Features
[dependencies]
segsource = { version = "0.2.0", default-features = false, features = ["std", "with_bytes", "derive", "memmap", "async"] }
- default = derive, std
-
These default features are set whenever
segsource
is added without
somewhere in the dependency tree.default-features = false - std default async? memmap? with_bytes?
-
Enables std of snafu ^0.6
snafu:
Implement the
std::error::Error
trait.Affects
sources::U8Source.from_file
,sources::U8Source.from_file_with_offset
… - with_bytes = bytes, std
-
Affects
sources::U8Source.from_bytes
,sources::U8Source.from_bytes_with_offset
… - derive default = segsource-derive
-
Affects
segsource::derive_extras
… - memmap = fs3, memmap2, std
- async = async-trait, futures-core, pin-project-lite, std, tokio
-
Affects
segsource::sync
,sources::U8Source.from_file_async
,sources::U8Source.from_file_with_offset_async
…
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.