Initial commit: Fabrilis docs, rules and deterministic core

Docs (architecture, decisions, coupling, determinism, UI, references), code rules enforced by tools/limits, deterministic core with units, time, math, sched, snapshot, vec and rng, plus smoke tests. ref/ stays out of git.
This commit is contained in:
Loki 2026-11-16 19:09:10 +01:00
commit 79928b645b
Signed by: boba
GPG key ID: 6CDE87BC9A778D97
222 changed files with 5335 additions and 0 deletions

32
crates/modes/Cargo.toml Normal file
View file

@ -0,0 +1,32 @@
[package]
name = "fabrilis-modes"
version.workspace = true
edition.workspace = true
license.workspace = true
authors.workspace = true
publish = false
[lints]
workspace = true
[dependencies]
fabrilis-core = { path = "../core" }
fabrilis-platform = { path = "../platform" }
fabrilis-storage = { path = "../storage" }
fabrilis-scene = { path = "../scene" }
fabrilis-parts = { path = "../parts" }
fabrilis-physics = { path = "../physics" }
fabrilis-structure = { path = "../structure" }
fabrilis-thermal = { path = "../thermal" }
fabrilis-wiring = { path = "../wiring" }
fabrilis-aero = { path = "../aero" }
fabrilis-actuators = { path = "../actuators" }
fabrilis-analog = { path = "../analog" }
fabrilis-cpu = { path = "../cpu" }
fabrilis-soc = { path = "../soc" }
fabrilis-bridge = { path = "../bridge" }
fabrilis-worldgen = { path = "../worldgen" }
fabrilis-scripting = { path = "../scripting" }
[build-dependencies]
fabrilis-limits = { path = "../../tools/limits" }

5
crates/modes/build.rs Normal file
View file

@ -0,0 +1,5 @@
//! Enforces the repository rules at build time (see tools/limits).
fn main() {
fabrilis_limits::enforce_crate();
}

View file

@ -0,0 +1 @@
//! fabrilis-modes :: bench - stub (see docs/ARCHITECTURE.md)

View file

@ -0,0 +1 @@
//! fabrilis-modes :: lab - stub (see docs/ARCHITECTURE.md)

5
crates/modes/src/lib.rs Normal file
View file

@ -0,0 +1,5 @@
//! Bench / Lab / World modes as Fidelity presets
pub mod bench;
pub mod lab;
pub mod presets;
pub mod world;

View file

@ -0,0 +1 @@
//! fabrilis-modes :: presets - stub (see docs/ARCHITECTURE.md)

View file

@ -0,0 +1 @@
//! fabrilis-modes :: world - stub (see docs/ARCHITECTURE.md)