cw-storage-plus 3.0.1

Enhanced storage engines
Documentation
version: '3'

silent: true

tasks:

  all:
    desc: Runs all checks
    summary: |
      Runs all viable checks for cw-storage-plus.
      Execute this task before pushing any changes.
      This task takes a significant amount of time to complete.
    cmds:
      - task: clean
      - task: build
      - task: clippy
      - task: test
      - task: bench
      - task: hack

  bench:
    desc: Runs all benchmarks
    cmds:
      - cmd: cargo +stable bench

  build:
    desc: Runs multiple building variants
    cmds:
      - task: build-all-features
      - task: build-default-features
      - task: build-no-default-features
      - task: build-wasm-all-features
      - task: build-wasm-default-features
      - task: build-wasm-no-default-features

  build-all-features:
    desc: Builds in debug mode with all features enabled
    cmds:
      - cmd: cargo +stable build --all-features --workspace

  build-default-features:
    desc: Builds in debug mode with default features
    cmds:
      - cmd: cargo +stable build --workspace

  build-no-default-features:
    desc: Builds in debug mode without default features
    cmds:
      - cmd: cargo +stable build --no-default-features --workspace

  build-wasm-all-features:
    desc: Builds WASM in debug mode with all features enabled
    cmds:
      - cmd: cargo +stable build --target wasm32-unknown-unknown --all-features --workspace

  build-wasm-default-features:
    desc: Builds WASM in debug mode with default features
    cmds:
      - cmd: cargo +stable build --target wasm32-unknown-unknown --workspace

  build-wasm-no-default-features:
    desc: Builds WASM in debug mode without default features
    cmds:
      - cmd: cargo +stable build --target wasm32-unknown-unknown --no-default-features --workspace

  clean:
    desc: Cleans target output
    cmds:
      - cmd: cargo clean

  clippy:
    desc: Runs multiple clippy variants
    cmds:
      - task: clippy-all-features
      - task: clippy-default-features
      - task: clippy-no-default-features

  clippy-all-features:
    desc: Runs clippy with all features enabled
    cmds:
      - cmd: cargo +stable clippy --all-features --all-targets --workspace

  clippy-default-features:
    desc: Runs clippy with default features
    cmds:
      - cmd: cargo +stable clippy --all-targets --workspace

  clippy-no-default-features:
    desc: Runs clippy without default features
    cmds:
      - cmd: cargo +stable clippy --no-default-features --all-targets --workspace

  cov:
    desc: Generates workspace code coverage report in text format and prints it to stdout
    cmds:
      - cmd: cargo +stable llvm-cov clean
      - cmd: cargo +stable llvm-cov --no-cfg-coverage --all-features --workspace

  cov-html:
    desc: Generates workspace code coverage report in HTML format and opens it in a browser
    cmds:
      - cmd: cargo +stable llvm-cov clean
      - cmd: cargo +stable llvm-cov --no-cfg-coverage --all-features --workspace --html --open

  cov-badge-cw-storage-plus:
    desc: Generates code coverage badge for cw-storage-plus
    cmds:
      - cmd: cargo +stable llvm-cov clean
      - cmd: cargo +stable llvm-cov -p cw-storage-plus --no-cfg-coverage --all-features --json --summary-only | coverio

  cov-badge-cw-storage-macro:
    desc: Generates code coverage badge for cw-storage-macro
    cmds:
      - cmd: cargo +stable llvm-cov clean
      - cmd: cargo +stable llvm-cov -p cw-storage-macro --no-cfg-coverage --all-features --json --summary-only | coverio

  fmt:
    desc: Runs code formatter
    cmds:
      - cmd: cargo +stable fmt

  doc:
    desc: Generates documentation
    cmds:
      - cmd: cargo +stable doc --no-deps

  doc-open:
    desc: Generates documentation and opens it in a browser
    cmds:
      - cmd: cargo +stable doc --no-deps --open

  test:
    desc: Runs multiple test variants
    cmds:
      - task: test-all-features
      - task: test-default-features
      - task: test-no-default-features

  test-all-features:
    desc: Runs all tests in debug mode with all features enabled
    cmds:
      - cmd: cargo +stable test --all-features --workspace

  test-default-features:
    desc: Runs all tests in debug mode with default features
    cmds:
      - cmd: cargo +stable test --workspace

  test-no-default-features:
    desc: Runs all tests in debug mode without default features
    cmds:
      - cmd: cargo +stable test --no-default-features --workspace

  testn:
    desc: Runs all tests in debug mode using nextest
    cmds:
      - task: testn-all-features
      - task: testn-default-features
      - task: testn-no-default-features

  testn-all-features:
    desc: Runs all tests in debug mode with all features enabled using nextest
    cmds:
      - cmd: cargo +stable nextest run --all-features --workspace

  testn-default-features:
    desc: Runs all tests in debug mode with default features using nextest
    cmds:
      - cmd: cargo +stable nextest run --workspace

  testn-no-default-features:
    desc: Runs all tests in debug mode without default features using nextest
    cmds:
      - cmd: cargo +stable nextest run --no-default-features --workspace

  hack:
    desc: Runs checks based on all feature combinations
    cmds:
      - task: hack-build
      - task: hack-clippy
      - task: hack-test

  hack-build:
    desc: Builds in debug mode using all feature combinations
    cmds:
      - cmd: cargo +stable hack build --feature-powerset --workspace

  hack-clippy:
    desc: Runs clippy using all feature combinations
    cmds:
      - cmd: cargo +stable hack clippy --feature-powerset --workspace

  hack-test:
    desc: Runs tests using all feature combinations
    cmds:
      - cmd: cargo +stable hack test --feature-powerset --workspace