Files
zeekayandHanzo Dev ecd717c6fb the product is Minutes, and the archived tier is gone
A fork of meetily (MIT, Zackriya Solutions) rebranded to Hanzo.

The Python/FastAPI tier, its Docker files, its whisper-server scripts and the
whisper.cpp submodule are deleted rather than rebranded. Upstream's own CLAUDE.md
says that tier is archived and unsupported and tells you not to add endpoints to
it; the shipping product is one Tauri binary that transcribes in-process with
whisper-rs and Parakeet. Rebranding a corpse would have doubled the surface and
taught the next reader that a dead service is a live one. Going with it: the
vestigial localhost:5167 gate the sidebar checked before reading its own
database.

.github/workflows goes too. This repo lives on git.hanzo.ai, which reads
.hanzo/workflows, and we do not use GitHub-hosted runners — six workflow files
that cannot run read like CI that passes. Nothing replaces them yet, because a
pipeline that has never run is worse than an honest absence.

Summaries are written by api.hanzo.ai, our own stack, and it is the default.
The other providers still compile and should go in a follow-up.

The upstream MIT notice stays and the Hanzo copyright joins it. About and the
README say plainly what this is a fork of.

Left alone deliberately, and each is a decision someone must still make: the
minisign updater key is upstream's and we cannot re-sign, so the updater points
at a release path that does not exist yet; the ffmpeg binaries still come from
upstream's GitHub; the Parakeet models still come from upstream's host.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-14 07:40:31 -07:00

93 lines
4.3 KiB
Rust
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#[path = "build/ffmpeg.rs"]
mod ffmpeg;
fn main() {
// GPU Acceleration Detection and Build Guidance
detect_and_report_gpu_capabilities();
#[cfg(target_os = "macos")]
{
println!("cargo:rustc-link-lib=framework=AVFoundation");
println!("cargo:rustc-link-lib=framework=Cocoa");
println!("cargo:rustc-link-lib=framework=Foundation");
// Let the enhanced_macos crate handle its own Swift compilation
// The swift-rs crate build will be handled in the enhanced_macos crate's build.rs
}
// Download and bundle FFmpeg binary at build-time
ffmpeg::ensure_ffmpeg_binary();
tauri_build::build()
}
/// Detects GPU acceleration capabilities and provides build guidance
fn detect_and_report_gpu_capabilities() {
let target_os = std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default();
println!("cargo:warning=🚀 Building Minutes for: {}", target_os);
match target_os.as_str() {
"macos" => {
println!("cargo:warning=✅ macOS: Metal GPU acceleration ENABLED by default");
#[cfg(feature = "coreml")]
println!("cargo:warning=✅ CoreML acceleration ENABLED");
}
"windows" => {
if cfg!(feature = "cuda") {
println!("cargo:warning=✅ Windows: CUDA GPU acceleration ENABLED");
} else if cfg!(feature = "vulkan") {
println!("cargo:warning=✅ Windows: Vulkan GPU acceleration ENABLED");
} else if cfg!(feature = "openblas") {
println!("cargo:warning=✅ Windows: OpenBLAS CPU optimization ENABLED");
} else {
println!("cargo:warning=⚠️ Windows: Using CPU-only mode (no GPU or BLAS acceleration)");
println!("cargo:warning=💡 For NVIDIA GPU: cargo build --release --features cuda");
println!("cargo:warning=💡 For AMD/Intel GPU: cargo build --release --features vulkan");
println!("cargo:warning=💡 For CPU optimization: cargo build --release --features openblas");
// Try to detect NVIDIA GPU
if which::which("nvidia-smi").is_ok() {
println!("cargo:warning=🎯 NVIDIA GPU detected! Consider rebuilding with --features cuda");
}
}
}
"linux" => {
if cfg!(feature = "cuda") {
println!("cargo:warning=✅ Linux: CUDA GPU acceleration ENABLED");
} else if cfg!(feature = "vulkan") {
println!("cargo:warning=✅ Linux: Vulkan GPU acceleration ENABLED");
} else if cfg!(feature = "hipblas") {
println!("cargo:warning=✅ Linux: AMD ROCm (HIP) acceleration ENABLED");
} else if cfg!(feature = "openblas") {
println!("cargo:warning=✅ Linux: OpenBLAS CPU optimization ENABLED");
} else {
println!("cargo:warning=⚠️ Linux: Using CPU-only mode (no GPU or BLAS acceleration)");
println!("cargo:warning=💡 For NVIDIA GPU: cargo build --release --features cuda");
println!("cargo:warning=💡 For AMD GPU: cargo build --release --features hipblas");
println!("cargo:warning=💡 For other GPUs: cargo build --release --features vulkan");
println!("cargo:warning=💡 For CPU optimization: cargo build --release --features openblas");
// Try to detect NVIDIA GPU
if which::which("nvidia-smi").is_ok() {
println!("cargo:warning=🎯 NVIDIA GPU detected! Consider rebuilding with --features cuda");
}
// Try to detect AMD GPU
if which::which("rocm-smi").is_ok() {
println!("cargo:warning=🎯 AMD GPU detected! Consider rebuilding with --features hipblas");
}
}
}
_ => {
println!("cargo:warning=ℹ️ Unknown platform: {}", target_os);
}
}
// Performance guidance
if !cfg!(feature = "cuda") && !cfg!(feature = "vulkan") && !cfg!(feature = "hipblas") && !cfg!(feature = "openblas") && target_os != "macos" {
println!("cargo:warning=📊 Performance: CPU-only builds are significantly slower than GPU/BLAS builds");
println!("cargo:warning=📚 See README.md for GPU/BLAS setup instructions");
}
}