mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-04-26 02:01:00 -04:00
refactor: Remove implicit features for optional dependencies
Consistently use `dep:` syntax for optional dependencies so they don't implicitly act as features of their own.
This commit is contained in:
@@ -22,7 +22,7 @@ crate-type = ["cdylib"]
|
||||
default = []
|
||||
qrcode = ["matrix-sdk-crypto/qrcode"]
|
||||
docsrs = []
|
||||
tracing = ["tracing-subscriber"]
|
||||
tracing = ["dep:tracing-subscriber"]
|
||||
|
||||
[dependencies]
|
||||
matrix-sdk-crypto = { version = "0.5.0", path = "../../crates/matrix-sdk-crypto" }
|
||||
|
||||
@@ -17,12 +17,12 @@ rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
||||
[features]
|
||||
default = []
|
||||
e2e-encryption = ["matrix-sdk-crypto"]
|
||||
qrcode = ["matrix-sdk-crypto/qrcode"]
|
||||
e2e-encryption = ["dep:matrix-sdk-crypto"]
|
||||
qrcode = ["matrix-sdk-crypto?/qrcode"]
|
||||
experimental-timeline = []
|
||||
|
||||
# helpers for testing features build upon this
|
||||
testing = ["http"]
|
||||
testing = ["dep:http"]
|
||||
|
||||
[dependencies]
|
||||
async-stream = "0.3.3"
|
||||
|
||||
@@ -17,12 +17,12 @@ rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
||||
[features]
|
||||
default = []
|
||||
qrcode = ["matrix-sdk-qrcode"]
|
||||
backups_v1 = ["olm-rs", "bs58"]
|
||||
qrcode = ["dep:matrix-sdk-qrcode"]
|
||||
backups_v1 = ["dep:olm-rs", "dep:bs58"]
|
||||
docsrs = []
|
||||
|
||||
# Testing helpers for implementations based upon this
|
||||
testing = ["http"]
|
||||
testing = ["dep:http"]
|
||||
|
||||
[dependencies]
|
||||
aes = "0.8.1"
|
||||
|
||||
@@ -15,7 +15,7 @@ rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
||||
[features]
|
||||
default = ["e2e-encryption"]
|
||||
e2e-encryption = ["matrix-sdk-base/e2e-encryption", "matrix-sdk-crypto"]
|
||||
e2e-encryption = ["matrix-sdk-base/e2e-encryption", "dep:matrix-sdk-crypto"]
|
||||
experimental-timeline = ["matrix-sdk-base/experimental-timeline"]
|
||||
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
||||
[features]
|
||||
default = ["decode_image"]
|
||||
decode_image = ["image", "rqrr", "qrcode/image", "qrcode/svg"]
|
||||
decode_image = ["dep:image", "dep:rqrr", "qrcode/image", "qrcode/svg"]
|
||||
|
||||
[dependencies]
|
||||
base64 = "0.13.0"
|
||||
|
||||
@@ -16,12 +16,16 @@ rustdoc-args = ["--cfg", "docsrs"]
|
||||
[features]
|
||||
default = ["state-store"]
|
||||
|
||||
state-store = ["matrix-sdk-base"]
|
||||
state-store = ["dep:matrix-sdk-base"]
|
||||
crypto-store = [
|
||||
"matrix-sdk-crypto",
|
||||
"matrix-sdk-base/e2e-encryption",
|
||||
"dep:matrix-sdk-base",
|
||||
"dep:matrix-sdk-crypto",
|
||||
"matrix-sdk-base?/e2e-encryption",
|
||||
]
|
||||
experimental-timeline = [
|
||||
"dep:matrix-sdk-base",
|
||||
"matrix-sdk-base?/experimental-timeline",
|
||||
]
|
||||
experimental-timeline = ["matrix-sdk-base/experimental-timeline"]
|
||||
|
||||
[dependencies]
|
||||
async-stream = "0.3.3"
|
||||
|
||||
@@ -11,7 +11,7 @@ rust-version = "1.60"
|
||||
rustdoc-args = ["--cfg", "docsrs"]
|
||||
|
||||
[features]
|
||||
js = ["getrandom/js"]
|
||||
js = ["dep:getrandom", "getrandom?/js"]
|
||||
|
||||
[dependencies]
|
||||
blake3 = "1.3.1"
|
||||
|
||||
@@ -28,18 +28,18 @@ e2e-encryption = [
|
||||
"matrix-sdk-indexeddb?/e2e-encryption", # activate on indexeddb if given
|
||||
]
|
||||
|
||||
sled = ["matrix-sdk-sled/state-store"]
|
||||
indexeddb = ["matrix-sdk-indexeddb"]
|
||||
sled = ["dep:matrix-sdk-sled", "matrix-sdk-sled?/state-store"]
|
||||
indexeddb = ["dep:matrix-sdk-indexeddb"]
|
||||
|
||||
qrcode = ["e2e-encryption", "matrix-sdk-base/qrcode"]
|
||||
markdown = ["ruma/markdown"]
|
||||
native-tls = ["reqwest/native-tls"]
|
||||
rustls-tls = ["reqwest/rustls-tls"]
|
||||
socks = ["reqwest/socks"]
|
||||
sso-login = ["warp", "rand", "tokio-stream"]
|
||||
sso-login = ["warp", "dep:rand", "dep:tokio-stream"]
|
||||
appservice = ["ruma/appservice-api-s"]
|
||||
image-proc = ["image"]
|
||||
image-rayon = ["image-proc", "image/jpeg_rayon"]
|
||||
image-proc = ["dep:image"]
|
||||
image-rayon = ["image-proc", "image?/jpeg_rayon"]
|
||||
|
||||
experimental-timeline = [
|
||||
"matrix-sdk-base/experimental-timeline",
|
||||
|
||||
Reference in New Issue
Block a user