# Faster linking for local dev rebuilds. # Uses lld instead of the default bfd linker; requires `lld` from the flake # devShell. Run `direnv reload` after changing flake.nix. [target.x86_64-unknown-linux-gnu] rustflags = ["-C", "link-arg=-fuse-ld=lld"] # Build first and run the resulting binary outside Cargo. This lets client, # server, and test builds share the target cache without a long-lived # `cargo run` process holding up another Cargo invocation. [alias] watch-client = ["watch", "--delay", "0.1", "--ignore", "**/common/src/proto/**", "--exec", "build --package client", "--shell", "workspace_manifest=$(cargo locate-project --workspace --message-format plain); exec ${workspace_manifest%Cargo.toml}target/debug/client client"] watch-server = ["watch", "--why", "--delay", "0.1", "--ignore", "**/common/src/proto/**", "--ignore", "**/.postgres-data/**", "--exec", "build --package server --features full", "--shell", "workspace_manifest=$(cargo locate-project --workspace --message-format plain); exec ${workspace_manifest%Cargo.toml}target/debug/server server"] [env] POSTGRESQL_VERSION = "=17.10.0"