trigger with --feature ml_models (need to make default)

This commit is contained in:
Brandon Thomas committed 2025-03-24 22:31:58 -04:00
1 parent cd3c864eff
commit 456bfd7bb9
3 files changed
+14 -6

No files matched your search

+12 -4
View File
@@ -28,7 +28,7 @@ primitives = { path = "../../lib/data/primitives" }
# Internal ML
# TODO: Only on Windows and Linux
ml_models = { path = "../ml_models", optional = true }
#ml_models = { path = "../ml_models", optional = true }
# External
#openssl = { version = "0.10", features = ["vendored"] }
@@ -58,16 +58,24 @@ tokio-util = { version = "0.7", features = ["codec"] }
# tracing-subscriber = { version = "0.3", features = [ "env-filter", "fmt" ] }
[target.'cfg(not(target_os = "macos"))'.dependencies]
ml_models = { path = "../ml_models" }
[dev-dependencies]
libloading = "0.8.6"
serial_test = "3.2.0"
assertor = "0.0.3"
[target.'cfg(target_os = "macos")'.features]
default = []
#[target.'cfg(target_os = "macos")'.features]
#default = []
#ml_models = ["dep:ml_models"]
[target.'cfg(not(target_os = "macos"))'.features]
default = ["dep:ml_models"]
default = ["ml_models"]
#ml_models = ["dep:ml_models"]
[features]
ml_models = []
[profile.dev]
incremental = true # Compile your binary in smaller steps.
@@ -1,5 +1,5 @@
#[cfg(feature = "ml_models")]
use ml_models::ml::model_cache::ModelCache;
pub use ml_models::ml::model_cache::ModelCache;
#[cfg(not(feature = "ml_models"))]
pub struct ModelCache {
@@ -1,5 +1,5 @@
#[cfg(feature = "ml_models")]
use ml_models::ml::model_config::ModelConfig;
pub use ml_models::ml::model_config::ModelConfig;
#[cfg(not(feature = "ml_models"))]
pub struct ModelConfig {