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