Debian Codegraph @

debian/missing-sources/toml/Cargo.toml.orig

raw
1 [package]
2 name = "toml"
3 version = "0.9.11+spec-1.1.0"
4 description = """
5 A native Rust encoder and decoder of TOML-formatted files and streams. Provides
6 implementations of the standard Serialize/Deserialize traits for TOML data to
7 facilitate deserializing and serializing Rust structures.
8 """
9 categories = ["encoding", "parser-implementations", "parsing", "config"]
10 keywords = ["encoding", "toml", "no_std"]
11 repository.workspace = true
12 license.workspace = true
13 edition.workspace = true
14 rust-version.workspace = true
15 include.workspace = true
16
17 [package.metadata.docs.rs]
18 all-features = true
19 rustdoc-args = ["--generate-link-to-definition"]
20
21 [package.metadata.release]
22 pre-release-replacements = [
23 {file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},
24 {file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
25 {file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
26 {file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
27 {file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/toml-rs/toml/compare/{{tag_name}}...HEAD", exactly=1},
28 ]
29
30 [features]
31 default = ["std", "serde", "parse", "display"]
32 std = ["indexmap?/std", "serde_core?/std", "toml_parser?/std", "toml_writer?/std", "toml_datetime/std", "serde_spanned/std"]
33 serde = ["dep:serde_core", "toml_datetime/serde", "serde_spanned/serde"]
34 parse = ["dep:toml_parser", "dep:winnow"]
35 display = ["dep:toml_writer"]
36 fast_hash = ["preserve_order", "dep:foldhash"]
37 debug = ["std", "toml_parser?/debug", "dep:anstream", "dep:anstyle"]
38
39 # Provide a method disable_recursion_limit to parse arbitrarily deep structures
40 # without any consideration for overflowing the stack. Additionally you will
41 # need to be careful around other recursive operations on the parsed result
42 # which may overflow the stack after deserialization has completed, including,
43 # but not limited to, Display and Debug and Drop impls.
44 unbounded = []
45
46 # Use indexmap rather than BTreeMap as the map type of toml::Value.
47 # This allows data to be read into a Value and written back to a TOML string
48 # while preserving the order of map keys in the input.
49 preserve_order = ["dep:indexmap", "std"]
50
51 [dependencies]
52 serde_core = { version = "1.0.225", default-features = false, features = ["alloc"], optional = true }
53 indexmap = { version = "2.11.4", default-features = false, optional = true }
54 toml_parser = { version = "1.0.6", path = "../toml_parser", default-features = false, features = ["alloc"], optional = true }
55 winnow = { version = "0.7.13", default-features = false, optional = true }
56 anstream = { version = "0.6.20", optional = true }
57 anstyle = { version = "1.0.11", optional = true }
58 toml_datetime = { version = "0.7.5", path = "../toml_datetime", default-features = false, features = ["alloc"] }
59 toml_writer = { version = "1.0.6", path = "../toml_writer", default-features = false, features = ["alloc"], optional = true }
60 serde_spanned = { version = "1.0.4", path = "../serde_spanned", default-features = false, features = ["alloc"] }
61 foldhash = { version = "0.2.0", default-features = false, optional = true }
62
63 [dev-dependencies]
64 serde = { version = "1.0.225", features = ["derive"] }
65 serde_json = "1.0.145"
66 toml-test-harness = { version = "1.3.3", features = ["snapshot"] }
67 toml-test-data = "2.3.3"
68 snapbox = "0.6.21"
69 walkdir = "2.5.0"
70 itertools = "0.14.0"
71 serde-untagged = "0.1.9"
72
73 [[test]]
74 name = "decoder_compliance"
75 harness = false
76
77 [[test]]
78 name = "encoder_compliance"
79 harness = false
80
81 [[test]]
82 name = "encoder_pretty_compliance"
83 harness = false
84
85 [[example]]
86 name = "decode"
87 required-features = ["parse", "display", "serde"]
88
89 [[example]]
90 name = "enum_external"
91 required-features = ["parse", "display", "serde"]
92
93 [[example]]
94 name = "toml2json"
95 required-features = ["parse", "display", "serde"]
96
97 [lints]
98 workspace = true