Skip to content

The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.

Add a quick profile for trying changes in the window

Jareercfe619ab4192
diff --git a/engine/Cargo.toml b/engine/Cargo.toml
index bce99206..f3718fe2 100644
--- a/engine/Cargo.toml
+++ b/engine/Cargo.toml
@@ -39,6 +39,16 @@ opt-level = 3
lto = "thin"
codegen-units = 1
+# For trying a change in the window: `cargo run --profile quick -p concat`.
+# Optimised enough that video plays as it would in release, without the
+# thin LTO and single codegen unit that make a release rebuild a
+# minutes-long relink. Incremental, so a change in one crate is seconds.
+[profile.quick]
+inherits = "release"
+lto = false
+codegen-units = 16
+incremental = true
+
# The shipping build of the editor window: `cargo build --profile app -p concat`.
#
# Every knob here is set for the fastest possible binary, and each one costs
diff --git a/engine/README.md b/engine/README.md
index d5ddecc3..66964833 100644
--- a/engine/README.md
+++ b/engine/README.md
@@ -40,6 +40,7 @@ cargo test
cargo run -p concat-cli -- probe some-video.mp4
cargo run -p concat-cli -- render some-video.mp4 out.mp4 --frames 120
cargo run -p concat # the editor window, debug
+cargo run --profile quick -p concat # optimised, rebuilds in seconds: for trying changes
cargo build --profile app -p concat # the shipping binary: fat LTO, panic=abort, stripped
```