From df8ed342cc945ce17ba0ab6e5a961d85d8925a8e Mon Sep 17 00:00:00 2001 From: Dandaedre Date: Mon, 5 Oct 2026 08:19:20 +0200 Subject: [PATCH] test(M1): verify ID separation at compile time Centralize the property-test dependency version and document the pure domain boundary with a compile-fail example. Validation: cargo test -p fader-core --doc --locked (1 compile-fail test passed); locked Cargo metadata and diff checks passed. --- Cargo.toml | 1 + core/Cargo.toml | 2 +- core/src/lib.rs | 10 ++++++++-- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ea85eef..e6e88d9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,6 +14,7 @@ publish = false fader-config = { path = "config" } fader-core = { path = "core" } midi = { path = "midi" } +proptest = "1.11.0" ratatui = { version = "0.29.0", features = ["all-widgets", "serde"] } regex = "1.13.1" thiserror = "2.0.21" diff --git a/core/Cargo.toml b/core/Cargo.toml index 778328c..8a7a2a6 100644 --- a/core/Cargo.toml +++ b/core/Cargo.toml @@ -12,4 +12,4 @@ regex.workspace = true thiserror.workspace = true [dev-dependencies] -proptest = "1.11.0" +proptest.workspace = true diff --git a/core/src/lib.rs b/core/src/lib.rs index e502e44..27244e0 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -1,7 +1,13 @@ //! Pure domain contracts for fader_master. //! -//! This crate deliberately has no runtime, terminal, filesystem, MIDI, or -//! native audio dependencies. +//! Domain logic has no runtime, terminal, filesystem, or native audio/MIDI +//! dependencies. Stable IDs are distinct types: +//! +//! ```compile_fail +//! use fader_core::{ApplicationId, GroupId}; +//! let application = ApplicationId::new("music").unwrap(); +//! let group: GroupId = application; +//! ``` #![forbid(unsafe_code)]