Skip to content

Commit daac7d9

Browse files
fix: switch airframe to crates.io dep; cargo fmt; enable publish
1 parent a52c5a7 commit daac7d9

5 files changed

Lines changed: 36 additions & 11 deletions

File tree

Cargo.lock

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
[package]
22
name = "shimmy"
33
version = "2.1.0"
4-
# publish = false while airframe 0.2.1 is local (path dep). Remove path dep and
5-
# this line once airframe 0.2.1 is published to crates.io, then `cargo publish`.
6-
publish = false
4+
publish = true
75
edition = "2021"
86
license = "MIT"
97
description = "Lightweight Ollama-compatible inference server with native SafeTensors support. No Python dependencies, cross-platform WebGPU acceleration via Airframe."
@@ -70,7 +68,7 @@ dirs = "5.0"
7068
reqwest = { version = "0.12", features = ["json", "rustls-tls", "stream"], default-features = false }
7169

7270
# Airframe native GPU inference — public crate on crates.io
73-
airframe = { version = "0.2.1", path = "../airframe", optional = true }
71+
airframe = { version = "0.2.1", optional = true }
7472

7573
[dev-dependencies]
7674
tokio-tungstenite = "0.20"

src/discovery.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -431,10 +431,10 @@ mod tests {
431431
// Should include home-based paths. Use slash-normalized comparison so
432432
// the test passes on Windows (PathBuf uses backslashes on Windows).
433433
assert!(
434-
discovery
435-
.search_paths
436-
.iter()
437-
.any(|p| p.to_string_lossy().replace('\\', "/").contains(".cache/huggingface")),
434+
discovery.search_paths.iter().any(|p| p
435+
.to_string_lossy()
436+
.replace('\\', "/")
437+
.contains(".cache/huggingface")),
438438
"Expected .cache/huggingface in search paths, got: {:?}",
439439
discovery.search_paths
440440
);

src/main.rs

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,7 +1782,15 @@ mod tests {
17821782
print_startup_diagnostics("1.6.0", Some("cuda"), false, None, 4, false, "f32");
17831783
print_startup_diagnostics("1.6.0", Some("vulkan"), false, None, 1, false, "f32");
17841784
print_startup_diagnostics("1.6.0", Some("opencl"), false, None, 6, false, "f32");
1785-
print_startup_diagnostics("1.6.0", Some("custom-backend"), false, None, 3, false, "f32");
1785+
print_startup_diagnostics(
1786+
"1.6.0",
1787+
Some("custom-backend"),
1788+
false,
1789+
None,
1790+
3,
1791+
false,
1792+
"f32",
1793+
);
17861794

17871795
// Test completed successfully
17881796
}
@@ -1828,7 +1836,15 @@ mod tests {
18281836
let model_count = 0;
18291837

18301838
// Call diagnostics as serve command would
1831-
print_startup_diagnostics(version, gpu_backend, cpu_moe, n_cpu_moe, model_count, true, "f32");
1839+
print_startup_diagnostics(
1840+
version,
1841+
gpu_backend,
1842+
cpu_moe,
1843+
n_cpu_moe,
1844+
model_count,
1845+
true,
1846+
"f32",
1847+
);
18321848

18331849
// Test completed - verifies function signature matches usage
18341850
}

tests/regression/issue_068_mlx_support.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,12 @@ fn test_ci_build_matrix_features() {
170170

171171
// CI-safe feature set (no path dep, no GPU)
172172
let ci_safe_test = Command::new("cargo")
173-
.args(["check", "--no-default-features", "--features", "huggingface"])
173+
.args([
174+
"check",
175+
"--no-default-features",
176+
"--features",
177+
"huggingface",
178+
])
174179
.output()
175180
.expect("Failed to check huggingface-only features");
176181

0 commit comments

Comments
 (0)