blob: db7e6b13994389b9dc82fe48a23085b0df4dee2b [file] [log] [blame]
Yi Konge94f3922020-08-31 01:24:17 +08001[package]
2name = "serde"
Matthew Maurereea2c6c2023-03-20 22:48:28 +00003version = "1.0.158" # remember to update html_root_url and serde_derive dependency
Yi Konge94f3922020-08-31 01:24:17 +08004authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>", "David Tolnay <dtolnay@gmail.com>"]
Yi Konge94f3922020-08-31 01:24:17 +08005build = "build.rs"
Jeff Vander Stoepb3001572022-12-19 09:56:23 +01006categories = ["encoding", "no-std"]
7description = "A generic serialization/deserialization framework"
Jeff Vander Stoep3a782582023-02-06 08:58:14 +01008documentation = "https://docs.rs/serde"
Jeff Vander Stoepb3001572022-12-19 09:56:23 +01009homepage = "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"
Matthew Maurereea2c6c2023-03-20 22:48:28 +000015rust-version = "1.19"
Yi Konge94f3922020-08-31 01:24:17 +080016
17[dependencies]
Matthew Maurereea2c6c2023-03-20 22:48:28 +000018serde_derive = { version = "=1.0.158", optional = true, path = "../serde_derive" }
Yi Konge94f3922020-08-31 01:24:17 +080019
20[dev-dependencies]
21serde_derive = { version = "1.0", path = "../serde_derive" }
22
Jeff Vander Stoep3a782582023-02-06 08:58:14 +010023[lib]
24doc-scrape-examples = false
25
Yi Konge94f3922020-08-31 01:24:17 +080026[package.metadata.playground]
27features = ["derive", "rc"]
28
29[package.metadata.docs.rs]
Matthew Maurereea2c6c2023-03-20 22:48:28 +000030features = ["derive"]
Yi Konge94f3922020-08-31 01:24:17 +080031targets = ["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 = []