From 3fd00b3814fd6ec01c9bf6c44ba0a0a0cffc97fc Mon Sep 17 00:00:00 2001 From: Arnav Nagzirkar <113314200+arnavnagzirkar@users.noreply.github.com> Date: Wed, 3 Jun 2026 14:17:44 -0700 Subject: [PATCH 1/2] fix: Reduce dependencies! Fixes huggingface/ratchet#170 --- crates/ratchet-loader/Cargo.toml | 2 -- crates/ratchet-nn/Cargo.toml | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/crates/ratchet-loader/Cargo.toml b/crates/ratchet-loader/Cargo.toml index 3facbcac..9a21f703 100644 --- a/crates/ratchet-loader/Cargo.toml +++ b/crates/ratchet-loader/Cargo.toml @@ -13,8 +13,6 @@ anyhow.workspace = true bytemuck.workspace = true thiserror.workspace = true log.workspace = true -itertools = { workspace = true } -env_logger.workspace = true [target.'cfg(target_arch = "wasm32")'.dependencies] wasm-bindgen = "0.2.84" diff --git a/crates/ratchet-nn/Cargo.toml b/crates/ratchet-nn/Cargo.toml index 76343902..c12809a5 100644 --- a/crates/ratchet-nn/Cargo.toml +++ b/crates/ratchet-nn/Cargo.toml @@ -19,4 +19,4 @@ proptest = { workspace = true } test-strategy = { workspace = true } hf-hub = { workspace = true } ratchet-loader = { path = "../ratchet-loader" } -tokenizers.workspace = true +tokenizers = { workspace = true, default-features = false } From e0e690a024d6d3b7feb45efe9665f336ef6f29f6 Mon Sep 17 00:00:00 2001 From: Arnav Nagzirkar <113314200+arnavnagzirkar@users.noreply.github.com> Date: Wed, 3 Jun 2026 14:49:52 -0700 Subject: [PATCH 2/2] fix: reduce ratchet-cli tokenizer features --- crates/ratchet-cli/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ratchet-cli/Cargo.toml b/crates/ratchet-cli/Cargo.toml index d183cd53..7b94f4fd 100644 --- a/crates/ratchet-cli/Cargo.toml +++ b/crates/ratchet-cli/Cargo.toml @@ -20,7 +20,7 @@ serde_json = { workspace = true } env_logger = { workspace = true } fern = { workspace = true } chrono = { workspace = true } -tokenizers = { workspace = true } +tokenizers = { workspace = true, default-features = false } ndarray = { workspace = true } ndarray-stats = { workspace = true } anyhow.workspace = true