Skip to content

Commit 9ce735f

Browse files
committed
chore(release): Release version 0.1.0
2 parents 594713e + 0fe38ca commit 9ce735f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2902
-0
lines changed

.bumpversion.toml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# SPDX-FileCopyrightText: 2024 Shun Sakai
2+
#
3+
# SPDX-License-Identifier: Apache-2.0 OR MIT
4+
5+
[tool.bumpversion]
6+
current_version = "0.1.0"
7+
8+
[[tool.bumpversion.files]]
9+
filename = "README.md"
10+
11+
[[tool.bumpversion.files]]
12+
filename = "src/lib.rs"
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# SPDX-FileCopyrightText: 2024 Shun Sakai
2+
#
3+
# SPDX-License-Identifier: Apache-2.0 OR MIT
4+
5+
name: 🐞 Bug report
6+
description: Create a report to help us improve
7+
labels: ["bug"]
8+
9+
body:
10+
- type: checkboxes
11+
attributes:
12+
label: Checklist
13+
options:
14+
- label: I have searched the existing issues
15+
required: true
16+
17+
- type: textarea
18+
attributes:
19+
label: Describe the bug
20+
description: A clear and concise description of what the bug is.
21+
validations:
22+
required: true
23+
24+
- type: textarea
25+
attributes:
26+
label: To Reproduce
27+
description: Steps to reproduce the behavior.
28+
validations:
29+
required: false
30+
31+
- type: textarea
32+
attributes:
33+
label: Expected behavior
34+
description: A clear and concise description of what you expected to happen.
35+
validations:
36+
required: true
37+
38+
- type: input
39+
attributes:
40+
label: bit-int version
41+
description: Can be found in `Cargo.toml` of your project.
42+
placeholder: 0.1.0
43+
validations:
44+
required: true
45+
46+
- type: input
47+
attributes:
48+
label: Rust version
49+
description: Output of `rustc -V`.
50+
placeholder: 1.56.0
51+
validations:
52+
required: true
53+
54+
- type: textarea
55+
attributes:
56+
label: Environment
57+
description: Tell us where on the platform it happens.
58+
placeholder: |
59+
- OS: Debian 12
60+
- arch: x86_64
61+
validations:
62+
required: false
63+
64+
- type: textarea
65+
attributes:
66+
label: Additional context
67+
description: Add any other context about the problem here.
68+
validations:
69+
required: false
70+
71+
- type: checkboxes
72+
attributes:
73+
label: Code of Conduct
74+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/sorairolake/bit-int/blob/develop/CODE_OF_CONDUCT.md)
75+
options:
76+
- label: I agree to follow this project's Code of Conduct
77+
required: true
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# SPDX-FileCopyrightText: 2024 Shun Sakai
2+
#
3+
# SPDX-License-Identifier: Apache-2.0 OR MIT
4+
5+
name: 💡 Feature request
6+
description: Suggest an idea for this project
7+
labels: ["enhancement"]
8+
9+
body:
10+
- type: checkboxes
11+
attributes:
12+
label: Checklist
13+
options:
14+
- label: I have searched the existing issues
15+
required: true
16+
17+
- type: textarea
18+
attributes:
19+
label: Summary
20+
description: A clear and concise description of what the suggestion is.
21+
validations:
22+
required: true
23+
24+
- type: textarea
25+
attributes:
26+
label: Additional context
27+
description: Add any other context about the feature request here.
28+
validations:
29+
required: false
30+
31+
- type: checkboxes
32+
attributes:
33+
label: Code of Conduct
34+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/sorairolake/bit-int/blob/develop/CODE_OF_CONDUCT.md)
35+
options:
36+
- label: I agree to follow this project's Code of Conduct
37+
required: true

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# SPDX-FileCopyrightText: 2024 Shun Sakai
2+
#
3+
# SPDX-License-Identifier: Apache-2.0 OR MIT
4+
5+
version: 2
6+
updates:
7+
- package-ecosystem: "cargo"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"
11+
12+
- package-ecosystem: "github-actions"
13+
directory: "/"
14+
schedule:
15+
interval: "weekly"
16+
open-pull-requests-limit: 10

.github/pull_request_template.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
## Description
2+
3+
<!-- Describe your changes in detail. -->
4+
5+
<!--
6+
If it resolves an open issue, link to the issue here, otherwise remove this
7+
line.
8+
-->
9+
10+
Closes #
11+
12+
## Additional context
13+
14+
<!-- If you have any other context, describe them here. -->
15+
16+
## Checklist
17+
18+
- [ ] I have read the [Contribution Guide].
19+
- [ ] I agree to follow the [Code of Conduct].
20+
21+
[Contribution Guide]: https://github.com/sorairolake/bit-int/blob/develop/CONTRIBUTING.adoc
22+
[Code of Conduct]: https://github.com/sorairolake/bit-int/blob/develop/CODE_OF_CONDUCT.md
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
SPDX-FileCopyrightText: 2024 Shun Sakai
2+
3+
SPDX-License-Identifier: Apache-2.0 OR MIT

.github/workflows/CI.yaml

Lines changed: 145 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,145 @@
1+
# SPDX-FileCopyrightText: 2024 Shun Sakai
2+
#
3+
# SPDX-License-Identifier: Apache-2.0 OR MIT
4+
5+
name: CI
6+
7+
on:
8+
pull_request:
9+
push:
10+
branches:
11+
- "develop"
12+
- "master"
13+
schedule:
14+
- cron: "0 0 * * 0"
15+
16+
jobs:
17+
check:
18+
name: Check
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
matrix:
22+
target:
23+
- x86_64-unknown-linux-gnu
24+
- aarch64-apple-darwin
25+
- x86_64-pc-windows-msvc
26+
toolchain:
27+
- 1.61.0 # MSRV
28+
- stable
29+
include:
30+
- target: x86_64-unknown-linux-gnu
31+
os: ubuntu-24.04
32+
- target: aarch64-apple-darwin
33+
os: macos-14
34+
- target: x86_64-pc-windows-msvc
35+
os: windows-2022
36+
steps:
37+
- name: Checkout code
38+
uses: actions/checkout@v4
39+
- name: Setup Rust toolchain
40+
uses: dtolnay/rust-toolchain@v1
41+
with:
42+
toolchain: ${{ matrix.toolchain }}
43+
targets: ${{ matrix.target }}
44+
- name: Cache build artifacts
45+
uses: Swatinem/[email protected]
46+
with:
47+
key: ${{ matrix.target }}
48+
- name: Check a package
49+
run: cargo check --target ${{ matrix.target }}
50+
51+
test:
52+
name: Test
53+
runs-on: ${{ matrix.os }}
54+
strategy:
55+
matrix:
56+
target:
57+
- x86_64-unknown-linux-gnu
58+
- aarch64-apple-darwin
59+
- x86_64-pc-windows-msvc
60+
toolchain:
61+
- 1.61.0
62+
- stable
63+
include:
64+
- target: x86_64-unknown-linux-gnu
65+
os: ubuntu-24.04
66+
- target: aarch64-apple-darwin
67+
os: macos-14
68+
- target: x86_64-pc-windows-msvc
69+
os: windows-2022
70+
steps:
71+
- name: Checkout code
72+
uses: actions/checkout@v4
73+
- name: Setup Rust toolchain
74+
uses: dtolnay/rust-toolchain@v1
75+
with:
76+
toolchain: ${{ matrix.toolchain }}
77+
targets: ${{ matrix.target }}
78+
- name: Cache build artifacts
79+
uses: Swatinem/[email protected]
80+
with:
81+
key: ${{ matrix.target }}
82+
- name: Run tests
83+
run: cargo test --target ${{ matrix.target }}
84+
85+
rustfmt:
86+
name: Rustfmt
87+
runs-on: ubuntu-24.04
88+
steps:
89+
- name: Checkout code
90+
uses: actions/checkout@v4
91+
- name: Setup Rust toolchain
92+
uses: dtolnay/rust-toolchain@v1
93+
with:
94+
toolchain: stable
95+
components: rustfmt
96+
- name: Cache build artifacts
97+
uses: Swatinem/[email protected]
98+
- name: Check code formatted
99+
run: cargo fmt -- --check
100+
101+
clippy:
102+
name: Clippy
103+
runs-on: ubuntu-24.04
104+
steps:
105+
- name: Checkout code
106+
uses: actions/checkout@v4
107+
- name: Setup Rust toolchain
108+
uses: dtolnay/rust-toolchain@v1
109+
with:
110+
toolchain: stable
111+
components: clippy
112+
- name: Cache build artifacts
113+
uses: Swatinem/[email protected]
114+
- name: Check no lint warnings
115+
run: cargo clippy -- -D warnings
116+
117+
doc:
118+
name: Documentation
119+
runs-on: ubuntu-24.04
120+
steps:
121+
- name: Checkout code
122+
uses: actions/checkout@v4
123+
- name: Setup Rust toolchain
124+
uses: dtolnay/rust-toolchain@v1
125+
with:
126+
toolchain: stable
127+
- name: Cache build artifacts
128+
uses: Swatinem/[email protected]
129+
- name: Check no `rustdoc` lint warnings
130+
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --document-private-items
131+
132+
benchmark:
133+
name: Benchmark
134+
runs-on: ubuntu-24.04
135+
steps:
136+
- name: Checkout code
137+
uses: actions/checkout@v4
138+
- name: Setup Rust toolchain
139+
uses: dtolnay/rust-toolchain@v1
140+
with:
141+
toolchain: nightly
142+
- name: Cache build artifacts
143+
uses: Swatinem/[email protected]
144+
- name: Run benchmarks
145+
run: cargo bench

.github/workflows/REUSE.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# SPDX-FileCopyrightText: 2024 Shun Sakai
2+
#
3+
# SPDX-License-Identifier: Apache-2.0 OR MIT
4+
5+
name: REUSE Compliance Check
6+
7+
on:
8+
pull_request:
9+
push:
10+
branches:
11+
- "develop"
12+
- "master"
13+
14+
jobs:
15+
reuse:
16+
name: REUSE
17+
runs-on: ubuntu-24.04
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
- name: REUSE Compliance Check
22+
uses: fsfe/[email protected]

.github/workflows/SemverChecks.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# SPDX-FileCopyrightText: 2024 Shun Sakai
2+
#
3+
# SPDX-License-Identifier: Apache-2.0 OR MIT
4+
5+
name: Check Semantic Versioning
6+
7+
on:
8+
push:
9+
branches:
10+
- "release/*"
11+
tags:
12+
- "v[0-9]+.[0-9]+.[0-9]+"
13+
workflow_dispatch:
14+
15+
jobs:
16+
semver:
17+
name: Check Semantic Versioning
18+
runs-on: ubuntu-24.04
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
- name: Check Semantic Versioning
23+
uses: obi1kenobi/[email protected]

.github/workflows/actionlint.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# SPDX-FileCopyrightText: 2023 Kevin Matthes
2+
# SPDX-FileCopyrightText: 2023 Shun Sakai
3+
#
4+
# SPDX-License-Identifier: Apache-2.0 OR MIT
5+
6+
name: actionlint
7+
8+
on:
9+
pull_request:
10+
paths:
11+
- .github/workflows/*.yaml
12+
push:
13+
paths:
14+
- .github/workflows/*.yaml
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
validation:
21+
name: Validate
22+
runs-on: ubuntu-24.04
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
with:
27+
persist-credentials: false
28+
- name: Check no lint warnings
29+
uses: docker://rhysd/actionlint:latest
30+
with:
31+
args: -color -verbose

0 commit comments

Comments
 (0)