Client/Server Feature Split (#63)

This commit is contained in:
PROMETHIA-27
2025-09-26 21:59:08 -04:00
committed by GitHub
parent 7f6c00b5d6
commit 2f5d154d26
30 changed files with 674 additions and 271 deletions

View File

@@ -5,24 +5,31 @@ tb_setup_mac:
ln -s $(pwd)/trenchbroom/hedz/hedz.fgd "$HOME/Library/Application Support/TrenchBroom/games/hedz/hedz.fgd" | true
ln -s $(pwd)/trenchbroom/hedz/GameConfig.cfg "$HOME/Library/Application Support/TrenchBroom/games/hedz/GameConfig.cfg" | true
client_args := "--bin hedz_reloaded --no-default-features --features shared/client"
server_args := "--bin server --no-default-features --features shared/server"
run *args:
RUST_BACKTRACE=1 cargo r --bin hedz_reloaded -- {{args}}
cargo b {{server_args}}
RUST_BACKTRACE=1 cargo r {{client_args}} -- {{args}}
server:
RUST_BACKTRACE=1 cargo r --bin server
RUST_BACKTRACE=1 cargo r {{server_args}}
dbg:
RUST_BACKTRACE=1 cargo r --bin hedz_reloaded --features dbg
RUST_BACKTRACE=1 cargo r {{client_args}},dbg
dbg-server:
RUST_BACKTRACE=1 cargo r --bin server --features dbg
RUST_BACKTRACE=1 cargo r {{server_args}},dbg
sort:
cargo sort --workspace
cargo sort --check --workspace
check:
cargo sort --check --workspace
cargo fmt --check
cargo b
cargo clippy
cargo test
cargo b {{client_args}}
cargo b {{server_args}}
cargo clippy {{client_args}}
cargo clippy {{server_args}}
cargo test {{client_args}}
cargo test {{server_args}}