dec-number-sys 0.0.28

Rust bindings for The decNumber C library by IBM Fellow Mike Cowlishaw
Documentation
version: '3'

silent: true

tasks:

  all:
    desc: Runs all building steps
    cmds:
      - cmd: cargo +nightly fmt && cargo clean && cargo build && cargo clippy -- -D warnings && cargo test && echo "SUCCESS"

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

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

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

  cov:
    desc: Runs code coverage using grcov
    cmds:
      - cmd: ./coverage.sh

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

  doc:
    desc: Generates the documentation
    cmds:
      - cmd: cargo doc --document-private-items --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 +nightly clippy --all-targets

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

  targets:
    desc: Builds release version for multiple targets
    cmds:
      - cmd: cargo +stable build --release --target=x86_64-unknown-linux-gnu
      - cmd: cargo +stable build --release --target=x86_64-unknown-linux-musl