| 1 |
[package] |
| 2 |
name = "serde" |
| 3 |
version = "1.0.200" |
| 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 = "2018" |
| 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.31" |
| 16 |
|
| 17 |
[dependencies] |
| 18 |
serde_derive = { version = "1", optional = true, path = "../serde_derive" } |
| 19 |
|
| 20 |
[dev-dependencies] |
| 21 |
serde_derive = { version = "1", path = "../serde_derive" } |
| 22 |
|
| 23 |
[lib] |
| 24 |
doc-scrape-examples = false |
| 25 |
|
| 26 |
[package.metadata.playground] |
| 27 |
features = ["derive", "rc"] |
| 28 |
|
| 29 |
[package.metadata.docs.rs] |
| 30 |
features = ["derive", "rc", "unstable"] |
| 31 |
targets = ["x86_64-unknown-linux-gnu"] |
| 32 |
rustdoc-args = ["--cfg", "doc_cfg", "--generate-link-to-definition"] |
| 33 |
|
| 34 |
# This cfg cannot be enabled, but it still forces Cargo to keep serde_derive's |
| 35 |
# version in lockstep with serde's, even if someone depends on the two crates |
| 36 |
# separately with serde's "derive" feature disabled. Every serde_derive release |
| 37 |
# is compatible with exactly one serde release because the generated code |
| 38 |
# involves nonpublic APIs which are not bound by semver. |
| 39 |
[target.'cfg(any())'.dependencies] |
| 40 |
serde_derive = { version = "=1.0.200", path = "../serde_derive" } |
| 41 |
|
| 42 |
|
| 43 |
### FEATURES ################################################################# |
| 44 |
|
| 45 |
[features] |
| 46 |
default = ["std"] |
| 47 |
|
| 48 |
# Provide derive(Serialize, Deserialize) macros. |
| 49 |
derive = ["serde_derive"] |
| 50 |
|
| 51 |
# Provide impls for common standard library types like Vec<T> and HashMap<K, V>. |
| 52 |
# Requires a dependency on the Rust standard library. |
| 53 |
std = [] |
| 54 |
|
| 55 |
# Provide impls for types that require unstable functionality. For tracking and |
| 56 |
# discussion of unstable functionality please refer to this issue: |
| 57 |
# |
| 58 |
# https://github.com/serde-rs/serde/issues/812 |
| 59 |
unstable = [] |
| 60 |
|
| 61 |
# Provide impls for types in the Rust core allocation and collections library |
| 62 |
# including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may |
| 63 |
# be enabled without depending on all of std. |
| 64 |
alloc = [] |
| 65 |
|
| 66 |
# Opt into impls for Rc<T> and Arc<T>. Serializing and deserializing these types |
| 67 |
# does not preserve identity and may result in multiple copies of the same data. |
| 68 |
# Be sure that this is what you want before enabling this feature. |
| 69 |
rc = [] |