diff --git a/.cargo/audit.toml b/.cargo/audit.toml new file mode 100644 index 0000000..c4b7e69 --- /dev/null +++ b/.cargo/audit.toml @@ -0,0 +1,2 @@ +[advisories] +ignore = ["RUSTSEC-2023-0071", "RUSTSEC-2025-0055"] \ No newline at end of file diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..dab1437 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: crazysacx \ No newline at end of file diff --git a/.github/codecov.yml b/.github/codecov.yml new file mode 100644 index 0000000..134e96b --- /dev/null +++ b/.github/codecov.yml @@ -0,0 +1,8 @@ +coverage: + status: + project: + default: + # basic + target: 10% + threshold: 10% + if_ci_failed: error \ No newline at end of file diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..e509831 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,6 @@ +version: 2 +updates: + - package-ecosystem: "cargo" + directory: "/" + schedule: + interval: "daily" \ No newline at end of file diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml new file mode 100644 index 0000000..909b240 --- /dev/null +++ b/.github/workflows/audit.yml @@ -0,0 +1,37 @@ +on: + workflow_dispatch: + # Trigger the workflow on push to master or any pull request + # Ignore all tags + push: + branches: + - master + tags-ignore: + - "*" + pull_request: + schedule: + # * is a special character in YAML so you have to quote this string + - cron: "22 3 * * *" + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + +name: ๐Ÿ’ฃ Audit ๐Ÿ’ฃ + +jobs: + audit-check: + runs-on: ubuntu-latest + name: ๐Ÿ’ฃ Audit ๐Ÿ’ฃ + steps: + - name: โœ… Checkout โœ… + uses: actions/checkout@v3 + - name: ๐Ÿ’ฃ Audit ๐Ÿ’ฃ + id: audit + uses: rustyhorde/audit-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + deny: 'warnings' + create_issue: 'true' \ No newline at end of file diff --git a/.github/workflows/barto.yml b/.github/workflows/barto.yml new file mode 100644 index 0000000..977a203 --- /dev/null +++ b/.github/workflows/barto.yml @@ -0,0 +1,136 @@ +on: + push: + branches: + - master + tags-ignore: + - "*" + pull_request: + branches: + - "*" + schedule: + - cron: "27 4 * * *" + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + +env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + +name: ๐Ÿฆ€ barto ๐Ÿฆ€ + +jobs: + rustfmt: + name: ๐Ÿ“Œ Formatting ๐Ÿ“Œ + uses: rustyhorde/workflows/.github/workflows/rustfmt.yml@main + + lints-linux: + name: ๐Ÿ•ณ๏ธ Clippy (Linux) ๐Ÿ•ณ๏ธ + needs: rustfmt + uses: rustyhorde/workflows/.github/workflows/clippy-all-features.yml@main + with: + os: ubuntu-latest + channel: nightly + target: x86_64-unknown-linux-gnu + + lints-macos: + name: ๐Ÿ•ณ๏ธ Clippy (MacOS) ๐Ÿ•ณ๏ธ + needs: rustfmt + uses: rustyhorde/workflows/.github/workflows/clippy-all-features.yml@main + with: + os: macos-latest + channel: nightly + target: apple-darwin + + lints-windows: + name: ๐Ÿ•ณ๏ธ Clippy (Windows) ๐Ÿ•ณ๏ธ + needs: rustfmt + uses: rustyhorde/workflows/.github/workflows/clippy-all-features.yml@main + with: + os: windows-latest + channel: nightly + target: x86_64-pc-windows-gnu + + test-linux: + name: ๐Ÿงช Test (Linux) ๐Ÿงช + needs: lints-linux + strategy: + matrix: + os: [ubuntu-latest] + channel: ["1.89.0", "stable", "beta", "nightly"] + target: [x86_64-unknown-linux-gnu] + uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main + with: + os: ${{ matrix.os }} + channel: ${{ matrix.channel }} + target: ${{ matrix.target }} + + test-macos: + name: ๐Ÿงช Test (MacOS) ๐Ÿงช + needs: lints-macos + strategy: + matrix: + os: [macos-latest] + channel: ["1.89.0", "stable", "beta", "nightly"] + target: [apple-darwin] + uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main + with: + os: ${{ matrix.os }} + channel: ${{ matrix.channel }} + target: ${{ matrix.target }} + + test-windows: + name: ๐Ÿงช Test (Windows) ๐Ÿงช + needs: lints-windows + strategy: + matrix: + os: [windows-latest] + channel: ["1.89.0", "stable", "beta", "nightly"] + target: [x86_64-pc-windows-gnu, x86_64-pc-windows-msvc] + uses: rustyhorde/workflows/.github/workflows/test-all-features.yml@main + with: + os: ${{ matrix.os }} + channel: ${{ matrix.channel }} + target: ${{ matrix.target }} + + coverage-linux: + name: ๐Ÿงฑ Coverage (Linux) ๐Ÿงฑ + needs: test-linux + uses: rustyhorde/workflows/.github/workflows/coverage.yml@main + with: + os: ubuntu-latest + channel: nightly + target: x86_64-unknown-linux-gnu + lcov: true + html: true + run_cmd: ${{ vars.COVERAGE_RUN_CMD }} + secrets: inherit + + coverage-macos: + name: ๐Ÿงฑ Coverage (MacOS) ๐Ÿงฑ + needs: test-macos + uses: rustyhorde/workflows/.github/workflows/coverage.yml@main + with: + os: macos-latest + channel: nightly + target: apple-darwin + lcov: true + html: true + run_cmd: ${{ vars.COVERAGE_RUN_CMD }} + secrets: inherit + + coverage-windows: + name: ๐Ÿงฑ Coverage (Wndows) ๐Ÿงฑ + needs: test-windows + strategy: + matrix: + target: [x86_64-pc-windows-gnu, x86_64-pc-windows-msvc] + uses: rustyhorde/workflows/.github/workflows/coverage.yml@main + with: + os: windows-latest + channel: nightly + target: ${{ matrix.target }} + lcov: true + html: true + run_cmd: ${{ vars.COVERAGE_RUN_CMD }} + secrets: inherit \ No newline at end of file diff --git a/bartoc/Cargo.toml b/bartoc/Cargo.toml index c9bbcc0..b05d5ec 100644 --- a/bartoc/Cargo.toml +++ b/bartoc/Cargo.toml @@ -14,7 +14,7 @@ version = "0.1.0" rust-version = "1.89.0" [features] -unstable = [] +unstable = ["libbarto/unstable"] [dependencies] anyhow = { workspace = true }