Cargo Features
[dependencies]
cacache = { version = "13.1.0", default-features = false, features = ["mmap", "async-std", "link_to", "tokio-runtime"] }
- default = async-std, mmap
-
These default features are set whenever
cacache
is added without
somewhere in the dependency tree.default-features = false - mmap default = libc, memmap2
-
Affects
write::MAX_MMAP_SIZE
… - async-std default = futures
-
Enables async-std
Affects
async_lib::lines_to_stream
,async_lib::unwrap_joinhandle_value
,async_lib::create_named_tempfile
,linkto::AsyncToLinker
,read::AsyncReader
,read::open_async
,read::read_async
,read::reflink_async
,read::copy_unchecked_async
,read::copy_async
,read::hard_link_async
,read::has_content_async
,rm::rm_async
,write::AsyncWriter
,get::Reader
,get::read
,get::read_hash
,get::copy
,get::copy_unchecked
,get::copy_hash
… - link_to
-
Affects
content::linkto
… - tokio-runtime = futures, tokio, tokio-stream
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.
- futures async-std tokio-runtime?
- memmap2 mmap
-
Enables memmap2 ^0.5.8
- tokio tokio-runtime?
-
Affects
async_lib::lines_to_stream
,async_lib::unwrap_joinhandle_value
,async_lib::create_named_tempfile
,linkto::AsyncToLinker
,read::AsyncReader
,read::open_async
,read::read_async
,read::reflink_async
,read::copy_unchecked_async
,read::copy_async
,read::hard_link_async
,read::has_content_async
,rm::rm_async
,write::AsyncWriter
,get::Reader
,get::read
,get::read_hash
,get::copy
,get::copy_unchecked
,get::copy_hash
… - tokio-stream tokio-runtime?
- libc linux mmap