The truly free, open-source, local-first, cross-platform CapCut replacement. Scriptable through a JSON-RPC API & MCP.
Rust ffmpegfree-video-editormodel-context-protocolnon-linear-editoroffline-firstopen-source-video-editorself-hostedvideo-editingvideo-editing-automationvideo-editing-softwarevideo-editing-toolsvideo-editorvoice-cloningyoutube-automationyoutube-shorts
[workspace]
resolver = "3"
members = ["crates/*"]
[workspace.package]
version = "0.2.8"
edition = "2024"
rust-version = "1.93"
license = "AGPL-3.0-or-later"
[workspace.dependencies]
concat-core = { path = "crates/concat-core" }
concat-media = { path = "crates/concat-media" }
concat-project = { path = "crates/concat-project" }
concat-render = { path = "crates/concat-render" }
concat-export = { path = "crates/concat-export" }
concat-host = { path = "crates/concat-host" }
concat-api = { path = "crates/concat-api" }
concat-server = { path = "crates/concat-server" }
concat-mcp = { path = "crates/concat-mcp" }
concat-speech = { path = "crates/concat-speech" }
concat-effects = { path = "crates/concat-effects" }
concat-text = { path = "crates/concat-text" }
concat-vision = { path = "crates/concat-vision" }
concat = { path = "crates/concat" }
serde_json = "1"
thiserror = "2"
clap = { version = "4", features = ["derive", "env"] }
# JSON Schemas for the API's request types, behind the `schema` features of
# concat-project and concat-api: what concat-mcp hands an agent as each
# tool's input schema, generated from the types so it cannot drift.
schemars = "1"
# The GPU compositor, behind concat-render's `gpu` feature. A heavy tree, which
# is exactly why it is optional: engine-only work never pays for it. Pinned to
# the major Slint 1.17 can share a device with, so the window's renderer and
# the engine's compositor draw on one device and a preview frame never leaves
# the GPU.
wgpu = "30"
pollster = "0.4"
# ONNX Runtime, for the cutout models. The binaries come prebuilt for every
# target the app ships on, with the platform's own accelerator behind them:
# CoreML on macOS and iOS, DirectML on Windows, NNAPI on Android.
#
# ort's default features less the API version, which is not one for every
# target: the ONNX Runtime an Intel Mac gets is older than the others, and
# a feature cannot be taken away per target, only added. concat-vision's
# manifest adds it, and says why.
ort = { version = "=2.0.0-rc.13", default-features = false, features = ["std", "ndarray", "tracing", "download-binaries", "tls-native", "copy-dylibs"] }
[workspace.lints.rust]
missing_docs = "warn"
[workspace.lints.clippy]
# Cleverness is the enemy of a codebase you maintain alone.
too_many_arguments = "allow"
[profile.release]
opt-level = 3
lto = "thin"
codegen-units = 1
# For trying a change in the window: `cargo dev` (an alias for
# `cargo run --bin concat --profile quick`, see .cargo/config.toml).
# 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 window's own crate unoptimised. It is where every edit lands, and
# most of it is the Slint compiler's output: one enormous module that the
# front end takes fifty-odd seconds to check and that LLVM then took two
# minutes over at level 3 - and, measured, the same two minutes at level
# 1, since the time is a few huge generated functions and not the level.
# At 0 that is ten seconds. With the profile's incremental honoured (see
# .cargo/config.toml) a Rust edit rebuilds in twenty seconds and a .slint
# edit in twenty-five, from three minutes twenty. The engine crates keep
# the profile's level 3: decoding and compositing are theirs, and they
# only rebuild when they change. What this crate does itself - publish the
# lanes, run the panes, format a waveform - is light enough that nothing
# on screen tells the difference; if something ever does, the shipping
# build is `--profile app`.
[profile.quick.package.concat]
opt-level = 0
codegen-units = 256
# 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
# build time. It is a separate profile rather than settings on `release`
# because two of them are wrong for the rest of the workspace: `panic =
# "abort"` breaks `cargo test --release`, and stripping symbols is only
# harmless for a binary nobody profiles. Measured on the R&D tree it came
# from, on an M5: clean build 3m18s, binary 22MB, of which about 1.7MB is
# the fonts and effect previews the build script embeds.
#
# What is deliberately not done, so nobody goes looking for it twice:
#
# - No `-C target-cpu=native`. It makes the binary local-only, and the
# research tree that used it says so in its own .cargo/config.toml.
# - No alternative allocator. It is a dependency for a win nobody has
# measured.
# - Skia's partial rendering is still off, and cannot be turned on from
# here: every dirty property redraws the whole window on every GPU
# surface. That is the shape of the UI's frame cost, and no flag in this
# file changes it.
[profile.app]
inherits = "release"
# Fat LTO: re-optimise the whole dependency graph - slint, skia, winit and
# the UI crate - as one unit, so calls across crate boundaries inline.
# The Intel Mac release build overrides this with thin LTO, for time; see
# "Thin LTO (Intel macOS)" in .github/workflows/build-app.yml.
lto = "fat"
# No unwind tables and no landing pads: every call site loses its unwind
# edge, which frees the optimiser and shrinks the binary. This is a GUI
# binary with no tests, and unwinding through the ObjC frames of the macOS
# event loop was never well-defined anyway - winit only catches panics to
# avoid exactly that. The one catch_unwind it links, the server Hub's
# around each API call, does nothing here: a panicking call ends the window
# as before, and is only an error response in the CLI's server.
panic = "abort"
# Symbols are worth nothing in a release binary that is not being profiled.
# Build with `--profile release` instead before running Instruments or perf.
strip = "symbols"
# Decoding and compositing are unusably slow in an unoptimised build, even when
# the rest of the engine is being debugged.
[profile.dev.package."*"]
opt-level = 2
# No incremental caches for the everyday check-and-test builds; see
# .cargo/config.toml for why it is said here and not there.
[profile.dev]
incremental = false
[profile.test]
incremental = false
# Slint's Skia renderer, as published, with one change: text is pixel-snapped
# on a low-density screen (see patches/README.md). The copy is 1.18.1 exactly;
# bump it with Slint, re-applying the change.
[patch.crates-io]
i-slint-renderer-skia = { path = "patches/i-slint-renderer-skia" }
# whisper.cpp's Rust build, as published, able to build ggml as shared
# libraries with one CPU backend per x86_64 generation chosen at run time
# (see patches/README.md, and GGML_BACKEND_DL in build-app.yml). 0.15.0
# exactly; bump it with whisper-rs, re-applying the change.
whisper-rs-sys = { path = "patches/whisper-rs-sys" }