diff --git a/bindings/matrix-sdk-crypto-ffi/Cargo.toml b/bindings/matrix-sdk-crypto-ffi/Cargo.toml index 1a482873d..477fcced7 100644 --- a/bindings/matrix-sdk-crypto-ffi/Cargo.toml +++ b/bindings/matrix-sdk-crypto-ffi/Cargo.toml @@ -2,7 +2,7 @@ name = "matrix-sdk-crypto-ffi" version = "0.1.0" authors = ["Damir Jelić "] -edition = "2021" +edition = "2024" rust-version.workspace = true description = "Uniffi based bindings for the Rust SDK crypto crate" repository = "https://github.com/matrix-org/matrix-rust-sdk" diff --git a/bindings/matrix-sdk-ffi-macros/Cargo.toml b/bindings/matrix-sdk-ffi-macros/Cargo.toml index 61dc24824..8af36eb7d 100644 --- a/bindings/matrix-sdk-ffi-macros/Cargo.toml +++ b/bindings/matrix-sdk-ffi-macros/Cargo.toml @@ -1,6 +1,6 @@ [package] description = "Helper macros to write FFI bindings" -edition = "2021" +edition = "2024" homepage = "https://github.com/matrix-org/matrix-rust-sdk" keywords = ["matrix", "chat", "messaging", "ruma"] license = "Apache-2.0" diff --git a/bindings/matrix-sdk-ffi/Cargo.toml b/bindings/matrix-sdk-ffi/Cargo.toml index aa425b771..f29452692 100644 --- a/bindings/matrix-sdk-ffi/Cargo.toml +++ b/bindings/matrix-sdk-ffi/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "matrix-sdk-ffi" version = "0.16.0" -edition = "2021" +edition = "2024" homepage = "https://github.com/matrix-org/matrix-rust-sdk" keywords = ["matrix", "chat", "messaging", "ffi"] license = "Apache-2.0" diff --git a/bindings/matrix-sdk-ffi/src/platform/mod.rs b/bindings/matrix-sdk-ffi/src/platform/mod.rs index 9c8d0ebff..9c79e0aa4 100644 --- a/bindings/matrix-sdk-ffi/src/platform/mod.rs +++ b/bindings/matrix-sdk-ffi/src/platform/mod.rs @@ -514,7 +514,12 @@ impl TracingConfiguration { #[cfg_attr(not(feature = "sentry"), allow(unused_mut))] fn build(mut self) -> LoggingCtx { // Show full backtraces, if we run into panics. - std::env::set_var("RUST_BACKTRACE", "1"); + // + // FIXME: Use safe API for this once stable. Tracking issue: + // https://github.com/rust-lang/rust/issues/93346 + unsafe { + std::env::set_var("RUST_BACKTRACE", "1"); + } // Log panics. log_panics::init();