Files
komp_ac/.cargo/config.toml

13 lines
1.0 KiB
TOML

# 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/**", "--exec", "build --package server", "--shell", "workspace_manifest=$(cargo locate-project --workspace --message-format plain); exec ${workspace_manifest%Cargo.toml}target/debug/server server"]