Skip to content

Commit

Permalink
Move to 2024 edition, fix oddities from 2021
Browse files Browse the repository at this point in the history
  • Loading branch information
isbm committed Feb 21, 2025
1 parent ebd028f commit b99057a
Show file tree
Hide file tree
Showing 12 changed files with 82 additions and 19 deletions.
60 changes: 58 additions & 2 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "sysinspect"
version = "0.2.0"
edition = "2021"
version = "0.3.0"
edition = "2024"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
16 changes: 11 additions & 5 deletions libsysinspect/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "libsysinspect"
version = "0.2.0"
edition = "2021"
version = "0.3.0"
edition = "2024"

[dependencies]
base64 = "0.22.1"
Expand All @@ -21,9 +21,15 @@ rand = "0.8.5"
regex = "1.10.6"
rsa = { version = "0.9.6", features = ["pkcs5", "sha1", "sha2"] }
#rustpython = { path = "../../RustPython", features = ["freeze-stdlib"] }
rustpython-pylib = { git="https://github.com/RustPython/RustPython.git", features = ["freeze-stdlib"] }
rustpython = { git="https://github.com/RustPython/RustPython.git", features = ["freeze-stdlib"] }
rustpython-vm = { git = "https://github.com/RustPython/RustPython.git", features = ["freeze-stdlib"] }
rustpython-pylib = { git = "https://github.com/RustPython/RustPython.git", features = [
"freeze-stdlib",
] }
rustpython = { git = "https://github.com/RustPython/RustPython.git", features = [
"freeze-stdlib",
] }
rustpython-vm = { git = "https://github.com/RustPython/RustPython.git", features = [
"freeze-stdlib",
] }
serde = { version = "1.0.210", features = ["derive"] }
serde_json = "1.0.128"
serde_yaml = "0.9.34"
Expand Down
2 changes: 1 addition & 1 deletion libsysinspect/src/mdescr/datapatch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ fn modbase(base: &mut Value, mods: IndexMap<Vec<String>, Value>) {
};

let next = {
if let Value::Mapping(ref mut m) = cv {
if let Value::Mapping(m) = cv {
if rm {
m.remove(Value::String(clr_k.clone()));
None
Expand Down
4 changes: 2 additions & 2 deletions libsysinspect/src/mdescr/mspec.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use super::{datapatch, mspecdef::ModelSpec};
use crate::{cfg::select_config_path, tmpl::render::ModelTplRender, traits::systraits::SystemTraits, SysinspectError};
use crate::{SysinspectError, cfg::select_config_path, tmpl::render::ModelTplRender, traits::systraits::SystemTraits};
use indexmap::IndexMap;
use serde_yaml::Value;
use std::{
Expand Down Expand Up @@ -92,7 +92,7 @@ impl SpecLoader {

for chunk in chunks {
match (&mut base, chunk) {
(Value::Mapping(ref mut amp), Value::Mapping(bmp)) => {
(Value::Mapping(amp), Value::Mapping(bmp)) => {
for (k, v) in bmp {
if let Some(av) = amp.get_mut(k) {
if let (Some(av_map), Some(v_map)) = (av.as_mapping_mut(), v.as_mapping_mut()) {
Expand Down
2 changes: 1 addition & 1 deletion modules/fs/file/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "file"
version = "0.1.0"
edition = "2021"
edition = "2024"

[dependencies]
chrono = "0.4.39"
Expand Down
2 changes: 1 addition & 1 deletion modules/sys/net/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "net"
version = "0.2.0"
edition = "2021"
edition = "2024"

[dependencies]
libsysinspect = { path = "../../../libsysinspect" }
Expand Down
2 changes: 1 addition & 1 deletion modules/sys/proc/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "proc"
version = "0.2.0"
edition = "2021"
edition = "2024"

[dependencies]
libsysinspect = { path = "../../../libsysinspect" }
Expand Down
2 changes: 1 addition & 1 deletion modules/sys/run/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "run"
version = "0.2.0"
edition = "2021"
edition = "2024"

[dependencies]
libsysinspect = { path = "../../../libsysinspect" }
Expand Down
2 changes: 1 addition & 1 deletion modules/sys/ssrun/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "ssrun"
version = "0.1.0"
edition = "2021"
edition = "2024"

[dependencies]
libsysinspect = { path = "../../../libsysinspect" }
Expand Down
3 changes: 2 additions & 1 deletion sysmaster/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "sysmaster"
version = "0.3.0"
edition = "2021"
edition = "2024"

[dependencies]
clap = { version = "4.5.20", features = ["unstable-styles"] }
Expand Down Expand Up @@ -36,3 +36,4 @@ actix-web = "4.9.0"
once_cell = "1.20.2"
daemonize = "0.5.0"
indexmap = { version = "2.7.1", features = ["serde"] }
rusqlite = { version = "0.33.0", features = ["bundled"] }
2 changes: 1 addition & 1 deletion sysminion/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "sysminion"
version = "0.3.0"
edition = "2021"
edition = "2024"

[dependencies]
clap = { version = "4.5.20", features = ["unstable-styles"] }
Expand Down

0 comments on commit b99057a

Please sign in to comment.