-
-
Notifications
You must be signed in to change notification settings - Fork 1
Contributing
You must fully understand everything to contribute to this project without inconvenience.
Wave is an open-source project. Anyone can contribute to the project. However, if you want to contribute, there are a few things to keep in mind.
We use Rust as our main programming language. However, once Wave is developed to a level where bootstrapping is possible, we plan to change the main programming language to Wave.
We are setting guidelines for code writing.
If you use a coding style other than K&R (such as BSD, GNU, etc.), your pull request may be rejected. Even if it passes, we may have to change it back to K&R, so please be aware.
- Correct example
fn main() {
println!("Hello World!");
}
- Incorrect examples
fn main()
{
println!("Hello World!");
}
fn main()
{
println!("Hello World!");
}
If you want to contribute to this project, we strongly recommend forking and working on it.
When contributing, it's important to first understand the project structure. Rust projects typically have the following structure:
project_root/
├── src/
│ ├── main.rs
│ ├── lib.rs
│ └── [feature-specific modules]
├── tests/
├── examples/
├── Cargo.toml
└── README.md
When adding new features or modifying existing code, you should write your code in the appropriate location for that feature. For example:
- When adding a new feature, create a new module within the
src/
directory or add functionality to an existing module. - When fixing a bug, find the file containing the bug and modify it directly.
- When adding tests, create a new test file in the
tests/
directory or add tests to an existing test file.
Do not create folders with individual contributor names. Instead, track changes through Git and, if necessary, add contributor information to the CONTRIBUTORS file.
Before submitting a pull request, please ensure you complete the following steps:
- Build your code in your local environment.
- Run all existing project tests to ensure current functionality remains intact.
- Write and run tests for any new features you've added.
- Verify that your code adheres to the project's coding style guidelines.
Only submit your pull request after all tests pass and you've confirmed your code is working as expected. This is crucial for maintaining the stability and quality of the project.
Pull requests for this project must be submitted to https://github.com/LunaStev/Wave. When submitting a pull request, please clearly describe the following:
- The purpose and functionality of your code
- The programming language used
- Libraries used (including any self-developed libraries)
- For self-developed libraries, please provide a detailed explanation of their functions.
- Frameworks used (including any self-developed frameworks)
- Technologies or methodologies applied
By providing this information, you'll help project maintainers better understand and evaluate your contribution.