Cargo Features
[dependencies]
opaque-pointer = { version = "0.10.0", default-features = false, features = ["std", "lender", "alloc", "c-types"] }
- default = lender, std
-
These default features are set whenever
opaque-pointer
is added without
somewhere in the dependency tree.default-features = false - std default c-types?
-
Affects
opaque-pointer::raw
,opaque-pointer::own_back
,validation::lent_pointer
… - lender default = lazy_static
-
Affects
validation::lent_pointer
… - alloc
-
If you do not use std then you need alloc feature
Affects
opaque-pointer::raw
,opaque-pointer::own_back
… - c-types = std
-
Allow to use some FFI for C types
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.