mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-25 09:17:57 +00:00
69 lines
2.5 KiB
TOML
69 lines
2.5 KiB
TOML
[package]
|
|
name = "serde"
|
|
version = "1.0.52" # remember to update html_root_url
|
|
authors = ["Erick Tryzelaar <erick.tryzelaar@gmail.com>", "David Tolnay <dtolnay@gmail.com>"]
|
|
license = "MIT/Apache-2.0"
|
|
description = "A generic serialization/deserialization framework"
|
|
homepage = "https://serde.rs"
|
|
repository = "https://github.com/serde-rs/serde"
|
|
documentation = "https://docs.serde.rs/serde/"
|
|
keywords = ["serde", "serialization", "no_std"]
|
|
categories = ["encoding"]
|
|
readme = "README.md"
|
|
include = ["Cargo.toml", "src/**/*.rs", "README.md", "LICENSE-APACHE", "LICENSE-MIT"]
|
|
|
|
[badges]
|
|
travis-ci = { repository = "serde-rs/serde" }
|
|
appveyor = { repository = "serde-rs/serde" }
|
|
|
|
[dependencies]
|
|
serde_derive = { version = "1.0", optional = true, path = "../serde_derive" }
|
|
|
|
[dev-dependencies]
|
|
serde_derive = { version = "1.0", path = "../serde_derive" }
|
|
|
|
|
|
### FEATURES #################################################################
|
|
|
|
[features]
|
|
default = ["std"]
|
|
|
|
# Re-export the derive(Serialize, Deserialize) macros. This is specifically
|
|
# intended for library crates that provide optional Serde impls behind a Cargo
|
|
# cfg of their own. All other crates should depend on serde_derive directly.
|
|
#
|
|
# Please refer to the long comment above the line `pub use serde_derive::*` in
|
|
# src/lib.rs before enabling this feature. If you think you need this feature
|
|
# and your use case does not precisely match the one described in the comment,
|
|
# please open an issue to let us know about your use case.
|
|
derive = ["serde_derive"]
|
|
|
|
# Provide impls for common standard library types like Vec<T> and HashMap<K, V>.
|
|
# Requires a dependency on the Rust standard library.
|
|
std = []
|
|
|
|
# Provide impls for types that require unstable functionality. For tracking and
|
|
# discussion of unstable functionality please refer to this issue:
|
|
#
|
|
# https://github.com/serde-rs/serde/issues/812
|
|
unstable = []
|
|
|
|
# Provide impls for types in the Rust core allocation and collections library
|
|
# including String, Box<T>, Vec<T>, and Cow<T>. This is a subset of std but may
|
|
# be enabled without depending on all of std.
|
|
#
|
|
# Requires a dependency on the unstable core allocation library:
|
|
#
|
|
# https://doc.rust-lang.org/alloc/
|
|
alloc = ["unstable"]
|
|
|
|
# Opt into impls for Rc<T> and Arc<T>. Serializing and deserializing these types
|
|
# does not preserve identity and may result in multiple copies of the same data.
|
|
# Be sure that this is what you want before enabling this feature.
|
|
rc = []
|
|
|
|
# Get serde_derive picked up by the Integer 32 playground. Not public API.
|
|
#
|
|
# http://play.integer32.com/
|
|
playground = ["serde_derive"]
|