Section 21 of 25
Adoption checklist and FAQ
Contents
21.1. Checklist for a new project
- Workspace with two crates:
<product>-core(notauri) and theappcrate. kit::pathsfrom day one; no hard-coded home or temporary paths.drivers/src/platform/withmod.rs,unix.rs, your platform file andunsupported.rs, as soon as the first system call appears.- Every feature as a slice with the fixed files; commands of at most 10 lines.
- Events only from
app/<slice>/events.rs. - One integration test target,
tests/it/. - Checks from section 16 in CI from the first week, when the baselines are still empty.
- Build settings from section 22: debug info with
strip = false, linker, one feature set,.taurignore, a compile cache in CI written only frommain. - Heavy native libraries in a driver crate that
coredoes not depend on (5.3). - The SLAT section from 18 in the contributor guide.
21.2. Checklist for an existing project
- Measurement table committed as a plan (19.1, step 1).
- Baseline lists created for every check you will turn on.
- A decision on what may not change, and facades for it.
- Steps 2 to 8 scheduled as separate pull requests, crate splits timed for few open branches.
21.3. Questions
Is SLAT only for Tauri?
No. Replace "Tauri command" with your entry (HTTP handler, CLI subcommand, message consumer) and keep everything else. The app tier is simply "the only crate that knows the entry framework".
Why not hexagonal architecture with ports everywhere?
Ports as traits are worth it when there are two implementations. Most drivers in a desktop application have one. SLAT keeps concrete types until a second implementation exists, and gets testability from pure logic/update functions and data seams instead.
Is five tiers too many for a small app?
Start with two (core and app). Add the others when their code exists and is clean.
Do all slices need all files?
No. A file that is not needed does not exist. A small slice can be a single mod.rs.
When is something an actor and not a service? When all three conditions in 9.1 hold. If you are unsure, it is a service. Turning a service into an actor later is a contained change inside one slice.
What if two slices need each other? The shared part becomes its own slice, and both depend on it. Cycles are never allowed.
Why is the command limit 10 lines? Because a command that only translates needs no unit test of its own. Ten lines is enough to deserialize, call, and map; it is not enough to hide a decision.
Does SLAT slow down compilation?
Splitting into crates usually speeds up incremental builds, because a change in one slice does not rebuild kit, store or drivers. It can slow down a clean build slightly through extra test binaries to link, which is why SLAT caps the number of crates. Section 22 lists the settings that matter more than the number of crates.
We only ship on macOS. Is section 12 worth it now?
Yes, the cheap part of it: kit::paths, contracts for the few system calls you already have, unsupported.rs, and the compile job on Linux and Windows. That costs days now and saves a search through the whole codebase later. The linux.rs and windows.rs files themselves wait until you decide to port.
How do coding agents cope with SLAT? Well, because the layout is fixed and the important rules are checks, not advice. See section 18.