Run with: cargo run -p magnotia-core --example tuning_log_demo Initialises a tracing-subscriber fmt layer so the inference_thread_count INFO event is rendered to stderr. Exercises all 8 (workload, gpu_offloaded) combos under three power scenarios: AC override, battery override, and the real sysfs probe. Used to validate the heuristic on 2026-05-09 against the spec's 6c12t truth table — all 6 rows match. Adds tracing-subscriber as a [dev-dependencies] for the example. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
20 lines
455 B
TOML
20 lines
455 B
TOML
[package]
|
|
name = "magnotia-core"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
description = "Core types, constants, traits, hardware detection, and model registry for Magnotia"
|
|
|
|
[dependencies]
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
thiserror = "2"
|
|
sysinfo = "0.35"
|
|
async-trait = "0.1"
|
|
num_cpus = "1"
|
|
tracing = "0.1"
|
|
libloading = "0.8"
|
|
|
|
[dev-dependencies]
|
|
tempfile = "3"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|