Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

rx.toml Reference

[build]

KeyTypeDefaultDescription
linkerstring"auto"Linker to use: "auto", "mold", "lld", or "system"
rustflagsstring[][]Extra RUSTFLAGS to append
cacheboolfalseEnable the global artifact cache (opt-in; fingerprint does not yet cover target triple, features, toolchain, or build scripts — see PRODUCT.md)
jobsu320Parallel jobs (0 = auto-detect CPU count)
incremental_linkbooltrueEnable incremental linking (split-debuginfo, –as-needed)

[test]

KeyTypeDefaultDescription
runnerstring"auto"Test runner: "auto", "nextest", or "cargo"
extra_argsstring[][]Extra arguments always passed to the test runner

[lint]

KeyTypeDefaultDescription
severitystring"deny"Clippy severity: "deny", "warn", or "allow"
extra_lintsstring[][]Extra clippy lints (e.g. "clippy::pedantic")

[fmt]

KeyTypeDefaultDescription
extra_argsstring[][]Extra rustfmt arguments

[tasks]

Named tasks for rx run. A task is a shell command (string shorthand), or a table with a command and/or depends-on list. Built-in tasks (fmt, lint, test, build, check, ci) are used for names you don’t define; defining the name overrides the built-in.

[tasks]
deploy = "cargo build --release && scp target/release/myapp server:/opt/"

[tasks.ci]
depends-on = ["fmt", "lint", "test", "build"]

[scripts] (deprecated)

Legacy alias for [tasks]: entries are plain name = "command" pairs and are merged into the task table ([tasks] wins on name collisions).

[env]

Key-value pairs of environment variables set for all rx commands:

[env]
RUST_BACKTRACE = "1"
DATABASE_URL = "postgres://localhost/dev"

[profile.<name>]

Override settings per context. See Profiles.