mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 05:41:16 +01:00
This commit switches to using absolute intead of relative monitor sizes, I don't fully understand by the NS APIs and the CG APIs return totally different coordinate systems. There was also a deadlock in the monitor reconciliator which I think I figured out; it's a little ugly both in code and in execution but the deadlocks and pkill -9s can be put away from now. Cross-monitor moves aren't working which I'll look into next.
51 lines
1.3 KiB
Makefile
51 lines
1.3 KiB
Makefile
export RUST_BACKTRACE := "full"
|
|
|
|
fmt:
|
|
test -z "$(rg 'eyre!' --type rust)" || (echo "eyre! macro not allowed"; false)
|
|
test -z "$(rg 'dbg!' --type rust)" || (echo "dbg! macro not allowed"; false)
|
|
test -z "$(rg 'println!' --type rust ./komorebi)" || (echo "println! macro not allowed"; false)
|
|
cargo +nightly fmt
|
|
cargo +stable clippy
|
|
alejandra .
|
|
prettier --write README.md
|
|
|
|
fix:
|
|
cargo clippy --fix --allow-dirty
|
|
|
|
clean:
|
|
cargo clean
|
|
|
|
install-with-jsonschema target:
|
|
cargo +stable install --path {{ target }} --locked --target-dir ~/.cargo/bin
|
|
|
|
install target:
|
|
cargo +stable install --path {{ target }} --locked --target-dir ~/.cargo/bin --no-default-features
|
|
|
|
build target:
|
|
cargo +stable build --package {{ target }} --locked --release
|
|
|
|
run target:
|
|
cargo +stable run --bin {{ target }} --locked
|
|
|
|
warn target $RUST_LOG="warn":
|
|
just run {{ target }}
|
|
|
|
info target $RUST_LOG="info":
|
|
just run {{ target }}
|
|
|
|
debug target $RUST_LOG="debug":
|
|
just run {{ target }}
|
|
|
|
trace target $RUST_LOG="trace":
|
|
just run {{ target }}
|
|
|
|
deadlock $RUST_LOG="trace":
|
|
cargo +stable run --bin komorebi --locked --no-default-features --features deadlock_detection
|
|
|
|
depgen:
|
|
cargo deny check
|
|
cargo deny list --format json | jq 'del(.unlicensed)' > dependencies.json
|
|
|
|
push:
|
|
git push origin master
|
|
git push komocorp master
|