Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
LawnGnome committed Sep 27, 2023
0 parents commit b456b9b
Show file tree
Hide file tree
Showing 27 changed files with 2,465 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: CI
on: [push, pull_request]

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt

- name: cargo clippy
run: cargo clippy

- name: cargo fmt
run: cargo fmt --check

- name: cargo test
run: cargo test
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

permissions:
pull-requests: write
contents: write

on:
workflow_dispatch:

jobs:
release-plz:
name: Release-plz
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: MarcoIeni/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
8 changes: 8 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# [Code of Conduct](code-of-conduct)

The Rust Foundation has adopted a Code of Conduct that we expect project
participants to adhere to. Please read
[the full text][code-of-conduct]
so that you can understand what actions will and will not be tolerated.

[code-of-conduct]: https://foundation.rust-lang.org/policies/code-of-conduct/
34 changes: 34 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Contributing to a Rust Foundation Project

Thank you for your interest in contributing to this Rust Foundation project.
We are happy and excited to review and accept your pull requests.

## Before You Begin Contributing

### Licenses

There is no Contributor License Agreement to sign to contribute this project.
Your contribution will be covered by the license(s) granted for this
repository, commonly MIT, Apache, and/or CC-BY, but could be a different
license. In other words, your contribution will be licensed to the Foundation
and all downstream users under those licenses. You can read more in the
Foundation's [intellectual property policy][ip-policy].

### Code of Conduct

Please review and adhere to the [code of conduct](CODE_OF_CONDUCT.md) before
contributing any pull requests.

## Contribution Process

All submissions, including submissions by project members, require review. We
use GitHub pull requests for this purpose. Consult [GitHub Help][pull-requests]
for more information on using pull requests.

### Issues

Do you just want to file an issue for the project? Please do so in GitHub under
the `Issues` tab.

[ip-policy]: https://foundation.rust-lang.org/policies/intellectual-property-policy/
[pull-requests]: https://help.github.com/articles/about-pull-requests/
14 changes: 14 additions & 0 deletions COPYRIGHT
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
This project is dual licensed under Apache 2.0 and MIT terms with the exception
of documentation (e.g., `.md` docs in a `/docs` folder) which is licensed under
Creative Commons Attribution 4.0 International.

Copyrights in a Rust Foundation project are retained by their contributors. No
copyright assignment is required to contribute to the Rust project.

While not the default, some files may include explicit copyright notices
and/or license notices.

Except as otherwise noted (e.g., with documentation), Rust is licensed under the
Apache License, Version 2.0 <LICENSE-APACHE> or
<http://www.apache.org/licenses/LICENSE-2.0> or the MIT license <LICENSE-MIT> or
<http://opensource.org/licenses/MIT>, at your option.
Loading

0 comments on commit b456b9b

Please sign in to comment.