Skip to content

Commit 4a15ec9

Browse files
authored
Merge pull request rust3ds#192 from rust3ds/msrv-bumper
2 parents 7e0be08 + 98c46df commit 4a15ec9

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
matrix:
1616
toolchain:
1717
# Run against a "known good" nightly. Rustc version is 1 day behind the toolchain date
18-
- nightly-2024-02-18
18+
- nightly-2024-03-10
1919
# Check for breakage on latest nightly
2020
- nightly
2121

@@ -54,7 +54,7 @@ jobs:
5454
strategy:
5555
matrix:
5656
toolchain:
57-
- nightly-2024-02-18
57+
- nightly-2024-03-10
5858
- nightly
5959
continue-on-error: ${{ matrix.toolchain == 'nightly' }}
6060
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ Cargo.lock
55
# IDE files
66
.idea
77
.vscode
8+
.zed

ctru-rs/Cargo.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ categories = ["os", "api-bindings", "hardware-support"]
1010
exclude = ["examples"]
1111
license = "Zlib"
1212
edition = "2021"
13-
rust-version = "1.73"
13+
rust-version = "1.78"
1414

1515
[lib]
1616
crate-type = ["rlib"]
@@ -19,13 +19,12 @@ name = "ctru"
1919
[dependencies]
2020
cfg-if = "1.0"
2121
ctru-sys = { path = "../ctru-sys", version = "0.5.0" }
22-
const-zero = "0.1.0"
2322
shim-3ds = { workspace = true }
2423
pthread-3ds = { workspace = true }
2524
libc = { workspace = true, default-features = true }
26-
bitflags = "2.3.3"
25+
bitflags = "2.6.0"
2726
macaddr = "1.0.1"
28-
widestring = "1.0.2"
27+
widestring = "1.1.0"
2928

3029
[build-dependencies]
3130
toml = "0.5"

ctru-rs/examples/local-networking.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ fn main() -> Result<(), Error> {
6060

6161
let mut mode = ConnectionType::Client;
6262

63-
let mut channel = 0;
64-
let data_channel = 1;
63+
let mut channel: u8;
64+
let data_channel: u8 = 1;
6565

6666
let mut prev_node_mask = 0;
6767

ctru-rs/src/console.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use ctru_sys::{consoleClear, consoleInit, consoleSelect, consoleSetWindow, Print
1111

1212
use crate::services::gfx::{Flush, Screen, Swap};
1313

14-
static mut EMPTY_CONSOLE: PrintConsole = unsafe { const_zero::const_zero!(PrintConsole) };
14+
static mut EMPTY_CONSOLE: PrintConsole = unsafe { std::mem::zeroed::<PrintConsole>() };
1515

1616
/// Error enum for generic errors within [`Console`].
1717
#[derive(Copy, Clone, Debug, PartialEq, Eq)]

ctru-rs/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
#![feature(try_trait_v2)]
2424
#![feature(allocator_api)]
2525
#![feature(new_uninit)]
26-
#![feature(diagnostic_namespace)]
2726
#![test_runner(test_runner::run_gdb)] // TODO: does this make sense to have configurable?
2827
#![doc(
2928
html_favicon_url = "https://user-images.githubusercontent.com/11131775/225929072-2fa1741c-93ae-4b47-9bdf-af70f3d59910.png"

ctru-sys/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ fn get_libctru_version(pacman: &Path) -> Result<(String, String, String, String)
239239

240240
fn parse_libctru_version(version: &str) -> Result<(String, String, String, String), String> {
241241
version
242-
.split(|c| c == '.' || c == '-')
242+
.split(['.', '-'])
243243
.map(String::from)
244244
.collect_tuple()
245245
.ok_or_else(|| format!("unexpected number of version segments: {version:?}"))

ctru-sys/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#![allow(non_camel_case_types)]
44
#![allow(non_snake_case)]
55
#![allow(clippy::all)]
6+
#![allow(unexpected_cfgs)] // Read below why we necessate a check for rust_analyzer.
67
#![deny(ambiguous_glob_reexports)]
78
#![cfg_attr(test, feature(custom_test_frameworks))]
89
#![cfg_attr(test, test_runner(test_runner::run_gdb))]

0 commit comments

Comments
 (0)