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
# This file contains settings for `cargo hakari`.
# See https://docs.rs/cargo-hakari/latest/cargo_hakari/config for a full list of options.
hakari-package = "workspace-hack"
# Format version for hakari's output. Version 4 requires cargo-hakari 0.9.22 or above.
dep-format-version = "4"
# Setting workspace.resolver = "2" or higher in the root Cargo.toml is HIGHLY recommended.
# Hakari works much better with the v2 resolver. (The v2 and v3 resolvers are identical from
# hakari's perspective, so you're welcome to set either.)
#
# For more about the new feature resolver, see:
# https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html#cargos-new-feature-resolver
resolver = "2"
# Add triples corresponding to platforms commonly used by developers here.
# https://doc.rust-lang.org/rustc/platform-support.html
#
# x86_64-unknown-linux-gnu is what CI builds (service binaries and, via
# cargo-zigbuild's plain-triple passthrough, the lambdas); aarch64-apple-darwin
# covers local dev. Unifying on these platforms is what makes the solo
# per-service/per-lambda builds fingerprint-match the union-built crane dep
# layers (deployCargoArtifacts / lambdaDeployCargoArtifacts), so the warm dep
# caches actually hit instead of silently recompiling shared deps.
platforms = [
"x86_64-unknown-linux-gnu",
"aarch64-apple-darwin",
]
# Write out exact versions rather than a semver range. (Defaults to false.)
# exact-versions = true
# The xtask is a dev-only automation tool (it *runs* hakari); folding its
# dependencies (guppy, hakari, ...) into workspace-hack would drag them into
# the deploy dependency layers that every service build warms. Excluding it
# also means manage-deps does not add the workspace-hack dep to it.
[traversal-excludes]
# xtask: dev-only automation (see above).
# macro_sync_service_jwt and the sync-service packages must stay wasm-safe, so
# they must not gain the workspace-hack dep, which pulls native-only features.
workspace-members = [
# Standalone protocol library. Until a deployable service consumes it,
# ACP's schema features must not alter unrelated service build/codegen closures.
"agent_runtime_protocol",
"xtask",
# xtask command crates: dev-only automation split out of xtask so each
# `cargo x <cmd>` compiles only its own dependency set.
"xtask_paths",
"xtask_graph",
"xtask_deps",
"xtask_nextest_filter",
"xtask_doppler_bins",
"xtask_graphql_soup_schema",
"xtask_graphql_schema_compat",
"xtask_cache_wasm",
"xtask_kafka_topics",
"xtask_workflows",
"xtask_local",
"macro_sync_service_jwt",
"sync_service",
"sync_service_bebop_schema",
"worker-rs-otel",
# maybe_send: zero-dep marker traits used by cache-core; must stay
# wasm-safe (workspace-hack pulls native-only deps like mio into wasm32).
"maybe_send",
# agent_fold and the leaf crates its model is built from. The fold runs in
# the browser (crates/client/agent-fold-wasm) as well as in services, so
# the whole chain must stay wasm-safe; workspace-hack pulls tokio, and so
# mio, which does not build for wasm32.
#
# Cheap to exclude: what these contribute to the union - serde, uuid,
# anyhow, either, nom, tracing, thiserror - is contributed by dozens of
# other members anyway, so the deploy dependency layers are unchanged.
"agent_fold",
# dynamic_ui: the view types the fold's tool details and activity cards hold.
"dynamic_ui",
"graphql_soup_filter_input",
"item_filters",
# Shared notification state is also consumed by the browser-side filter model.
"notification_state",
"item-filter-index",
"predicate-index",
"filter_ast",
"document_sub_type",
"model_file_type",
"macro_user_id",
# Typed owner reference and the bot id it parses. The filter literals'
# owner is a `model_owner::Owner`, so both are now in the browser-side
# filter model chain (item_filters -> item-filter-index ->
# soup-filter-cache-adapter -> cache-wasm) and must stay wasm-safe.
"model_owner",
"bot_id",
"macro_uuid",
"non_empty",
"cowlike",
# database_sql: the SQL-subset parser/compiler for Macro databases runs in
# the browser (cache worker) as well as in services, so it must stay
# wasm-safe.
"database_sql",
# models_databases: the typed write ops the SQL engine will emit, so it
# joins database_sql in the browser and must stay wasm-safe too.
"models_databases",
# pptx_engine: the presentation engine runs in the browser (a wasm32
# module in the editor's worker) as well as in the AI tools, so it must
# stay wasm-safe.
"pptx_engine",
# docx_engine: the Word engine runs in the browser (a wasm32 module in the
# document editor's worker) on top of pptx_engine, so it must stay
# wasm-safe too.
"docx_engine",
# fig_engine: the .fig design viewer's parser and rasterizer runs in the
# browser (a wasm32 module in the viewer's workers), so it must stay
# wasm-safe.
"fig_engine",
# psd_engine and ai_engine: the Photoshop and Illustrator engines run in
# the browser too (wasm32 modules in their editors' workers), on top of
# fig_engine, so they must stay wasm-safe as well.
"psd_engine",
"ai_engine",
# soup-filter-projection is intentionally absent: its wasm-facing adapter
# disables the native-only default `models` feature, so the crate itself
# does not pull workspace-hack into wasm dependency traversal.
"soup-filter-cache-adapter",
]
# Xtask extension (the hakari engine ignores this table; `cargo x deps` in
# tooling/xtask/crates/xtask_deps expands it into traversal excludes).
# Entries are workspace-relative member-path prefixes ending in `*`.
[xtask]
# crates/client/*: browser/Tauri cache crates (cache-core compiles to wasm32
# via cache-wasm; cache-sqlite ships in the Tauri app, not services). They
# must stay wasm-safe and out of the deploy dependency layers — the glob
# keeps future client crates from silently gaining the workspace-hack dep.
traversal-exclude-globs = ["crates/client/*", "crates/soup_filter_cache_adapter*"]