Skip to content
This repository was archived by the owner on Jul 13, 2025. It is now read-only.

Commit 7d41c0a

Browse files
committed
feat: DoubleInt type
0 parents  commit 7d41c0a

23 files changed

+1187
-0
lines changed

.codecov.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
comment: false
2+
3+
coverage:
4+
status:
5+
project:
6+
default:
7+
threshold: 100% # make CI green
8+
patch:
9+
default:
10+
threshold: 100% # make CI green
11+
12+
ignore:
13+
- "**/tests"
14+
- "**/benches"
15+
- "**/examples"

.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: [robjtede]

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
- package-ecosystem: cargo
8+
directory: /
9+
schedule:
10+
interval: weekly
11+
versioning-strategy: lockfile-only

.github/workflows/ci.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
merge_group:
7+
types: [checks_requested]
8+
pull_request:
9+
branches: [main]
10+
11+
permissions:
12+
contents: read
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
msrv:
20+
name: MSRV Verify
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Install Rust (MSRV)
26+
uses: actions-rust-lang/[email protected]
27+
with:
28+
toolchain: "1.56"
29+
30+
- name: Install cargo-hack
31+
uses: taiki-e/[email protected]
32+
with:
33+
tool: cargo-hack
34+
35+
- name: Generate MSRV lockfile
36+
run: cargo hack --remove-dev-deps generate-lockfile
37+
38+
- name: Check
39+
run: cargo check --workspace --all-features
40+
41+
test:
42+
name: Test
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/checkout@v4
46+
47+
- name: Install Rust (stable)
48+
uses: actions-rust-lang/[email protected]
49+
50+
- name: Test
51+
run: cargo test --workspace --all-features

.github/workflows/coverage.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Coverage
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
coverage:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Install Rust
20+
uses: actions-rust-lang/[email protected]
21+
with:
22+
components: llvm-tools-preview
23+
24+
- name: Install cargo-llvm-cov
25+
uses: taiki-e/[email protected]
26+
with:
27+
tool: cargo-llvm-cov
28+
29+
- name: Generate code coverage
30+
run: cargo llvm-cov --workspace --all-features --codecov --output-path codecov.json
31+
32+
- name: Upload coverage to Codecov
33+
uses: codecov/[email protected]
34+
with:
35+
token: ${{ secrets.CODECOV_TOKEN }}
36+
files: codecov.json
37+
fail_ci_if_error: true
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Dependabot Reviewer
2+
3+
on: pull_request_target
4+
5+
permissions:
6+
pull-requests: write
7+
contents: write
8+
9+
jobs:
10+
review-dependabot-pr:
11+
name: Approve PR
12+
runs-on: ubuntu-latest
13+
if: ${{ github.actor == 'dependabot[bot]' }}
14+
env:
15+
PR_URL: ${{ github.event.pull_request.html_url }}
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
steps:
18+
- name: Fetch Dependabot metadata
19+
id: dependabot-metadata
20+
uses: dependabot/[email protected]
21+
22+
- name: Enable auto-merge for Dependabot PRs
23+
run: gh pr merge --auto --squash "$PR_URL"
24+
25+
- name: Approve patch and minor updates
26+
if: ${{ steps.dependabot-metadata.outputs.update-type == 'version-update:semver-patch'|| steps.dependabot-metadata.outputs.update-type == 'version-update:semver-minor'}}
27+
run: |
28+
gh pr review "$PR_URL" --approve --body "I'm **approving** this pull request because **it only includes patch or minor updates**."
29+
30+
- name: Approve major updates of dev dependencies
31+
if: ${{ steps.dependabot-metadata.outputs.update-type == 'version-update:semver-major' && steps.dependabot-metadata.outputs.dependency-type == 'direct:development'}}
32+
run: |
33+
gh pr review "$PR_URL" --approve --body "I'm **approving** this pull request because **it only includes major updates of dev dependencies**."
34+
35+
- name: Comment on major updates of normal dependencies
36+
if: ${{ steps.dependabot-metadata.outputs.update-type == 'version-update:semver-major' && steps.dependabot-metadata.outputs.dependency-type == 'direct:production'}}
37+
run: |
38+
gh pr comment "$PR_URL" --body "I'm **not approving** this PR because **it includes major updates of normal dependencies**."
39+
gh pr edit "$PR_URL" --add-label "requires-manual-qa"

.github/workflows/lint.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: Lint
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
clippy:
16+
runs-on: ubuntu-latest
17+
18+
permissions:
19+
contents: read
20+
checks: write
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Install Rust
26+
uses: actions-rust-lang/[email protected]
27+
with:
28+
components: clippy
29+
30+
- name: Install cargo-hack
31+
uses: taiki-e/[email protected]
32+
with:
33+
tool: cargo-hack
34+
35+
- name: Clippy
36+
run: |
37+
cargo clippy --workspace --no-default-features
38+
cargo clippy --workspace --no-default-features --all-features
39+
cargo hack --feature-powerset --depth=3 clippy --workspace
40+
41+
rustfmt:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v4
45+
46+
- name: Install Rust (nightly)
47+
uses: actions-rust-lang/[email protected]
48+
with:
49+
toolchain: nightly
50+
components: rustfmt
51+
52+
- run: cargo fmt -- --check
53+
54+
docs:
55+
runs-on: ubuntu-latest
56+
steps:
57+
- uses: actions/checkout@v4
58+
59+
- name: Install Rust
60+
uses: actions-rust-lang/[email protected]
61+
with:
62+
components: rust-docs
63+
64+
- name: Check for broken intra-doc links
65+
env:
66+
RUSTDOCFLAGS: -D warnings
67+
run: cargo doc --workspace --no-deps --all-features
68+
69+
public-api-diff:
70+
runs-on: ubuntu-latest
71+
steps:
72+
- uses: actions/checkout@v4
73+
with:
74+
ref: ${{ github.base_ref }}
75+
76+
- uses: actions/checkout@v4
77+
78+
- uses: actions-rust-lang/[email protected]
79+
with:
80+
toolchain: nightly-2023-08-25
81+
82+
- uses: taiki-e/[email protected]
83+
with:
84+
tool: cargo-public-api
85+
86+
- name: Generate API diff
87+
run: |
88+
cargo public-api --manifest-path diff ${{ github.event.pull_request.base.sha }}..${{ github.sha }}

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# rust
2+
/target/
3+
4+
# direnv
5+
/.direnv/
6+
7+
# code coverage
8+
/codecov.json
9+
/lcov.info

.prettierrc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
overrides:
2+
- files: "*.md"
3+
options:
4+
printWidth: 9999
5+
proseWrap: never

0 commit comments

Comments
 (0)