Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .cargo/config.toml

This file was deleted.

4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
}
},
// Install system libraries needed by build scripts (e.g. bindgen/libclang for iceoryx2),
// then install cargo-deny for local deny checks, and activate the git hooks.
"postCreateCommand": "sudo apt-get update && sudo apt-get install -y libclang-dev && sudo rm -rf /var/lib/apt/lists/* && cargo install --locked cargo-deny && git config core.hooksPath .githooks",
// install just (task runner) and cargo-deny, then activate the git hooks.
"postCreateCommand": "sudo apt-get update && sudo apt-get install -y libclang-dev just && sudo rm -rf /var/lib/apt/lists/* && cargo install --locked cargo-deny && just setup",
// Configure tool-specific properties.
"customizations": {
"vscode": {
Expand Down
33 changes: 33 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Just task runner for OATH.
# Full reference: https://just.systems/man/en/
#
# Install: https://just.systems/man/en/packages.html
# Usage: just <recipe> (e.g. `just ci`)

# List all available recipes (default when running `just` with no arguments).
[private]
default:
@just --list

# Point Git at the project's hook directory. Run once after cloning outside the devcontainer.
setup:
git config core.hooksPath .githooks

# Type-check every crate and target without codegen.
check:
cargo check --workspace --all-targets

# Run Clippy across every crate and target; warnings are errors.
lint:
cargo clippy --workspace --all-targets -- -D warnings

# Run the full test suite.
test:
cargo test --workspace

# Check licenses, bans, advisories, and sources.
deny:
cargo deny --all-features check

# Run the full local CI suite: lint, test, and deny.
ci: lint test deny