Skip to content

Commit

Permalink
sameold: update MSRV and dependencies
Browse files Browse the repository at this point in the history
* MSRV β†’ 1.70
* arraydeque β†’ 0.5
* num-complex β†’ 0.4
* thiserror β†’ 2.0

Minor refactoring is required for arraydeque
  • Loading branch information
cbs228 committed Jan 21, 2025
1 parent 28e12e0 commit 22d5ba8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 25 deletions.
27 changes: 9 additions & 18 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions crates/sameold/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sameold"
rust-version = "1.65"
rust-version = "1.70"
description = "A SAME/EAS digital receiver library"
version = "0.4.0"
authors = ["Colin S <[email protected]>"]
Expand All @@ -12,19 +12,19 @@ readme = "README.md"

[dependencies]
arrayvec = "^0.7.1"
arraydeque = "^0.4.5"
arraydeque = "^0.5"
assert_approx_eq = "1.1.0"
lazy_static = "^1.4.0"
log = "0.4"
nalgebra = "^0.33.2"
num-complex = "^0.3.1"
num-complex = "^0.4"
num-traits = "^0.2"
phf = {version = "^0.11", features = ["macros"]}
regex = "^1.5.5"
slice-ring-buffer = "^0.3"
strum = "^0.26"
strum_macros = "^0.26"
thiserror = "^1.0"
thiserror = "^2.0"

[dependencies.chrono]
version = "^0.4"
Expand Down
4 changes: 2 additions & 2 deletions crates/sameold/src/receiver/codesquelch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ pub struct CodeAndPowerSquelch {
power_track: PowerTracker,

// sample history
sample_history: ArrayDeque<[f32; 64], arraydeque::Wrapping>,
sample_history: ArrayDeque<f32, 64, arraydeque::Wrapping>,

// power threshold history
power_history: ArrayDeque<[bool; 32], arraydeque::Wrapping>,
power_history: ArrayDeque<bool, 32, arraydeque::Wrapping>,

// lifetime total count of symbols received
symbol_counter: u64,
Expand Down
2 changes: 1 addition & 1 deletion crates/sameold/src/receiver/symsync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ impl TimingLoop {
/// Zero-crossing timing error detector
#[derive(Clone, Debug)]
pub struct ZeroCrossingTed {
history: ArrayDeque<[f32; 3], arraydeque::Wrapping>,
history: ArrayDeque<f32, 3, arraydeque::Wrapping>,
sample_counter: u32,
}

Expand Down

0 comments on commit 22d5ba8

Please sign in to comment.