From ca8bc1dbd3b4b16e9c9fc50583463b089daa9cd7 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Thu, 21 Sep 2023 19:03:21 +0200 Subject: [PATCH 1/6] ci: init dependabot.yml --- .github/dependabot.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/dependabot.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..d02eba7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,15 @@ +version: 2 +updates: + - package-ecosystem: cargo + directory: "/" + schedule: + interval: daily + open-pull-requests-limit: 10 + ignore: + - dependency-name: "*" + update-types: [ "version-update:semver-patch" ] + - package-ecosystem: github-actions + directory: "/" + schedule: + interval: daily + open-pull-requests-limit: 10 From 601acf7569641d7e8e0dc1d86413b371cfc18022 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Thu, 21 Sep 2023 19:03:30 +0200 Subject: [PATCH 2/6] ci: enable github merge train --- .github/workflows/rust.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 598e7b9..9401f6d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,7 +1,7 @@ name: Build # Triggers the workflow on push or pull request events (for any branch in a repository) -on: [ push, pull_request ] +on: [ push, pull_request, merge_group ] env: CARGO_TERM_COLOR: always @@ -60,4 +60,4 @@ jobs: - name: Clippy run: cargo clippy --all-targets - name: Rustdoc - run: cargo doc --document-private-items + run: cargo doc --document-private-items --no-deps From 5f61039699aa3da5661eb6d9163659f03aaa371a Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Thu, 21 Sep 2023 19:09:08 +0200 Subject: [PATCH 3/6] ci: drop unmaintained actions-rs/toolchain --- .github/workflows/rust.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 9401f6d..8132f94 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -16,14 +16,12 @@ jobs: - nightly - 1.61.0 # MSRV steps: - - uses: actions/checkout@v2 - # Important preparation step: override the latest default Rust version in GitHub CI - # with the current value of the iteration in the "strategy.matrix.rust"-array. - - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v4 + - name: Setup Rust toolchain + uses: dtolnay/rust-toolchain@stable with: - profile: default toolchain: ${{ matrix.rust }} - override: true + components: clippy, rustfmt - name: Install required Linux packages for "audio-visualizer"/cpal/minifb run: sudo apt update && sudo apt -y install libasound2-dev libxkbcommon-dev @@ -45,14 +43,12 @@ jobs: rust: - 1.61.0 # MSRV steps: - - uses: actions/checkout@v2 - # Important preparation step: override the latest default Rust version in GitHub CI - # with the current value of the iteration in the "strategy.matrix.rust"-array. - - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v4 + - name: Setup Rust toolchain + uses: dtolnay/rust-toolchain@stable with: - profile: default toolchain: ${{ matrix.rust }} - override: true + components: clippy, rustfmt - name: Install required Linux packages for "audio-visualizer"/cpal/minifb run: sudo apt update && sudo apt -y install libasound2-dev libxkbcommon-dev - name: Rustfmt From b32c3a16251c98313201c30aca1ab8d5ce0311a7 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Thu, 21 Sep 2023 19:14:53 +0200 Subject: [PATCH 4/6] init: .envrc --- .envrc | 1 + 1 file changed, 1 insertion(+) create mode 100644 .envrc diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1d953f4 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix From 74379cbd971ec6c9709ddbadccd0dcc12f68497c Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Thu, 21 Sep 2023 21:27:03 +0200 Subject: [PATCH 5/6] cargo: update dependencies --- Cargo.toml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 44c8357..8b399da 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -25,27 +25,27 @@ name = "fft_spectrum_bench" harness = false [dependencies] -microfft = { version = "0.5", features = ["size-16384"] } +microfft = { version = "0.5.1", features = ["size-16384"] } # approx. compare floats; not only in tests but also during runtime -float-cmp = "0.9" +float-cmp = "0.9.0" # sin() cos() log10() etc for no_std-environments; these are not part of Core library -libm = "0.2" -paste = "1.0" +libm = "0.2.7" +paste = "1.0.14" [dev-dependencies] # readmp3 files in tests and examples -minimp3 = "0.5" +minimp3 = "0.5.1" # visualize spectrum in tests and examples -audio-visualizer = "0.3" +audio-visualizer = "0.4.0" # get audio input in examples -cpal = "0.15.0" +cpal = "0.15.2" # audio data buffering -ringbuffer = "0.12.0" -rand = "0.8" # for benchmark +ringbuffer = "0.15.0" +rand = "0.8.5" # for benchmark # exit in examples -ctrlc = "3.2" +ctrlc = "~3.3.1" # locked because of repo MSRV # for benchmark -criterion = "0.4" +criterion = "~0.4.0" # locked because of repo MSRV # otherwise FFT and other code is too slow From 81ce2f89c0fbc07c57b5dc57cbf2bd6a7132b7f9 Mon Sep 17 00:00:00 2001 From: Philipp Schuster Date: Thu, 21 Sep 2023 21:32:33 +0200 Subject: [PATCH 6/6] MSRV is now 1.63.0 --- .github/workflows/rust.yml | 4 ++-- CHANGELOG.md | 6 ++++-- README.md | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8132f94..a44cb90 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -14,7 +14,7 @@ jobs: rust: - stable - nightly - - 1.61.0 # MSRV + - 1.63.0 # MSRV steps: - uses: actions/checkout@v4 - name: Setup Rust toolchain @@ -41,7 +41,7 @@ jobs: strategy: matrix: rust: - - 1.61.0 # MSRV + - 1.63.0 # MSRV steps: - uses: actions/checkout@v4 - name: Setup Rust toolchain diff --git a/CHANGELOG.md b/CHANGELOG.md index e06f969..8d5a9b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog -# Unreleased +# 1.5.0 (2023-09-21) +- **BREAKING** MSRV is now `1.63.0` +- updated all dependencies - internal code improvements # 1.4.0 (2023-03-04) @@ -12,7 +14,7 @@ - dependency updates ## 1.3.0 (2023-03-04) -- MSRV is now `1.61.0` +- MSRV is now `1.63.0` - `FrequencySpectrum::apply_scaling_fn` now requires a reference to `&mut self`: This is breaking but only for a small percentage of users. Performance is slightly improved as less heap allocations are required. diff --git a/README.md b/README.md index 33ab871..f946694 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ An easy to use and fast `no_std` library (with `alloc`) to get the frequency spectrum of a digital signal (e.g. audio) using FFT. -The **MSRV** (minimum supported Rust version) is `1.61.0`. +The **MSRV** (minimum supported Rust version) is `1.63.0`. ## I want to understand how FFT can be used to get a spectrum Please see file [/EDUCATIONAL.md](/EDUCATIONAL.md).