Josh McKinney 3 weeks ago committed by GitHub
commit 3dadfbe0ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4,9 +4,15 @@ Do you want to contribute? We'd love that.
Our goal is to have mostly projects that are stable and useful to many users.
## TL;DR
- Accepted: `(stars > 50 | downloads > 2000)`
- Template: `[ACCOUNT/REPO](https://github.com/ACCOUNT/REPO) [[CRATE](https://crates.io/crates/CRATE)] — DESCRIPTION`
- Sort: alphabetical
## How?
The easiest way is to go to https://github.com/rust-unofficial/awesome-rust/blob/main/README.md and click on the "pen" icon in the upper right corner. Make the changes to the file and follow the instructions to create a pull request.
The easiest way is to go to <https://github.com/rust-unofficial/awesome-rust/blob/main/README.md> and click on the "pen" icon in the upper right corner. Make the changes to the file and follow the instructions to create a pull request.
If you want to add an entry to the `README.md` please consider this:

File diff suppressed because it is too large Load Diff

@ -172,6 +172,8 @@ lazy_static! {
static ref GITHUB_API_REGEX: Regex = Regex::new(r"https://api.github.com/").unwrap();
static ref CRATE_REGEX: Regex =
Regex::new(r"https://crates.io/crates/(?P<crate>[^/]+)/?$").unwrap();
static ref ITEM_REGEX: Regex =
Regex::new(r"(?P<repo>(\S+)(/\S+)?)(?P<crate> \[\S*\])? — (?P<desc>.+)").unwrap();
}
#[derive(Deserialize, Debug)]
@ -578,6 +580,9 @@ async fn main() -> Result<(), Error> {
warn!("No valid crates link");
}
return Err(format_err!("Not high enough metrics ({:?} stars < {}, and {:?} cargo downloads < {}): {}", github_stars, required_stars, cargo_downloads, MINIMUM_CARGO_DOWNLOADS, list_item));
if !ITEM_REGEX.is_match(&list_item) {
return Err(format_err!("Item does not match the template: {}. See https://github.com/rust-unofficial/awesome-rust/blob/main/CONTRIBUTING.md#tldr", list_item));
}
}
list_items.last_mut().unwrap().data.push(list_item.clone());
list_item = String::new();

Loading…
Cancel
Save