# Justfile for Novachain
# https://just.systems

# Build in release mode
build-release:
    cargo build --release

# Build in debug mode
build-debug:
    cargo build

# Default target (debug)
build: build-debug

# Install the binary
install:
    cargo install --path .

# Run all pre-commit checks
check:
    prek run -a

# Clean build artifacts
clean:
    cargo clean

# Run tests
test:
    cargo test

# Run clippy
lint:
    cargo clippy -- -D warnings

# Format code
fmt:
    cargo fmt

# Generate documentation
doc:
    cargo doc --no-deps --open

# Publish to crates.io
publish:
    cargo publish --registry crates-io
