This is tweaked cargo init --lib
for FOSS. It contains recommendations from cargo book.
README.tpl
that help you generate README.md with cargo-readmeCHANGELOG.md
that follow keepchangelogcargo check
cargo test
cargo fmt
cargo clippy -- -D warnings
Installed:
cargo install --git https://github.com/ashleygwilliams/cargo-generate
(see issue #1)cargo install cargo-readme
You need to do four simple steps:
1. Usecargo generate
to clone this template
cargo generate --git https://github.com/xoac/crates-io-lib-template.git --name my-project
cd my-project
Learn more about cargo generate
here.
You need to replace GITHUB_ORG_PATH
with your organization path. For example for this project the GITHUB_ORG_PATH
would be https://github.com/xoac/
(remember about last /
).
You can do this with sed
or with your IDE.
sed -i 's/GITHUB_ORG_PATH/https:\/\/github\.com\/xoac\//g' README.tpl CHANGELOG.md Cargo.toml
This is limitation because of this issue.
Edit Cargo.toml
there are some basic information you should provide (look for TODO
).
Learn more about Cargo.toml here.
This is limitation because of this issue.
4. Replace this README.mdAdd documentation at top of src/lib.rs
and generate README.md
from that with:
Lern more about cargo readme
here.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4