| 1 |
[package] |
| 2 |
name = "serde" |
| 3 |
version = "1.0.228" |
| 4 |
authors = ["Erick Tryzelaar <[email protected]>", "David Tolnay <[email protected]>"] |
| 5 |
build = "build.rs" |
| 6 |
categories = ["encoding", "no-std", "no-std::no-alloc"] |
| 7 |
description = "A generic serialization/deserialization framework" |
| 8 |
documentation = "https://docs.rs/serde" |
| 9 |
edition = "2021" |
| 10 |
homepage = "https://serde.rs" |
| 11 |
keywords = ["serde", "serialization", "no_std"] |
| 12 |
license = "MIT OR Apache-2.0" |
| 13 |
readme = "crates-io.md" |
| 14 |
repository = "https://github.com/serde-rs/serde" |
| 15 |
rust-version = "1.56" |
| 16 |
|
| 17 |
[dependencies] |
| 18 |
serde_core = { version = "=1.0.228", path = "../serde_core", default-features = false, features = ["result"] } |
| 19 |
serde_derive = { version = "1", optional = true, path = "../serde_derive" } |
| 20 |
|
| 21 |
[package.metadata.playground] |
| 22 |
features = ["derive", "rc"] |
| 23 |
|
| 24 |
[package.metadata.docs.rs] |
| 25 |
features = ["derive", "rc", "unstable"] |
| 26 |
targets = ["x86_64-unknown-linux-gnu"] |
| 27 |
rustdoc-args = [ |
| 28 |
"--generate-link-to-definition", |
| 29 |
"--generate-macro-expansion", |
| 30 |
"--extern-html-root-url=core=https://doc.rust-lang.org", |
| 31 |
"--extern-html-root-url=alloc=https://doc.rust-lang.org", |
| 32 |
"--extern-html-root-url=std=https://doc.rust-lang.org", |
| 33 |
] |
| 34 |
|
| 35 |
|
| 36 |
### FEATURES ################################################################# |
| 37 |
|
| 38 |
[features] |
| 39 |
default = ["std"] |
| 40 |
|
| 41 |
# Provide derive(Serialize, Deserialize) macros. |
| 42 |
derive = ["serde_derive"] |
| 43 |
|
| 44 |
# Provide impls for common standard library types like Vec<T> and HashMap<K, V>. |
| 45 |
# Requires a dependency on the Rust standard library. |
| 46 |
std = ["serde_core/std"] |
| 47 |
|
| 48 |
# Provide impls for types that require unstable functionality. For tracking and |
| 49 |
# discussion of unstable functionality please refer to this issue: |
| 50 |
# |
| 51 |
# https://github.com/serde-rs/serde/issues/812 |
| 52 |
unstable = ["serde_core/unstable"] |
| 53 |
|
| 54 |
# Provide impls for types in the Rust core allocation and collections library |
| 55 |
# including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may |
| 56 |
# be enabled without depending on all of std. |
| 57 |
alloc = ["serde_core/alloc"] |
| 58 |
|
| 59 |
# Opt into impls for Rc<T> and Arc<T>. Serializing and deserializing these types |
| 60 |
# does not preserve identity and may result in multiple copies of the same data. |
| 61 |
# Be sure that this is what you want before enabling this feature. |
| 62 |
rc = ["serde_core/rc"] |