# gwm preset: rust
#
# Opinionated .gwm.toml for a Rust crate:
# - refuses to inherit the `target/` symlink, so each worktree keeps its
# own build cache instead of sharing the main repo's
# - runs `cargo fetch` + `direnv allow` after the worktree is created
#
# Preview with `gwm init --preset rust --show`. See
# examples/gwm.toml.example for the full schema.
[]
= "{home}/cc-worktree/{repo}"
= "{type}-{issue}-{desc}"
= "{type}/#{issue}-{desc}"
[[]]
= "target"
[[]]
= "cargo fetch"
= "cargo fetch"
= "file_exists:Cargo.toml"
= "warn"
[[]]
= "direnv allow"
= "direnv allow ."
= "file_exists:.envrc"
= "ignore"