Cargo Features
[dependencies]
filesystem = { version = "0.4.4", default-features = false, features = ["fake", "temp", "testing", "mock"] }
- default = fake, temp
-
These default features are set whenever
filesystem
is added without
somewhere in the dependency tree.default-features = false - fake default testing?
- temp default = rand, tempdir
-
Affects
filesystem::TempDir
,filesystem::TempFileSystem
,os::OsTempDir
… - testing = fake, mock
- mock testing? = pseudo
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.