Skip to content

Commit d5df584

Browse files
authored
Merge pull request #3396 from zecakeh/ci-nightly
ci: Bump version of rust nightly
2 parents 23f1761 + 4724115 commit d5df584

File tree

17 files changed

+68
-18
lines changed

17 files changed

+68
-18
lines changed

.github/workflows/benchmarks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Install Rust
1818
uses: dtolnay/rust-toolchain@master
1919
with:
20-
toolchain: nightly-2024-02-06
20+
toolchain: nightly-2024-05-09
2121
components: rustfmt
2222

2323
- name: Run Benchmarks

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ jobs:
278278
- name: Install Rust
279279
uses: dtolnay/rust-toolchain@master
280280
with:
281-
toolchain: nightly-2024-02-06
281+
toolchain: nightly-2024-05-09
282282
components: rustfmt
283283

284284
- name: Cargo fmt
@@ -315,7 +315,7 @@ jobs:
315315
- name: Install Rust
316316
uses: dtolnay/rust-toolchain@master
317317
with:
318-
toolchain: nightly-2024-02-06
318+
toolchain: nightly-2024-05-09
319319
components: clippy
320320

321321
- name: Load cache

.github/workflows/documentation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Install Rust
3838
uses: dtolnay/rust-toolchain@master
3939
with:
40-
toolchain: nightly-2024-02-06
40+
toolchain: nightly-2024-05-09
4141

4242
- name: Install Node.js
4343
uses: actions/setup-node@v4

bindings/matrix-sdk-crypto-ffi/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ features = ["crypto-store"]
4949

5050
[dependencies.tokio]
5151
version = "1.33.0"
52-
default_features = false
52+
default-features = false
5353
features = ["rt-multi-thread"]
5454

5555
[build-dependencies]

crates/matrix-sdk-base/build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fn main() {
2+
// Prevent unnecessary rerunning of this build script
3+
println!("cargo:rerun-if-changed=build.rs");
4+
5+
// Prevent nightly CI from erroring on tarpaulin_include attribute
6+
println!("cargo:rustc-check-cfg=cfg(tarpaulin_include)");
7+
}

crates/matrix-sdk-common/build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
use std::{env, process};
22

33
fn main() {
4+
// Prevent unnecessary rerunning of this build script
5+
println!("cargo:rerun-if-changed=build.rs");
6+
7+
// Prevent nightly CI from erroring on tarpaulin_include attribute
8+
println!("cargo:rustc-check-cfg=cfg(tarpaulin_include)");
9+
410
let is_wasm = env::var_os("CARGO_CFG_TARGET_ARCH").is_some_and(|arch| arch == "wasm32");
511
if is_wasm && env::var_os("CARGO_FEATURE_JS").is_none() {
612
eprintln!(

crates/matrix-sdk-crypto/build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fn main() {
2+
// Prevent unnecessary rerunning of this build script
3+
println!("cargo:rerun-if-changed=build.rs");
4+
5+
// Prevent nightly CI from erroring on tarpaulin_include attribute
6+
println!("cargo:rustc-check-cfg=cfg(tarpaulin_include)");
7+
}

crates/matrix-sdk-indexeddb/build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fn main() {
2+
// Prevent unnecessary rerunning of this build script
3+
println!("cargo:rerun-if-changed=build.rs");
4+
5+
// Prevent nightly CI from erroring on tarpaulin_include attribute
6+
println!("cargo:rustc-check-cfg=cfg(tarpaulin_include)");
7+
}

crates/matrix-sdk-sqlite/build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fn main() {
2+
// Prevent unnecessary rerunning of this build script
3+
println!("cargo:rerun-if-changed=build.rs");
4+
5+
// Prevent nightly CI from erroring on tarpaulin_include attribute
6+
println!("cargo:rustc-check-cfg=cfg(tarpaulin_include)");
7+
}

crates/matrix-sdk-ui/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ rustls-tls = ["matrix-sdk/rustls-tls"]
2020

2121
uniffi = ["dep:uniffi", "matrix-sdk/uniffi", "matrix-sdk-base/uniffi"]
2222

23+
# Add support for encrypted extensible events.
24+
unstable-msc3956 = ["ruma/unstable-msc3956"]
25+
2326
[dependencies]
2427
as_variant = { workspace = true }
2528
async_cell = "0.2.2"

crates/matrix-sdk-ui/build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fn main() {
2+
// Prevent unnecessary rerunning of this build script
3+
println!("cargo:rerun-if-changed=build.rs");
4+
5+
// Prevent nightly CI from erroring on tarpaulin_include attribute
6+
println!("cargo:rustc-check-cfg=cfg(tarpaulin_include)");
7+
}

crates/matrix-sdk-ui/src/timeline/day_dividers.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ impl DayDividerAdjuster {
133133
// Then check invariants.
134134
if let Some(report) = self.check_invariants(items, initial_state) {
135135
warn!("Errors encountered when checking invariants.");
136-
#[cfg(any(debug, test))]
136+
#[cfg(any(debug_assertions, test))]
137137
panic!("{report}");
138-
#[cfg(not(any(debug, test)))]
138+
#[cfg(not(any(debug_assertions, test)))]
139139
warn!("{report}");
140140
}
141141

crates/matrix-sdk-ui/src/timeline/inner/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ impl<P: RoomDataProvider> TimelineInner<P> {
844844
}
845845
}
846846

847-
#[cfg(any(test, feature = "testing"))]
847+
#[cfg(test)]
848848
pub(super) async fn set_fully_read_event(&self, fully_read_event_id: OwnedEventId) {
849849
self.state.write().await.set_fully_read_event(fully_read_event_id);
850850
}

crates/matrix-sdk/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ optional = true
122122

123123
[target.'cfg(target_arch = "wasm32")'.dependencies]
124124
gloo-timers = { version = "0.3.0", features = ["futures"] }
125-
reqwest = { version = "0.12.4", default_features = false }
125+
reqwest = { version = "0.12.4", default-features = false }
126126
tokio = { workspace = true, features = ["macros"] }
127127

128128
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
129129
backoff = { version = "0.4.0", features = ["tokio"] }
130130
# only activate reqwest's stream feature on non-wasm, the wasm part seems to not
131131
# support *sending* streams, which makes it useless for us.
132-
reqwest = { version = "0.12.4", default_features = false, features = ["stream"] }
132+
reqwest = { version = "0.12.4", default-features = false, features = ["stream"] }
133133
tokio = { workspace = true, features = ["fs", "rt", "macros"] }
134134
tokio-util = "0.7.9"
135135
wiremock = { workspace = true, optional = true }

crates/matrix-sdk/build.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ fn ensure(cond: bool, err: &str) {
1919
}
2020

2121
fn main() {
22+
// Prevent unnecessary rerunning of this build script
23+
println!("cargo:rerun-if-changed=build.rs");
24+
25+
// Prevent nightly CI from erroring on tarpaulin_include attribute
26+
println!("cargo:rustc-check-cfg=cfg(tarpaulin_include)");
27+
2228
let native_tls_set = env_is_set("CARGO_FEATURE_NATIVE_TLS");
2329
let rustls_tls_set = env_is_set("CARGO_FEATURE_RUSTLS_TLS");
2430
ensure(

crates/matrix-sdk/src/sliding_sync/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,13 +131,13 @@ in two additional full-sync-modes, which require additional configuration:
131131
## Rooms
132132

133133
Next to the room list, the details for rooms are the next important aspect.
134-
Each [list](#lists) only references the [`OwnedRoomId`][ruma::OwnedRoomId]
135-
of the room at the given position. The details (`required_state`s and
136-
timeline items) requested by all lists are bundled, together with the common
137-
details (e.g. whether it is a `dm` or its calculated name) and made
138-
available on the Sliding Sync session struct as a [reactive](#reactive-api)
139-
through [`.get_all_rooms`](SlidingSync::get_all_rooms), [`get_room`](SlidingSync::get_room)
140-
and [`get_rooms`](SlidingSync::get_rooms) APIs.
134+
Each [list](#lists) only references the [`OwnedRoomId`] of the room at the given
135+
position. The details (`required_state`s and timeline items) requested by all
136+
lists are bundled, together with the common details (e.g. whether it is a `dm`
137+
or its calculated name) and made available on the Sliding Sync session struct as
138+
a [reactive](#reactive-api) through [`.get_all_rooms`](SlidingSync::get_all_rooms),
139+
[`get_room`](SlidingSync::get_room) and [`get_rooms`](SlidingSync::get_rooms)
140+
APIs.
141141

142142
Notably, this map only knows about the rooms that have come down [Sliding
143143
Sync protocol][MSC] and if the given room isn't in any active list range, it

xtask/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use kotlin::KotlinArgs;
1111
use swift::SwiftArgs;
1212
use xshell::cmd;
1313

14-
const NIGHTLY: &str = "nightly-2024-02-06";
14+
const NIGHTLY: &str = "nightly-2024-05-09";
1515

1616
type Result<T, E = Box<dyn std::error::Error>> = std::result::Result<T, E>;
1717

0 commit comments

Comments
 (0)