forked from dtolnay/erased-serde
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
52 lines (45 loc) · 1.39 KB
/
Cargo.toml
File metadata and controls
52 lines (45 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
[package]
name = "erased-serde"
version = "0.4.9"
authors = ["David Tolnay <dtolnay@gmail.com>"]
categories = ["encoding", "rust-patterns", "no-std"]
description = "Type-erased Serialize and Serializer traits"
documentation = "https://docs.rs/erased-serde"
edition = "2021"
exclude = ["benches"]
keywords = ["serde", "erasure"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/dtolnay/erased-serde"
rust-version = "1.68"
[dependencies]
serde_core = { version = "1.0.220", default-features = false }
typeid = "1"
[target.'cfg(any())'.dependencies]
serde = { version = "1.0.220", default-features = false }
[dev-dependencies]
rustversion = "1.0.13"
serde = "1.0.220"
serde_cbor = "0.11.2"
serde_derive = "1.0.220"
serde_json = "1.0.99"
trybuild = { version = "1.0.108", features = ["diff"] }
[features]
# Note: at least one of "std" or "alloc" must be enabled.
default = ["std"]
std = ["alloc", "serde_core/std"]
alloc = ["serde_core/alloc"]
unstable-debug = []
[[test]]
name = "test"
path = "tests/readme.rs"
[workspace]
members = ["explanation", "tests/crate"]
[package.metadata.docs.rs]
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = [
"--generate-link-to-definition",
"--generate-macro-expansion",
"--extern-html-root-url=core=https://doc.rust-lang.org",
"--extern-html-root-url=alloc=https://doc.rust-lang.org",
"--extern-html-root-url=std=https://doc.rust-lang.org",
]