Cargo Features
[dependencies]
opaque-pointer = { version = "0.9.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::c
,opaque-pointer::raw
,opaque-pointer::free
,opaque-pointer::own_back
… - lender default = lazy_static
- alloc
-
If you do not use std then you need alloc feature
Affects
opaque-pointer::raw
,opaque-pointer::free
,opaque-pointer::own_back
… - c-types = std
-
Allow to use some FFI for C types
Affects
opaque-pointer::c
…
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.