Skip to content

Commit

Permalink
Allow room key forwarding to be enabled and disabled (matrix-org#1365)
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Enderlin <[email protected]>
  • Loading branch information
poljar and Hywan authored Mar 14, 2023
1 parent eb2bf61 commit 516d849
Show file tree
Hide file tree
Showing 9 changed files with 184 additions and 70 deletions.
33 changes: 30 additions & 3 deletions bindings/matrix-sdk-ffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,38 @@ uniffi = { workspace = true }
url = "2.2.2"
zeroize = { workspace = true }


[target.'cfg(target_os = "android")'.dependencies]
log-panics = { version = "2", features = ["with-backtrace"]}
tracing-android = "0.2.0"
matrix-sdk = { path = "../../crates/matrix-sdk", default-features = false, features = ["anyhow", "experimental-timeline", "e2e-encryption", "sled", "markdown", "experimental-sliding-sync", "socks", "rustls-tls"], version = "0.6.0" }

[target.'cfg(not(target_os = "android"))'.dependencies]
matrix-sdk = { path = "../../crates/matrix-sdk", features = ["anyhow", "experimental-timeline", "markdown", "experimental-sliding-sync", "socks"], version = "0.6.0" }
tracing = { workspace = true }
tracing-subscriber = { version = "0.3", features = ["env-filter"] }

[target.'cfg(target_os = "android")'.dependencies.matrix-sdk]
path = "../../crates/matrix-sdk"
default-features = false
features = [
"anyhow",
"experimental-sliding-sync",
"experimental-timeline",
"e2e-encryption",
"markdown",
"sled",
"socks",
"rustls-tls",
]

[target.'cfg(not(target_os = "android"))'.dependencies.matrix-sdk]
path = "../../crates/matrix-sdk"
default-features = false
features = [
"anyhow",
"experimental-sliding-sync",
"experimental-timeline",
"e2e-encryption",
"markdown",
"native-tls",
"sled",
"socks",
]
3 changes: 2 additions & 1 deletion crates/matrix-sdk-base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ default = []
e2e-encryption = ["dep:matrix-sdk-crypto"]
js = ["matrix-sdk-common/js", "matrix-sdk-crypto?/js", "ruma/js", "matrix-sdk-store-encryption/js"]
qrcode = ["matrix-sdk-crypto?/qrcode"]
automatic-room-key-forwarding = ["matrix-sdk-crypto?/automatic-room-key-forwarding"]
experimental-sliding-sync = ["ruma/unstable-msc3575"]

# helpers for testing features build upon this
Expand All @@ -35,7 +36,7 @@ futures-core = "0.3.21"
futures-util = { workspace = true }
http = { workspace = true, optional = true }
matrix-sdk-common = { version = "0.6.0", path = "../matrix-sdk-common" }
matrix-sdk-crypto = { version = "0.6.0", path = "../matrix-sdk-crypto", optional = true }
matrix-sdk-crypto = { version = "0.6.0", path = "../matrix-sdk-crypto", optional = true, default-features = false }
matrix-sdk-store-encryption = { version = "0.2.0", path = "../matrix-sdk-store-encryption" }
matrix-sdk-test = { version = "0.6.0", path = "../../testing/matrix-sdk-test", optional = true }
once_cell = { workspace = true }
Expand Down
3 changes: 2 additions & 1 deletion crates/matrix-sdk-crypto/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ version = "0.6.0"
rustdoc-args = ["--cfg", "docsrs"]

[features]
default = []
default = ["automatic-room-key-forwarding"]
automatic-room-key-forwarding = []
js = ["ruma/js", "vodozemac/js"]
qrcode = ["dep:matrix-sdk-qrcode"]
backups_v1 = ["dep:olm-rs", "dep:bs58"]
Expand Down
Loading

0 comments on commit 516d849

Please sign in to comment.