Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
description: "Backend guardrails: how to run Rust tests, migrations, the SQLx cache, and crate boundaries." paths: - "crates/" - "services/" - "tooling/" globs: "crates/,services/,tooling/" alwaysApply: false
Backend guardrails
- Run Rust tests from the repository root with
cargo test -p <package>and leaveSQLX_OFFLINEunset. Offline mode is for checks, builds, and lints, not tests. - Generate migrations with
sqlx migrate add; never invent timestamped filenames. Never hand-edit.sqlx/query-*.json. Prepare the workspace cache from the root inside Nix withjust prepare_db(database guide). - Never generate
.sqlxmetadata for test queries: no--testson prepare. Tests compile against the live database, so they don't need the cache. - Across domain crates, depend on the owning domain service or port; only a
composition root may construct that crate's outbound adapters. Never import
another crate's
outboundmodule from an outbound adapter. Soup's candidate repository may readentity_propertiesafter the properties service authorizes the selected definitions; keep execution and entity access gates in Soup. - Read the Rust development guide before building or testing, and the hexagonal architecture skill before changing inbound, domain, or outbound code.