Cargo Features
[dependencies]
savefile = { version = "0.18.5", default-features = false, features = ["bit-set", "bit-set08", "serde_derive", "size_sanity_checks", "nightly", "rust1_78", "compression", "encryption", "derive", "nalgebra", "arrayvec", "smallvec", "indexmap", "parking_lot", "rustc-hash", "quickcheck"] }
- default = arrayvec, bit-set, bit-set08, bit-vec, bit-vec08, indexmap, parking_lot, smallvec
-
These default features are set whenever
savefile
is added without
somewhere in the dependency tree.default-features = false - bit-set default = bit-vec
-
Enables bit-set ^0.5
- bit-set08 default = bit-vec08
-
Enables bit-set
- serde_derive = serde
-
Enables serde_derive
- size_sanity_checks
-
Enable this to reduce risk of crashing on corrupt input. Provides sanity checks for sizes of objects.
This is mostly to be able to run fuzzers against the deserializers without them being guaranteed to easily find out-of-memory crashes. - nightly
-
Use features only available on the nightly rust-compiler.
Enabling this provides slightly better introspection support.
Automatically set by build.rs for nightly compilers - rust1_78
-
Rust version is > 1.78
Automatically set by build.rs - compression = bzip2
- encryption = rand, ring
- derive
-
Enables savefile-derive
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.
- bit-vec default bit-set
-
Enables bit-vec ^0.6
- nalgebra implicit feature
- bit-vec08 default bit-set08
-
Enables bit-vec
- arrayvec default
- smallvec default
- indexmap default
- parking_lot default
-
Affects
savefile::IntrospectItemMutex
,savefile::IntrospectItemRwLock
… - ring encryption?
- rand encryption?
- bzip2 compression?
-
Enables bzip2 ^0.4.4
- rustc-hash implicit feature
-
Enables rustc-hash
rustc-hash:
A speedy, non-cryptographic hashing algorithm used by rustc
- serde serde_derive?
- quickcheck implicit feature
-
Enables quickcheck
quickcheck:
Automatic property based testing with shrinking