Cargo Features
[dependencies]
slitter = { version = "0.1.0", default-features = false, features = ["c_fast_path", "check_contracts_in_tests", "check_contracts", "test_only_small_constants"] }
- default = c_fast_path, check_contracts_in_tests
-
These default features are set whenever
slitter
is added without
somewhere in the dependency tree.default-features = false - c_fast_path default
-
Use C, and not Rust, for the fast path.
- check_contracts_in_tests default
-
Enable contract checking for cfg(test).
- check_contracts = contracts
-
Enable contract checking.
- test_only_small_constants
-
Shrink constants to cover more conditions.
Affects
magazine_impl::MAGAZINE_SIZE
,mill::GUARD_PAGE_SIZE
,mill::SPAN_ALIGNMENT
,mill::DEFAULT_DESIRED_SPAN_SIZE
…
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.
- contracts check_contracts?
-
Enables contracts
Only used in tests.