chore: update to edition 2024; update packages; rename some stuff
This commit is contained in:
parent
82e52bc8f9
commit
275d249320
48 changed files with 359 additions and 208 deletions
54
Justfile
Normal file
54
Justfile
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
[group('build')]
|
||||
build:
|
||||
cargo build --frozen --workspace
|
||||
alias b := build
|
||||
|
||||
# Build statically linked release binaries for all supported architectures
|
||||
[group('build')]
|
||||
build-release-static:
|
||||
cargo build \
|
||||
--release \
|
||||
--frozen \
|
||||
--workspace \
|
||||
--target 'x86_64-unknown-linux-musl' \
|
||||
--target 'aarch64-unknown-linux-musl'
|
||||
|
||||
[ "$(readelf -d target/x86_64-unknown-linux-musl/release/otterd | grep NEEDED | wc -l)" = 0 ]
|
||||
[ "$(readelf -d target/aarch64-unknown-linux-musl/release/otterd | grep NEEDED | wc -l)" = 0 ]
|
||||
|
||||
test:
|
||||
cargo test --frozen --workspace
|
||||
alias t := test
|
||||
|
||||
check:
|
||||
cargo fmt --check --all
|
||||
cargo clippy \
|
||||
--frozen \
|
||||
--all -- \
|
||||
--no-deps \
|
||||
--deny 'clippy::all'
|
||||
alias c := check
|
||||
|
||||
fmt:
|
||||
cargo fmt --all
|
||||
|
||||
fetch:
|
||||
cargo fetch --locked
|
||||
|
||||
clean:
|
||||
cargo clean
|
||||
|
||||
doc:
|
||||
cargo doc --workspace --frozen
|
||||
|
||||
publish-release-binaries tag: build-release-static
|
||||
curl \
|
||||
--netrc \
|
||||
--fail \
|
||||
--upload-file target/x86_64-unknown-linux-musl/release/otterd \
|
||||
https://git.rustybever.be/api/packages/Chewing_Bever/generic/otter/"{{ tag }}"/otterd-linux-amd64
|
||||
curl \
|
||||
--netrc \
|
||||
--fail \
|
||||
--upload-file target/aarch64-unknown-linux-musl/release/otterd \
|
||||
https://git.rustybever.be/api/packages/Chewing_Bever/generic/otter/"{{ tag }}"/otterd-linux-arm64
|
||||
Loading…
Add table
Add a link
Reference in a new issue