Skip to content

Commit 241e5ec

Browse files
committed
build: use optional dependency syntax
The optional dependency syntax dep: ensures that the implicit features of the optional dependencies are not created. This cleans up the library interface for consumers, only our explicit flags are exposed.
1 parent c1fa58d commit 241e5ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ tor-rtcompat = { version = "0.21.0", features = ["tokio"], optional = true }
4242

4343
[features]
4444
default = ["database"]
45-
database = ["rusqlite"]
46-
tor = ["arti-client", "tor-rtcompat"]
45+
database = ["dep:rusqlite"]
46+
tor = ["dep:arti-client", "dep:tor-rtcompat"]
4747
filter-control = []
4848

4949
[dev-dependencies]

0 commit comments

Comments
 (0)