From 2a3b49e5a52d7f32197691776ef8b7fa14a39c59 Mon Sep 17 00:00:00 2001 From: Julien Cretin Date: Thu, 30 Jan 2025 15:07:27 +0100 Subject: [PATCH] Update Rust --- rust/cli/CHANGELOG.md | 6 ++++++ rust/cli/Cargo.lock | 4 ++-- rust/cli/Cargo.toml | 4 ++-- rust/lib/CHANGELOG.md | 6 ++++++ rust/lib/Cargo.lock | 2 +- rust/lib/Cargo.toml | 2 +- rust/lib/src/model.rs | 2 +- 7 files changed, 19 insertions(+), 7 deletions(-) diff --git a/rust/cli/CHANGELOG.md b/rust/cli/CHANGELOG.md index a5c6860e..c89ac9a0 100644 --- a/rust/cli/CHANGELOG.md +++ b/rust/cli/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.1.0-dev + +### Minor + +- Update the model thresholds + ## 0.1.0-rc.3 ### Minor diff --git a/rust/cli/Cargo.lock b/rust/cli/Cargo.lock index c70ebfaf..8f526bf4 100644 --- a/rust/cli/Cargo.lock +++ b/rust/cli/Cargo.lock @@ -460,7 +460,7 @@ checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" [[package]] name = "magika" -version = "0.1.0-rc.3" +version = "0.1.0-rc.4-dev" dependencies = [ "ndarray", "ort", @@ -471,7 +471,7 @@ dependencies = [ [[package]] name = "magika-cli" -version = "0.1.0-rc.3" +version = "0.1.0-rc.4-dev" dependencies = [ "anyhow", "async-channel", diff --git a/rust/cli/Cargo.toml b/rust/cli/Cargo.toml index a5d33e74..39fc1e86 100644 --- a/rust/cli/Cargo.toml +++ b/rust/cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "magika-cli" -version = "0.1.0-rc.3" +version = "0.1.0-dev" authors = ["Magika Developers "] license = "Apache-2.0" edition = "2021" @@ -20,7 +20,7 @@ anyhow = "1.0.86" async-channel = "2.3.1" clap = { version = "4.5.9", features = ["cargo", "derive", "string"] } colored = "2.1.0" -magika = { version = "=0.1.0-rc.3", path = "../lib", features = ["serde"] } +magika = { version = "0.1.0-dev", path = "../lib", features = ["serde"] } num_cpus = "1.16.0" ort = "=2.0.0-rc.9" serde = { version = "1.0.204", features = ["derive"] } diff --git a/rust/lib/CHANGELOG.md b/rust/lib/CHANGELOG.md index eead9b8e..5b7da57b 100644 --- a/rust/lib/CHANGELOG.md +++ b/rust/lib/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.1.0-dev + +### Minor + +- Update the model thresholds + ## 0.1.0-rc.3 ### Minor diff --git a/rust/lib/Cargo.lock b/rust/lib/Cargo.lock index 4047ac31..68aacca6 100644 --- a/rust/lib/Cargo.lock +++ b/rust/lib/Cargo.lock @@ -251,7 +251,7 @@ checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" [[package]] name = "magika" -version = "0.1.0-rc.3" +version = "0.1.0-rc.4-dev" dependencies = [ "data-encoding", "flate2", diff --git a/rust/lib/Cargo.toml b/rust/lib/Cargo.toml index a12d5f23..34cc2e8c 100644 --- a/rust/lib/Cargo.toml +++ b/rust/lib/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "magika" -version = "0.1.0-rc.3" +version = "0.1.0-dev" authors = ["Magika Developers "] license = "Apache-2.0" edition = "2021" diff --git a/rust/lib/src/model.rs b/rust/lib/src/model.rs index f534a707..cc1fe827 100644 --- a/rust/lib/src/model.rs +++ b/rust/lib/src/model.rs @@ -33,7 +33,7 @@ pub(crate) const CONFIG: ModelConfig = ModelConfig { }; #[rustfmt::skip] -const THRESHOLDS: [f32; ContentType::SIZE] = [0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 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