File tree 1 file changed +3
-7
lines changed
1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 8
8
//! to the heap for larger allocations. This can be a useful optimization for improving cache
9
9
//! locality and reducing allocator traffic for workloads that fit within the inline buffer.
10
10
//!
11
- //! ## no_std support
11
+ //! ## `alloc` support
12
12
//!
13
- //! By default, `smallvec` depends on `libstd`. However, it can be configured to use the unstable
14
- //! `liballoc` API instead, for use on platforms that have `liballoc` but not `libstd`. This
15
- //! configuration is currently unstable and is not guaranteed to work on all versions of Rust.
16
- //!
17
- //! To depend on `smallvec` without `libstd`, use `default-features = false` in the `smallvec`
18
- //! section of Cargo.toml to disable its `"alloc"` feature.
13
+ //! By default, `smallvec` uses the `alloc` crate, which means that it can be used on platforms
14
+ //! that have `liballoc` but not `libstd`.
19
15
//!
20
16
//! ## `union` feature
21
17
//!
You can’t perform that action at this time.
0 commit comments