diff --git a/.dockerignore b/.dockerignore index 4fcb122..e6b1329 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,5 @@ /.devcontainer +/.github /.vscode /data /target diff --git a/.github/workflows/nextest.yml b/.github/workflows/nextest.yml index 490e275..f1c8056 100644 --- a/.github/workflows/nextest.yml +++ b/.github/workflows/nextest.yml @@ -29,3 +29,17 @@ jobs: bins: cargo-nextest - name: Run tests run: cargo nextest run -E "all() - test(get_api) - kind(bin)" + + clippy: + name: Clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + # - uses: rui314/setup-mold@v1 + - name: install mold + run: sudo apt-get install -y musl-tools musl-dev libssl-dev clang mold + - uses: moonrepo/setup-rust@v1 + with: + components: clippy + - name: clippy + run: cargo clippy diff --git a/.ignore b/.ignore new file mode 100644 index 0000000..e69de29 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..7764671 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,11 @@ +# Contributing code +- Make sure the test pass +- Run `cargo clippy --fix --allow-dirty` + +# License +All code in this repository is dual-licensed under either [License-MIT](./LICENSE-MIT) or [LICENSE-APACHE](./LICENSE-Apache) at your option. This means you can select the license you prefer. + +[Why dual license](https://github.com/bevyengine/bevy/issues/2373) + +# Your contributions +Any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. diff --git a/LICENSE b/LICENSE-Apache similarity index 100% rename from LICENSE rename to LICENSE-Apache diff --git a/LICENSE-MIT b/LICENSE-MIT new file mode 100644 index 0000000..13e0f70 --- /dev/null +++ b/LICENSE-MIT @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2023 Elijah McMorris (NexVeridian) + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/README.md b/README.md index 2b68da7..6f4a774 100644 --- a/README.md +++ b/README.md @@ -60,3 +60,8 @@ Run tests with `cargo t` Remove the cargo cache for buildkit with `docker builder prune --filter type=exec.cachemount` +# License +All code in this repository is dual-licensed under either [License-MIT](./LICENSE-MIT) or [LICENSE-APACHE](./LICENSE-Apache) at your option. This means you can select the license you prefer. + +[Why dual license](https://github.com/bevyengine/bevy/issues/2373) +