Skip to content

A modified version of @rust-github's template for projects that won't be published to Cargo

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

subreme/rust-template

 
 

{{project-name}}

Template License Dependency Status Release

Introduction

This is a project template intended to be used with the cargo generate command to simplify the process of publishing a repository written in Rust.

Installation

There are two main ways to install {{project-name}}, as explained below:

Cargo

The project can be installed using Cargo through the following steps:

  • Install the Rust toolchain using the official guide.
  • Run cargo install --git https://github.com/{{gh-username}}/{{project-name}} --branch main

Releases

Alternatively, the compiled binaries can be found in the Releases page.

Usage

Generation

Assuming you have Cargo installed, the simplest way to use the template is through the cargo generate tool, which can be downloaded using the following command:

cargo install cargo-generate

Once installed, it can be used to generate a new project from the template as shown below:

cargo generate --git https://github.com/subreme/rust-template

Customization

Once the first command is run, a prompt will appear asking for the project's name. Once a name is selected, all placeholders in the project's files, outlined by double curly brackets, will be automatically replaced by their corresponding values.

Alternatively, the project name can be passed using the --name flag, as done in the underlined part of the example below:

cargo generate --git https://github.com/subreme/rust-template --name project-name
                                                              -------------------

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, 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.

See CONTRIBUTING.md.

About

A modified version of @rust-github's template for projects that won't be published to Cargo

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 100.0%