1[package]
2name = "zvariant"
3version = "4.2.0"
4authors = ["Zeeshan Ali Khan <zeeshanak@gnome.org>"]
5edition = "2021"
6rust-version = "1.75"
7
8description = "D-Bus & GVariant encoding & decoding"
9repository = "https://github.com/dbus2/zbus/"
10keywords = ["D-Bus", "DBus", "IPC", "GVariant"]
11license = "MIT"
12categories = ["data-structures", "encoding", "parsing"]
13readme = "README.md"
14
15[features]
16default = []
17# FIXME: Also allow disabling D-Bus support
18gvariant = []
19ostree-tests = ["gvariant"]
20# Enables ser/de of `Option<T>` as an array of 0 or 1 elements.
21option-as-array = []
22
23[dependencies]
24endi = "1.1.0"
25serde = { version = "1.0.200", features = ["derive"] }
26arrayvec = { version = "0.7.4", features = ["serde"], optional = true }
27enumflags2 = { version = "0.7.9", features = ["serde"], optional = true }
28zvariant_derive = { version = "=4.2.0", path = "../zvariant_derive" }
29serde_bytes = { version = "0.11.14", optional = true }
30static_assertions = "1.1.0"
31uuid = { version = "1.8.0", features = ["serde"], optional = true }
32url = { version = "2.5.0", features = ["serde"], optional = true }
33time = { version = "0.3.36", features = ["serde"], optional = true }
34chrono = { version = "0.4.38", features = [
35 "serde",
36], default-features = false, optional = true }
37heapless = { version = "0.8.0", features = ["serde"], optional = true }
38
39[dev-dependencies]
40serde_json = "1.0.116"
41serde_repr = "0.1.19"
42# If you want to avoid compiling glib even when compiling tests or examples, comment out the glib
43# dev-dependency. Dev-dependencies can't be made optional, and hence can't be disabled with a
44# feature so you have to do it manually. Also, don't enable the gvariant default feature.
45glib = "0.20.0"
46rand = "0.8.5"
47criterion = "0.5.1"
48
49[lib]
50bench = false
51
52[[bench]]
53name = "benchmarks"
54harness = false
55
56[package.metadata.docs.rs]
57all-features = true
58