dec-number 0.0.2

Decimal Floating Point Arithmetic for Rust
Documentation
version: '3'

silent: true

tasks:

  build:
    desc: Builds the library in debug mode
    cmds:
      - cmd: cargo build

  bench:
    desc: Runs benchmarks
    cmds:
      - cmd: cargo bench -q | grep 'test bench_'

  clean:
    desc: Cleans all targets
    cmds:
      - cmd: cargo clean

  doc-open:
    desc: Generates and opens the documentation in browser
    cmds:
      - cmd: cargo doc --no-deps --open

  doc:
    desc: Generates the documentation
    cmds:
      - cmd: cargo doc --no-deps

  release:
    desc: Builds the library in release mode
    cmds:
      - cmd: cargo clean
      - cmd: cargo +stable build --release

  test:
    desc: Tests the library in debug mode
    cmds:
      - cmd: cargo test

  clippy:
    desc: Runs linter for all targets
    cmds:
      - cmd: cargo clippy --all-targets

  fmt:
    desc: Runs the code formatter
    cmds:
      - cmd: cargo fmt