Import toml 0.7.3
[platform/upstream/rust-toml.git] / Cargo.toml.orig
1 [package]
2 name = "toml"
3 version = "0.7.3"
4 readme = "README.md"
5 license = "MIT OR Apache-2.0"
6 keywords = ["encoding", "toml"]
7 categories = ["encoding", "parser-implementations", "parsing", "config"]
8 description = """
9 A native Rust encoder and decoder of TOML-formatted files and streams. Provides
10 implementations of the standard Serialize/Deserialize traits for TOML data to
11 facilitate deserializing and serializing Rust structures.
12 """
13 authors = ["Alex Crichton <alex@alexcrichton.com>"]
14 repository = "https://github.com/toml-rs/toml"
15 homepage = "https://github.com/toml-rs/toml"
16 documentation = "https://docs.rs/toml"
17 edition = "2021"
18 rust-version = "1.60.0"  # MSRV
19 include = [
20   "src/**/*",
21   "Cargo.toml",
22   "LICENSE*",
23   "README.md",
24   "examples/**/*",
25   "benches/**/*",
26   "tests/**/*"
27 ]
28
29 [package.metadata.release]
30 pre-release-replacements = [
31   {file="CHANGELOG.md", search="Unreleased", replace="{{version}}", min=1},
32   {file="CHANGELOG.md", search="\\.\\.\\.HEAD", replace="...{{tag_name}}", exactly=1},
33   {file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}", min=1},
34   {file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n## [Unreleased] - ReleaseDate\n", exactly=1},
35   {file="CHANGELOG.md", search="<!-- next-url -->", replace="<!-- next-url -->\n[Unreleased]: https://github.com/toml-rs/toml/compare/{{tag_name}}...HEAD", exactly=1},
36 ]
37
38 [package.metadata.docs.rs]
39 rustdoc-args = ["--cfg", "docsrs"]
40
41 [features]
42 default = ["parse", "display"]
43 parse = ["dep:toml_edit"]
44 display = ["dep:toml_edit"]
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 = ["indexmap"]
50
51 [dependencies]
52 serde = "1.0.145"
53 indexmap = { version = "1.9.1", optional = true }
54 toml_edit = { version = "0.19.6", path = "../toml_edit", features = ["serde"], optional = true }
55 toml_datetime = { version = "0.6.1", path = "../toml_datetime", features = ["serde"] }
56 serde_spanned = { version = "0.6.1", path = "../serde_spanned", features = ["serde"] }
57
58 [dev-dependencies]
59 serde = { version = "1.0.152", features = ["derive"] }
60 serde_json = "1.0.93"
61 toml-test-harness = "0.4.3"
62 snapbox = "0.4.7"
63
64 [[test]]
65 name = "decoder_compliance"
66 harness = false
67
68 [[test]]
69 name = "encoder_compliance"
70 harness = false
71
72 [[example]]
73 name = "decode"
74 required-features = ["parse", "display"]
75
76 [[example]]
77 name = "enum_external"
78 required-features = ["parse", "display"]
79
80 [[example]]
81 name = "toml2json"
82 required-features = ["parse", "display"]