mirror of
https://github.com/openharmony/third_party_rust_rust-smallvec.git
synced 2026-07-19 14:53:33 -04:00
Auto merge of #225 - mbrubeck:docs, r=emilio
Update and document serde support * Document the optional 'serde' feature. Fixes #224. * Disable unused serde features. This makes serde support compatible with `no_std`.
This commit is contained in:
+1
-1
@@ -23,7 +23,7 @@ name = "smallvec"
|
||||
path = "lib.rs"
|
||||
|
||||
[dependencies]
|
||||
serde = { version = "1", optional = true }
|
||||
serde = { version = "1", optional = true, default-features = false }
|
||||
|
||||
[dev_dependencies]
|
||||
bincode = "1.0.1"
|
||||
|
||||
@@ -16,6 +16,11 @@
|
||||
//!
|
||||
//! ## Optional features
|
||||
//!
|
||||
//! ### `serde`
|
||||
//!
|
||||
//! When this optional dependency is enabled, `SmallVec` implements the `serde::Serialize` and
|
||||
//! `serde::Deserialize` traits.
|
||||
//!
|
||||
//! ### `write`
|
||||
//!
|
||||
//! When this feature is enabled, `SmallVec<[u8; _]>` implements the `std::io::Write` trait.
|
||||
|
||||
Reference in New Issue
Block a user