generated from MathieuSoysal/Exercism-Template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 207c14e
Showing
36 changed files
with
2,773 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the | ||
// README at: https://github.com/devcontainers/templates/tree/main/src/rust | ||
{ | ||
"name": "Rust", | ||
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile | ||
"image": "mcr.microsoft.com/devcontainers/rust:1-1-bullseye", | ||
"features": { | ||
"ghcr.io/devcontainers/features/rust:1": {}, | ||
"ghcr.io/devcontainers/features/github-cli:1": {}, | ||
"ghcr.io/devcontainers/features/java:1": {} // Used for Prusti | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"rust-lang.rust-analyzer", | ||
"serayuzgur.crates", | ||
"vadimcn.vscode-lldb", | ||
"tamasfe.even-better-toml", | ||
"ZhangYue.rust-mod-generator", | ||
"usernamehw.errorlens", | ||
"seatonjiang.gitmoji-vscode", | ||
"github.vscode-github-actions", | ||
"viper-admin.prusti-assistant" | ||
] | ||
}, | ||
"codespaces": { | ||
"openFiles": ["README.md"] | ||
} | ||
} | ||
|
||
// Use 'mounts' to make the cargo cache persistent in a Docker Volume. | ||
// "mounts": [ | ||
// { | ||
// "source": "devcontainer-cargo-cache-${devcontainerId}", | ||
// "target": "/usr/local/cargo", | ||
// "type": "volume" | ||
// } | ||
// ] | ||
|
||
// Features to add to the dev container. More info: https://containers.dev/features. | ||
// "features": {}, | ||
|
||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
|
||
// Use 'postCreateCommand' to run commands after the container is created. | ||
,"postCreateCommand": "rustup component add clippy rustfmt && (curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash) && cargo binstall cargo-mutants -y && cargo install cargo-fuzz" | ||
|
||
// Configure tool-specific properties. | ||
// "customizations": {}, | ||
|
||
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. | ||
// "remoteUser": "root" | ||
} |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# See https://help.github.com/articles/about-codeowners/ | ||
# for more info about CODEOWNERS file | ||
|
||
# It uses the same pattern rule for gitignore file | ||
# https://git-scm.com/docs/gitignore#_pattern_format | ||
|
||
# Maintainers | ||
* @MathieuSoysal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
|
||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
We as members, contributors, and leaders pledge to make participation in our | ||
community a harassment-free experience for everyone, regardless of age, body | ||
size, visible or invisible disability, ethnicity, sex characteristics, gender | ||
identity and expression, level of experience, education, socio-economic status, | ||
nationality, personal appearance, race, caste, color, religion, or sexual | ||
identity and orientation. | ||
|
||
We pledge to act and interact in ways that contribute to an open, welcoming, | ||
diverse, inclusive, and healthy community. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to a positive environment for our | ||
community include: | ||
|
||
* Demonstrating empathy and kindness toward other people | ||
* Being respectful of differing opinions, viewpoints, and experiences | ||
* Giving and gracefully accepting constructive feedback | ||
* Accepting responsibility and apologizing to those affected by our mistakes, | ||
and learning from the experience | ||
* Focusing on what is best not just for us as individuals, but for the overall | ||
community | ||
|
||
Examples of unacceptable behavior include: | ||
|
||
* The use of sexualized language or imagery, and sexual attention or advances of | ||
any kind | ||
* Trolling, insulting or derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or email address, | ||
without their explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Enforcement Responsibilities | ||
|
||
Community leaders are responsible for clarifying and enforcing our standards of | ||
acceptable behavior and will take appropriate and fair corrective action in | ||
response to any behavior that they deem inappropriate, threatening, offensive, | ||
or harmful. | ||
|
||
Community leaders have the right and responsibility to remove, edit, or reject | ||
comments, commits, code, wiki edits, issues, and other contributions that are | ||
not aligned to this Code of Conduct, and will communicate reasons for moderation | ||
decisions when appropriate. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies within all community spaces, and also applies when | ||
an individual is officially representing the community in public spaces. | ||
Examples of representing our community include using an official e-mail address, | ||
posting via an official social media account, or acting as an appointed | ||
representative at an online or offline event. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported to the community leaders responsible for enforcement at | ||
[email protected]. | ||
All complaints will be reviewed and investigated promptly and fairly. | ||
|
||
All community leaders are obligated to respect the privacy and security of the | ||
reporter of any incident. | ||
|
||
## Enforcement Guidelines | ||
|
||
Community leaders will follow these Community Impact Guidelines in determining | ||
the consequences for any action they deem in violation of this Code of Conduct: | ||
|
||
### 1. Correction | ||
|
||
**Community Impact**: Use of inappropriate language or other behavior deemed | ||
unprofessional or unwelcome in the community. | ||
|
||
**Consequence**: A private, written warning from community leaders, providing | ||
clarity around the nature of the violation and an explanation of why the | ||
behavior was inappropriate. A public apology may be requested. | ||
|
||
### 2. Warning | ||
|
||
**Community Impact**: A violation through a single incident or series of | ||
actions. | ||
|
||
**Consequence**: A warning with consequences for continued behavior. No | ||
interaction with the people involved, including unsolicited interaction with | ||
those enforcing the Code of Conduct, for a specified period of time. This | ||
includes avoiding interactions in community spaces as well as external channels | ||
like social media. Violating these terms may lead to a temporary or permanent | ||
ban. | ||
|
||
### 3. Temporary Ban | ||
|
||
**Community Impact**: A serious violation of community standards, including | ||
sustained inappropriate behavior. | ||
|
||
**Consequence**: A temporary ban from any sort of interaction or public | ||
communication with the community for a specified period of time. No public or | ||
private interaction with the people involved, including unsolicited interaction | ||
with those enforcing the Code of Conduct, is allowed during this period. | ||
Violating these terms may lead to a permanent ban. | ||
|
||
### 4. Permanent Ban | ||
|
||
**Community Impact**: Demonstrating a pattern of violation of community | ||
standards, including sustained inappropriate behavior, harassment of an | ||
individual, or aggression toward or disparagement of classes of individuals. | ||
|
||
**Consequence**: A permanent ban from any sort of public interaction within the | ||
community. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], | ||
version 2.1, available at | ||
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. | ||
|
||
Community Impact Guidelines were inspired by | ||
[Mozilla's code of conduct enforcement ladder][Mozilla CoC]. | ||
|
||
For answers to common questions about this code of conduct, see the FAQ at | ||
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at | ||
[https://www.contributor-covenant.org/translations][translations]. | ||
|
||
[homepage]: https://www.contributor-covenant.org | ||
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html | ||
[Mozilla CoC]: https://github.com/mozilla/diversity | ||
[FAQ]: https://www.contributor-covenant.org/faq | ||
[translations]: https://www.contributor-covenant.org/translations |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
## Contributing | ||
|
||
Hi! Thanks for your interest in contributing to the Rust template! | ||
|
||
We accept pull requests for bug fixes and features where we've discussed the approach in an issue and given the go-ahead for a community member to work on it. We'd also love to hear about ideas for new features as issues. | ||
|
||
Please do: | ||
|
||
* Check existing issues to verify that the [bug][bug issues] or [feature request][feature request issues] has not already been submitted. | ||
* Open an issue if things aren't working as expected. | ||
* Open an issue to propose a significant change. | ||
* Open a pull request to fix a bug. | ||
* Open a pull request to fix documentation about a command. | ||
* Open a pull request for any issue labelled [`help wanted`][hw] or [`good first issue`][gfi]. | ||
|
||
Please avoid: | ||
|
||
* Opening pull requests for issues marked `needs-design`, `needs-investigation`, or `blocked`. | ||
* Opening pull requests that haven't been approved for work in an issue | ||
* Adding installation instructions specifically for your OS/package manager. | ||
* Opening pull requests for any issue marked `core`. These issues require additional context from | ||
the core CLI team at GitHub and any external pull requests will not be accepted. | ||
|
||
## Building the project | ||
|
||
Prerequisites: | ||
- rust or use the provided devcontainer | ||
|
||
Run tests with: `cargo test` | ||
|
||
## Submitting a pull request | ||
|
||
1. Create a new branch: `git checkout -b my-branch-name` | ||
1. Make your change, add tests, and ensure tests pass | ||
1. Submit a pull request | ||
|
||
Contributions to this project are [released][legal] to the public under the [project's open source license][license]. | ||
|
||
Please note that this project adheres to a [Contributor Code of Conduct][code-of-conduct]. By participating in this project you agree to abide by its terms. | ||
|
||
## Design guidelines | ||
|
||
|
||
## Resources | ||
|
||
- [How to Contribute to Open Source][] | ||
- [Using Pull Requests][] | ||
- [GitHub Help][] | ||
|
||
|
||
[bug issues]: https://github.com/MathieuSoysal/Exercism-Rust-Template/issues?q=is%3Aopen+is%3Aissue+label%3Abug | ||
[feature request issues]: https://github.com/MathieuSoysal/Exercism-Rust-Template/issues?q=is%3Aopen+is%3Aissue+label%3Aenhancement | ||
[hw]: https://github.com/MathieuSoysal/Exercism-Rust-Template/labels/help%20wanted | ||
[gfi]: https://github.com/MathieuSoysal/Exercism-Rust-Template/labels/good%20first%20issue | ||
[legal]: https://docs.github.com/en/free-pro-team@latest/github/site-policy/github-terms-of-service#6-contributions-under-repository-license | ||
[license]: ../LICENSE | ||
[code-of-conduct]: ./CODE-OF-CONDUCT.md | ||
[How to Contribute to Open Source]: https://opensource.guide/how-to-contribute/ | ||
[Using Pull Requests]: https://docs.github.com/en/free-pro-team@latest/github/collaborating-with-issues-and-pull-requests/about-pull-requests | ||
[GitHub Help]: https://docs.github.com/ | ||
[CLI Design System]: https://primer.style/cli/ | ||
[Google Docs Template]: https://docs.google.com/document/d/1JIRErIUuJ6fTgabiFYfCH3x91pyHuytbfa0QLnTfXKM/edit#heading=h.or54sa47ylpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: 🐞 Bug Report | ||
description: File a new bug report | ||
title: 'bug: <title>' | ||
labels: [Bug, Needs Triage] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: ':stop_sign: _For support questions, please visit your [dicussion channel](https://github.com/MathieuSoysal/Exercism-Rust-Template/discussions) instead._' | ||
- type: checkboxes | ||
attributes: | ||
label: 'Is there an existing issue for this?' | ||
description: 'Please [search :mag: the issues](https://github.com/appium/appium/issues) to check if this bug has already been reported.' | ||
options: | ||
- label: 'I have searched the existing issues' | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: 'Current Behavior' | ||
description: 'A clear and concise description of what the bug is.. **Please do not paste your logs here.** Screenshots are welcome.' | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: 'Expected Behavior' | ||
description: 'A clear and concise description of what you expected to happen.' | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: 'Minimal Reproducible Example' | ||
description: | | ||
Please provide a the _smallest, complete code snippet_ that maintainers can run to reproduce the issue. Failing this, any sort of reproduction steps are better than nothing! | ||
If the result is more than a screenful of text _or_ requires multiple files, please: | ||
- _Attach_ (do not paste) it to this textarea, _or_ | ||
- Put it in a [Gist](https://gist.github.com) and paste the link, _or_ | ||
- Provide a link to a new or existing public repository exhibiting the issue | ||
validations: | ||
required: true | ||
- type: textarea | ||
attributes: | ||
label: 'Environment' | ||
description: 'Please provide the following information about your environment; feel free to remove any items which are not relevant.' | ||
value: | | ||
- Operating system: | ||
validations: | ||
required: false | ||
- type: input | ||
attributes: | ||
label: 'Link to Logs' | ||
description: | | ||
Create a [Gist](https://gist.github.com)—which contains your _full_ Appium logs—and link it here. Alternatively, you can attach a logfile to this issue (drag it into the "Further Information" field below). | ||
:warning: _Remember to redact or remove any sensitive information!_ | ||
placeholder: 'https://gist.github.com/...' | ||
- type: textarea | ||
attributes: | ||
label: Further Information | ||
description: | | ||
Links? References? Anything that will give us more context about the issue you are encountering! | ||
_Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in._ | ||
validations: | ||
required: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Ask a question on how to use template-exercisme | ||
about: For general-purpose questions and answers, see the Discussions section. | ||
url: https://github.com/MathieuSoysal/Exercism-Rust-Template/discussions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Documentation problem | ||
description: Create a report for a documentation problem. | ||
labels: ["documentation"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thank you for finding a documentation problem! 📚 | ||
Documentation problems might be grammatical issues, typos, or unclear wording, please provide details regarding the documentation including where it is present. | ||
- type: textarea | ||
id: location | ||
attributes: | ||
label: Location | ||
validations: | ||
required: true | ||
|
||
- type: textarea | ||
id: summary | ||
attributes: | ||
label: Summary | ||
validations: | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: enhancement | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
Oops, something went wrong.