Move 17 library crates into crates/, CLI binary into bin/fxt, consolidate 10 test crates into testing/, split config crate from deployment config files. Root directory reduced from 38+ to ~17 directories. All Cargo.toml paths and build.rs proto refs updated. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
21 lines
590 B
Rust
21 lines
590 B
Rust
//! Build script for ML crate - CUDA support conditional
|
|
//!
|
|
//! Enables CUDA when the 'cuda' feature is enabled, otherwise CPU-only
|
|
|
|
fn main() {
|
|
println!("cargo:rerun-if-changed=build.rs");
|
|
|
|
// Only set cpu_only_build when CUDA feature is NOT enabled
|
|
#[cfg(not(feature = "cuda"))]
|
|
{
|
|
println!("cargo:rustc-cfg=cpu_only_build");
|
|
println!("cargo:info=Building CPU-only ML crate");
|
|
}
|
|
|
|
#[cfg(feature = "cuda")]
|
|
{
|
|
println!("cargo:info=Building ML crate with CUDA support");
|
|
// CUDA-specific configuration can go here if needed
|
|
}
|
|
}
|