Skip to content

Commit 0c6b75c

Browse files
release(v2.1.1): airframe v0.2.3 temp_buffer hotfix + test cleanup
2 parents 0a67edf + 2ad044f commit 0c6b75c

4 files changed

Lines changed: 15 additions & 12 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "shimmy"
3-
version = "2.1.0"
3+
version = "2.1.1"
44
publish = true
55
edition = "2021"
66
license = "MIT"

src/engine/adapter.rs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,20 @@ mod tests {
9898
#[test]
9999
fn test_safetensors_routes_to_safetensors() {
100100
let a = InferenceEngineAdapter::new();
101-
assert_eq!(a.select_backend(&spec("m", "model.safetensors")), BackendChoice::SafeTensors);
101+
assert_eq!(
102+
a.select_backend(&spec("m", "model.safetensors")),
103+
BackendChoice::SafeTensors
104+
);
102105
}
103106

104107
#[test]
105108
#[cfg(feature = "airframe")]
106109
fn test_gguf_routes_to_airframe() {
107110
let a = InferenceEngineAdapter::new();
108-
assert_eq!(a.select_backend(&spec("m", "model.gguf")), BackendChoice::Airframe);
111+
assert_eq!(
112+
a.select_backend(&spec("m", "model.gguf")),
113+
BackendChoice::Airframe
114+
);
109115
}
110116

111117
#[test]

tests/regression_tests.rs

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -376,18 +376,15 @@ mod regression_tests {
376376
// MLX feature is disabled - that's also valid
377377
}
378378

379-
// Test that Cargo.toml includes MLX feature definition
379+
// Test that Cargo.toml includes key feature definitions
380380
let cargo_toml = include_str!("../Cargo.toml");
381381
assert!(
382-
cargo_toml.contains("mlx = []"),
383-
"MLX feature should be defined in Cargo.toml"
382+
cargo_toml.contains("airframe") || cargo_toml.contains("huggingface"),
383+
"Cargo.toml should contain core feature definitions"
384384
);
385385

386-
// Test that Apple Silicon convenience feature includes MLX
387-
assert!(
388-
cargo_toml.contains("apple = ["),
389-
"Apple convenience feature should exist"
390-
);
386+
// v2.2 cleanup: mlx and apple features were removed (llama.cpp backend removed)
387+
// This is intentional — no assertion needed for removed features
391388
}
392389

393390
#[test]

0 commit comments

Comments
 (0)