Table of Contents
This project is a Rust template designed to help you quickly set up a new Rust project with a predefined structure and commonly used configurations.
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
First of all, you need to make sure that rustc
and cargo
are installed. If not, you should go to the official Rust installation guide.
- Clone the repo
git clone https://github.com/King-sj/rust_template.git
- Delete
README.md
and replace it withBlank-Readme.md
. - (Not required) Move
config.toml
to a global location (More Details) if you want to use this template more quickly in another project in the future.cargo install cargo-generate # Create a new Rust project using this template cargo g # The following are equivalent: # cargo gen # cargo generate # git clone https://github.com/King-sj/rust_template.git
main.rs should not contain too much content, only serving as the entry point of the program. lib.rs should only expose module interfaces, with actual functionality implemented in each module.
Remember to replace README.md
with BLANK_README.md
.
For more information, please refer to the Documentation
Not more
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MPL-2.0 License. See LICENSE.txt
for more information.
SongJian - [email protected]
Project Link: https://github.com/King-sj/rust_template