From 887dd70bed529992a7df1a5d6557e83f28581155 Mon Sep 17 00:00:00 2001 From: John-John Tedro Date: Thu, 12 Sep 2024 16:40:37 +0200 Subject: [PATCH] Bump rust-version and add lints --- .github/workflows/ci.yml | 2 +- audio-core/Cargo.toml | 2 +- audio-device-alsa-sys/Cargo.toml | 2 +- audio-device-pipewire-sys/Cargo.toml | 2 +- audio-device-pulse-sys/Cargo.toml | 2 +- audio-device/Cargo.toml | 2 +- audio-generator/Cargo.toml | 2 +- audio/Cargo.toml | 2 +- ste/Cargo.toml | 5 ++++- 9 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2f88681..63b6d61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,7 +18,7 @@ jobs: strategy: fail-fast: false matrix: - rust: ['1.65', stable] + rust: ['1.70', stable] steps: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@master diff --git a/audio-core/Cargo.toml b/audio-core/Cargo.toml index fcee55e..703ac90 100644 --- a/audio-core/Cargo.toml +++ b/audio-core/Cargo.toml @@ -3,7 +3,7 @@ name = "audio-core" version = "0.2.0" authors = ["John-John Tedro "] edition = "2018" -rust-version = "1.65" +rust-version = "1.70" description = "The core audio traits" documentation = "https://docs.rs/audio" readme = "README.md" diff --git a/audio-device-alsa-sys/Cargo.toml b/audio-device-alsa-sys/Cargo.toml index 67bd320..cc454f8 100644 --- a/audio-device-alsa-sys/Cargo.toml +++ b/audio-device-alsa-sys/Cargo.toml @@ -3,7 +3,7 @@ name = "audio-device-alsa-sys" version = "0.1.0-alpha.1" authors = ["John-John Tedro "] edition = "2018" -rust-version = "1.65" +rust-version = "1.70" description = "audio-device system bindings for ALSA" documentation = "https://docs.rs/audio" readme = "README.md" diff --git a/audio-device-pipewire-sys/Cargo.toml b/audio-device-pipewire-sys/Cargo.toml index ef7073b..55c112b 100644 --- a/audio-device-pipewire-sys/Cargo.toml +++ b/audio-device-pipewire-sys/Cargo.toml @@ -3,7 +3,7 @@ name = "audio-device-pipewire-sys" version = "0.1.0-alpha.1" authors = ["John-John Tedro "] edition = "2018" -rust-version = "1.65" +rust-version = "1.70" description = "audio-device system bindings for PipeWire" documentation = "https://docs.rs/audio" readme = "README.md" diff --git a/audio-device-pulse-sys/Cargo.toml b/audio-device-pulse-sys/Cargo.toml index d7645d9..d9b3272 100644 --- a/audio-device-pulse-sys/Cargo.toml +++ b/audio-device-pulse-sys/Cargo.toml @@ -3,7 +3,7 @@ name = "audio-device-pulse-sys" version = "0.1.0-alpha.1" authors = ["John-John Tedro "] edition = "2018" -rust-version = "1.65" +rust-version = "1.70" description = "audio-device system bindings for PulseAudio" documentation = "https://docs.rs/audio" readme = "README.md" diff --git a/audio-device/Cargo.toml b/audio-device/Cargo.toml index 4690f3b..d5280f5 100644 --- a/audio-device/Cargo.toml +++ b/audio-device/Cargo.toml @@ -3,7 +3,7 @@ name = "audio-device" version = "0.1.0-alpha.6" authors = ["John-John Tedro "] edition = "2018" -rust-version = "1.65" +rust-version = "1.70" description = "A library for interacting with audio devices" documentation = "https://docs.rs/audio" readme = "README.md" diff --git a/audio-generator/Cargo.toml b/audio-generator/Cargo.toml index d3feccb..28377b8 100644 --- a/audio-generator/Cargo.toml +++ b/audio-generator/Cargo.toml @@ -3,7 +3,7 @@ name = "audio-generator" version = "0.1.0-alpha.2" authors = ["John-John Tedro "] edition = "2018" -rust-version = "1.65" +rust-version = "1.70" description = "Audio generator APIs" documentation = "https://docs.rs/audio" readme = "README.md" diff --git a/audio/Cargo.toml b/audio/Cargo.toml index 1358e3f..59b4c6c 100644 --- a/audio/Cargo.toml +++ b/audio/Cargo.toml @@ -3,7 +3,7 @@ name = "audio" version = "0.2.0" authors = ["John-John Tedro "] edition = "2018" -rust-version = "1.65" +rust-version = "1.70" description = "A crate for working with audio in Rust" documentation = "https://docs.rs/audio" readme = "README.md" diff --git a/ste/Cargo.toml b/ste/Cargo.toml index 2e8449d..ae6dbee 100644 --- a/ste/Cargo.toml +++ b/ste/Cargo.toml @@ -3,7 +3,7 @@ name = "ste" version = "0.1.0-alpha.11" authors = ["John-John Tedro "] edition = "2018" -rust-version = "1.65" +rust-version = "1.70" description = "A single-threaded executor with some tricks up its sleeve." documentation = "https://docs.rs/audio" readme = "README.md" @@ -13,6 +13,9 @@ license = "MIT OR Apache-2.0" keywords = ["executor", "thread"] categories = ["concurrency"] +[lints.rust] +unexpected_cfgs = { level = "deny", check-cfg = ['cfg(loom)'] } + [features] default = ["tokio"]