-
-
Notifications
You must be signed in to change notification settings - Fork 779
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This should help with untangling serde's serialized build. Addresses
- Loading branch information
Showing
29 changed files
with
488 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[workspace] | ||
members = [ | ||
"serde", | ||
"serde_core", | ||
"serde_derive", | ||
"serde_derive_internals", | ||
"test_suite", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
[package] | ||
name = "serde" | ||
version = "1.0.202" | ||
authors = ["Erick Tryzelaar <[email protected]>", "David Tolnay <[email protected]>"] | ||
build = "build.rs" | ||
authors = [ | ||
"Erick Tryzelaar <[email protected]>", | ||
"David Tolnay <[email protected]>", | ||
] | ||
categories = ["encoding", "no-std", "no-std::no-alloc"] | ||
description = "A generic serialization/deserialization framework" | ||
documentation = "https://docs.rs/serde" | ||
|
@@ -16,6 +19,7 @@ rust-version = "1.31" | |
|
||
[dependencies] | ||
serde_derive = { version = "1", optional = true, path = "../serde_derive" } | ||
serde_core = { version = "=1.0.202", path = "../serde_core", default-features = false } | ||
|
||
[dev-dependencies] | ||
serde_derive = { version = "1", path = "../serde_derive" } | ||
|
@@ -29,7 +33,7 @@ features = ["derive", "rc"] | |
[package.metadata.docs.rs] | ||
features = ["derive", "rc", "unstable"] | ||
targets = ["x86_64-unknown-linux-gnu"] | ||
rustdoc-args = ["--generate-link-to-definition"] | ||
rustdoc-args = ["--cfg", "doc_cfg", "--generate-link-to-definition"] | ||
|
||
# This cfg cannot be enabled, but it still forces Cargo to keep serde_derive's | ||
# version in lockstep with serde's, even if someone depends on the two crates | ||
|
@@ -50,20 +54,20 @@ 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 = [] | ||
std = ["serde_core/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 = [] | ||
unstable = ["serde_core/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. | ||
alloc = [] | ||
alloc = ["serde_core/alloc"] | ||
|
||
# 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 = [] | ||
rc = ["serde_core/rc"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.