[go: up one dir, main page]

typenum 1.18.0

Typenum is a Rust library for type-level numbers evaluated at compile time. It currently supports bits, unsigned integers, and signed integers. It also provides a type-level array of type-level numbers, but its implementation is incomplete.
Documentation
# Generate code and run lints and tests
test-local: gen lint test
    @just test --features const-generics

# Produce generated code
gen:
    cargo run --package generate
    cargo fmt

# Update lockfiles
up:
    nix flake update
    cargo update

# Run all lints
lint: fmt-check clippy clippy-all

# Check formatting
fmt-check:
    cargo fmt --all -- --check

# Clippy
clippy:
    cargo clippy -- -D warnings

# Clippy with all features
clippy-all:
    # Allow deprecated because we test the no_std feature.
    cargo clippy --all-features -- -D warnings -A deprecated

# Run test
test *args:
    cargo test --verbose --features "strict" {{args}}
    cargo doc --features "strict" {{args}}