generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 423
Expand file tree
/
Copy pathCargo.toml
More file actions
146 lines (135 loc) · 3.8 KB
/
Cargo.toml
File metadata and controls
146 lines (135 loc) · 3.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[package]
name = "zbus"
version = "4.4.0"
authors = ["Zeeshan Ali Khan <zeeshanak@gnome.org>"]
edition = "2021"
rust-version = "1.75"
description = "API for D-Bus communication"
repository = "https://github.com/dbus2/zbus/"
keywords = ["D-Bus", "DBus", "IPC"]
license = "MIT"
categories = ["os::unix-apis"]
readme = "README.md"
[features]
default = ["async-io"]
uuid = ["zvariant/uuid"]
url = ["zvariant/url"]
time = ["zvariant/time"]
chrono = ["zvariant/chrono"]
heapless = ["zvariant/heapless"]
# Enables ser/de of `Option<T>` as an array of 0 or 1 elements.
option-as-array = ["zvariant/option-as-array"]
# Enables API that is only needed for bus implementations (enables `p2p`).
bus-impl = ["p2p"]
# Enables API that is only needed for peer-to-peer (p2p) connections.
p2p = []
async-io = [
"dep:async-io",
"async-executor",
"async-task",
"async-lock",
"async-fs",
"blocking",
"futures-util/io",
]
tokio = ["dep:tokio"]
vsock = ["dep:vsock", "dep:async-io"]
tokio-vsock = ["dep:tokio-vsock", "tokio"]
[dependencies]
serde = { version = "1.0.219", features = ["derive"] }
serde_repr = "0.1.20"
zvariant = { version = "4.2.0", default-features = false, features = [
"enumflags2",
] }
zbus_names = { path = "../zbus_names", version = "3.0" }
zbus_macros = { version = "=4.4.0" }
enumflags2 = { version = "0.7.11", features = ["serde"] }
async-io = { version = "2.3.2", optional = true }
futures-core = "0.3.30"
futures-sink = "0.3.30"
futures-util = { version = "0.3.30", default-features = false, features = [
"sink",
"std",
] }
async-lock = { version = "3.3.0", optional = true }
async-broadcast = "0.7.0"
async-executor = { version = "1.13.2", optional = true }
blocking = { version = "1.6.0", optional = true }
async-task = { version = "4.7.1", optional = true }
hex = "0.4.3"
ordered-stream = "0.2"
rand = "0.8.5"
sha1 = { version = "0.10.6", features = ["std"] }
event-listener = "5.3.0"
static_assertions = "1.1.0"
async-trait = "0.1.87"
async-fs = { version = "2.1.2", optional = true }
# FIXME: We should only enable process feature for Mac OS. See comment on async-process below for why we can't.
tokio = { version = "1.44.2", optional = true, features = [
"rt",
"net",
"time",
"fs",
"io-util",
"process",
"sync",
"tracing",
] }
tracing = "0.1.40"
vsock = { version = "0.5.0", optional = true }
tokio-vsock = { version = "0.7", optional = true }
xdg-home = "1.1.0"
[target.'cfg(windows)'.dependencies]
windows-sys = { version = "0.59", features = [
"Win32_Foundation",
"Win32_Security_Authorization",
"Win32_System_Memory",
"Win32_Networking",
"Win32_Networking_WinSock",
"Win32_NetworkManagement",
"Win32_NetworkManagement_IpHelper",
"Win32_System_IO",
"Win32_System_Threading",
] }
uds_windows = "1.1.0"
[target.'cfg(unix)'.dependencies]
nix = { version = "0.30", default-features = false, features = [
"socket",
"uio",
"user",
] }
[target.'cfg(target_os = "macos")'.dependencies]
# FIXME: This should only be enabled if async-io feature is enabled but currently
# Cargo doesn't provide a way to do that for only specific target OS: https://github.com/rust-lang/cargo/issues/1197.
async-process = "2.2.2"
[target.'cfg(any(target_os = "macos", windows))'.dependencies]
async-recursion = "1.1.1"
[dev-dependencies]
zbus_xml = "4.0.0"
doc-comment = "0.3.3"
futures-util = "0.3.30" # activate default features
ntest = "0.9.2"
test-log = { version = "0.2.17", features = [
"trace",
], default-features = false }
tokio = { version = "1.44.2", features = [
"macros",
"rt-multi-thread",
"fs",
"io-util",
"net",
"sync",
"time",
"test-util",
] }
tracing-subscriber = { version = "0.3.19", features = [
"env-filter",
"fmt",
"ansi",
], default-features = false }
tempfile = "3.18.0"
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
[lints]
workspace = true