ip2asn 0.1.2

A high-performance, memory-efficient Rust crate for mapping IP addresses to Autonomous System (AS) information.
Documentation
# Default task
default:
    @just --list

# Format the code
fmt:
    @cargo fmt

# Lint the code
clippy:
    @cargo clippy -- -D warnings

# cargo deny check
cargo-deny:
    @cargo deny check

# Do it all
all:
    @just lint
    @just test
    @just build
    @just test-doc

# Run all lints
lint:
    @just cargo-deny
    @just clippy
    @just fmt

# run all tests
test *extra_args:
    @just lint
    @cargo nextest run --workspace --all-features {{extra_args}}

# run all tests in release mode
test-release *extra_args:
    @cargo nextest run --workspace --release --all-features {{extra_args}}

# run all tests with logs enabled
test-debug *extra_args:
    @cargo nextest run --workspace --all-features --nocapture {{extra_args}}

# Test cargo documentation
test-doc:
    @cargo test --doc

# Build all workspace packages in release mode
build:
    @cargo build --release --workspace

# cargo-audit
audit:
    @cargo audit

# install cargo-audit
install-audit:
    @cargo install cargo-audit

# install llvm-cov
install llvm-cov:
   @cargo install cargo-llvm-cov --locked

# install cargo-textest
install-nextest:
    @cargo install cargo-nextest --locked

# Run benchmarks
bench *extra_args:
    @cargo bench --all-features {{extra_args}}

# Generate LCOV test coverage report
coverage:
    @cargo llvm-cov --all-features --workspace --lcov --output-path lcov.info

# Generate HTML test coverage report
coverage-html:
    @cargo llvm-cov --all-features --workspace --html --output-dir coverage