Debian Codegraph @

Cargo.toml.orig

raw
1 [package]
2 name = "compact_str"
3 description = "A memory efficient string type that transparently stores strings on the stack, when possible"
4 version = "0.10.0"
5 authors = ["Parker Timmerman <[email protected]>"]
6 edition = "2021"
7 license = "MIT"
8 rust-version = "1.71"
9 homepage = "https://github.com/ParkMyCar/compact_str"
10 repository = "https://github.com/ParkMyCar/compact_str"
11 readme = "../README.md"
12 keywords = ["string", "compact", "small", "memory", "mutable"]
13 categories = ["encoding", "parsing", "memory-management", "text-processing"]
14
15 [features]
16 default = ["std"]
17 std = []
18
19 arbitrary = ["dep:arbitrary"]
20 bevy-reflect = ["dep:bevy_reflect", "serde"]
21 borsh = ["dep:borsh"]
22 bytes = ["dep:bytes"]
23 defmt = ["dep:defmt"]
24 diesel = ["dep:diesel"]
25 garde = ["dep:garde"]
26 markup = ["dep:markup"]
27 proptest = ["dep:proptest"]
28 pyo3 = ["dep:pyo3"]
29 quickcheck = ["dep:quickcheck"]
30 rkyv = ["dep:rkyv"]
31 schemars = ["dep:schemars"]
32 serde = ["dep:serde"]
33 smallvec = ["dep:smallvec"]
34 sqlx = ["dep:sqlx", "std"]
35 sqlx-mysql = ["sqlx", "sqlx/mysql"]
36 sqlx-postgres = ["sqlx", "sqlx/postgres"]
37 sqlx-sqlite = ["sqlx", "sqlx/sqlite"]
38 utoipa = ["dep:utoipa", "std"]
39 valuable = ["dep:valuable"]
40 zeroize = ["dep:zeroize"]
41
42 [dependencies]
43 arbitrary = { version = "1", optional = true, default-features = false }
44 bevy_reflect = { version = "0.19", optional = true }
45 borsh = { version = "1", optional = true }
46 bytes = { version = "1", optional = true }
47 diesel = { version = "2", optional = true, default-features = false }
48 garde = { version = "0.23", optional = true, default-features = false, features = ["derive"] }
49 markup = { version = "0.16", optional = true, default-features = false }
50 proptest = { version = "1", optional = true, default-features = false, features = [
51 "std",
52 ] }
53 pyo3 = { version = "0.29", optional = true, default-features = false }
54 quickcheck = { version = "1", optional = true, default-features = false }
55 rkyv = { version = "0.8", optional = true, default-features = false }
56 schemars = { version = "1", optional = true, default-features = false }
57 serde = { version = "1", optional = true, default-features = false, features = [
58 "derive",
59 "alloc",
60 ] }
61 smallvec = { version = "1", optional = true, features = ["union"] }
62 sqlx = { version = "0.9", optional = true, default-features = false }
63 utoipa = { version = "5", optional = true }
64 valuable = { version = "0.1.1", optional = true, default-features = false }
65 zeroize = { version = "1", optional = true, default-features = false }
66
67 castaway = { version = "0.2.3", default-features = false, features = ["alloc"] }
68 cfg-if = "1"
69 itoa = "1"
70 zmij = "1"
71 static_assertions = "1"
72
73 # `defmt` only works in ELF binaries.
74 [target.'cfg(not(target_os = "windows"))'.dependencies]
75 defmt = { version = "1", optional = true }
76
77 [dev-dependencies]
78 cfg-if = "1"
79 proptest = { version = "1", default-features = false, features = ["std"] }
80 quickcheck = { version = "1", default-features = false }
81 quickcheck_macros = "1"
82 rayon = "1"
83 rkyv = { version = "0.8", default-features = false, features = ["alloc", "bytecheck"] }
84 serde = { version = "1", features = ["derive"] }
85 serde_json = "1"
86 test-case = "3"
87 test-strategy = "0.3"
88 # Enables `zeroize/alloc` for the `String` baseline in the zeroize parity tests, without widening the public feature.
89 zeroize = { version = "1", default-features = false, features = ["alloc"] }
90 # zmij v1.0.22 is broken on Miri, so we pin our tests to a working version.
91 zmij = "=1.0.21"
92
93 [package.metadata.docs.rs]
94 all-features = true
95 rustdoc-args = ["--cfg", "docsrs"]
96
97 [lints.rust]
98 unexpected_cfgs = { level = "warn", check-cfg = ['cfg(kani)'] }