Cargo Features
[dependencies]
thin-vec = { version = "0.2.15", default-features = false, features = ["std", "const_new", "gecko-ffi", "serde", "malloc_size_of"] }
- default = std
-
The
stdfeature is set by default wheneverthin-vecis added withoutsomewhere in the dependency tree.default-features = false - std default
- unstable const_new
- gecko-ffi
-
Gecko specific features. These features cause thin-vec to have the same layout and behaviour as nsTArray, allowing it to be used in C++ FFI. Requires the empty header to be statically linked in with the symbol name "sEmptyTArrayHeader"
Affects
thin-vec::AutoThinVec…
Features from optional dependencies
- serde implicit feature
-
Enables serde
serde:
A generic serialization/deserialization framework
- malloc_size_of implicit feature
-
Enables malloc_size_of
malloc_size_of:
A an allocator-agnostic crate for measuring the heap size of a value