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