From 195b84cf9e037a8a266e6e31596d53a79491dd5a Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 28 Oct 2026 15:06:11 +0100 Subject: add dev profile and quick/sim aliases --- .cargo/config.toml | 6 ++++++ Cargo.toml | 10 ++++++++++ 2 files changed, 16 insertions(+) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..8660776 --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,6 @@ +# Shortcuts for the development loop (docs/development.md). +[alias] +# Everything but the simulations: a few seconds. +quick = "test --features libp2p,tor -- --skip simtest" +# The simulations: whole swarms in one process, in real time. +sim = "test --features libp2p,tor simtest" diff --git a/Cargo.toml b/Cargo.toml index 9040ebb..4a0098f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -60,3 +60,13 @@ tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] } url = "2.5" utoipa-swagger-ui = { version = "10", features = ["axum"] } uuid = { version = "1", features = ["v4"] } + +# A quick development loop (docs/development.md): line numbers in backtraces but no +# full debug info, and dependencies built optimised (Automerge's work dominates the +# tests) and without debug info. Built once; then a change rebuilds in seconds. +[profile.dev] +debug = "line-tables-only" + +[profile.dev.package."*"] +debug = false +opt-level = 2 -- cgit v1.3.1