diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f04ac98..d111f53 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,12 +11,12 @@ The easiest way is to go to https://github.com/rust-unofficial/awesome-rust/blob If you want to add an entry to the `README.md` please consider this: - is the entry valuable to people trying to get things done in Rust? - * In order to make this objective, the entry needs to either have at least 50 stars on Github, 2000 downloads on crates.io, or an equivalent level of other popularity metrics (which should be specified in the PR). The maintainers of this repo are not responsible for making your project popular, only for making more people aware of those projects. We don't want to have to pick and choose favourites, and so are using metrics like this to make our lives easier as maintainers. + * In order to make this objective, the entry needs to either have at least 50 stars on GitHub, 2000 downloads on crates.io, or an equivalent level of other popularity metrics (which should be specified in the PR). The maintainers of this repo are not responsible for making your project popular, only for making more people aware of those projects. We don't want to have to pick and choose favourites, and so are using metrics like this to make our lives easier as maintainers. - if you want to add something, please use the template `[ACCOUNT/REPO](https://github.com/ACCOUNT/REPO) [[CRATE](https://crates.io/crates/CRATE)] — DESCRIPTION` * if you've not published your crate to `crates.io` remove the `[[CRATE](...)]` part. * if you have a CI build, please add the build badge. Put the image after the description, separated by a space. Please make sure to add the branch information to the image: * example for Travis: `[![build badge](https://api.travis-ci.com/XXX/CRATE.svg?branch=master)](https://app.travis-ci.org/github/XXX/CRATE)` - * for Github actions please see [adding-a-workflow-status-badge](https://docs.github.com/en/actions/managing-workflow-runs/adding-a-workflow-status-badge) + * for GitHub actions please see [adding-a-workflow-status-badge](https://docs.github.com/en/actions/managing-workflow-runs/adding-a-workflow-status-badge) - please pay attention to the alphabetical ordering ## Removing projects diff --git a/README.md b/README.md index ad94aa3..a7789ae 100644 --- a/README.md +++ b/README.md @@ -643,7 +643,7 @@ See also [A comparison of operating systems written in Rust](https://github.com/ * [Devolutions/CMakeRust](https://github.com/Devolutions/CMakeRust) — useful for integrating a Rust library into a CMake project * [SiegeLord/RustCMake](https://github.com/SiegeLord/RustCMake) — an example project showing usage of CMake with Rust * [Fleet](https://github.com/dimensionhq/fleet) [[fleet-rs](https://crates.io/crates/fleet-rs)] - The blazing fast build tool for Rust. -* Github actions +* GitHub actions * [icepuma/rust-action](https://github.com/icepuma/rust-action) — rust github action * [peaceiris/actions-mdbook](https://github.com/peaceiris/actions-mdbook) — GitHub Actions for mdBook * [Nix](https://nixos.org/) @@ -1775,8 +1775,8 @@ See also [Are we web yet?](https://www.arewewebyet.org) and [Rust web framework * [alexcrichton/curl-rust](https://github.com/alexcrichton/curl-rust) — [libcurl](https://curl.se/libcurl/) bindings * [async-graphql](https://github.com/async-graphql/async-graphql) - A GraphQL server library [![Build Status](https://dev.azure.com/graphql-rust/GraphQL%20Rust/_apis/build/status/graphql-rust.juniper)](https://dev.azure.com/graphql-rust/GraphQL%20Rust/_build/latest?definitionId=1) * [DoumanAsh/yukikaze](https://gitlab.com/Douman/yukikaze) [[yukikaze](https://crates.io/crates/yukikaze)] — Beautiful and elegant Yukikaze is little HTTP client library based on hyper. [![build badge](https://gitlab.com/Douman/yukikaze/badges/master/pipeline.svg)](https://gitlab.com/Douman/yukikaze) - * [ducaale/xh](https://github.com/ducaale/xh) - Friendly and fast tool for sending HTTP requests [![crate](https://img.shields.io/crates/v/create-rust-app.svg)](https://crates.io/crates/xh) [![Github actions Status](https://github.com/ducaale/xh/workflows/CI/badge.svg?branch=master)](https://github.com/ducaale/xh/actions) - * [graphql-client](https://github.com/graphql-rust/graphql-client) — Typed, correct GraphQL requests and responses. [![Github actions Status](https://github.com/graphql-rust/graphql-client/workflows/CI/badge.svg?branch=master)](https://github.com/graphql-rust/graphql-client/actions) + * [ducaale/xh](https://github.com/ducaale/xh) - Friendly and fast tool for sending HTTP requests [![crate](https://img.shields.io/crates/v/create-rust-app.svg)](https://crates.io/crates/xh) [![GitHub actions Status](https://github.com/ducaale/xh/workflows/CI/badge.svg?branch=master)](https://github.com/ducaale/xh/actions) + * [graphql-client](https://github.com/graphql-rust/graphql-client) — Typed, correct GraphQL requests and responses. [![GitHub actions Status](https://github.com/graphql-rust/graphql-client/workflows/CI/badge.svg?branch=master)](https://github.com/graphql-rust/graphql-client/actions) * [hyperium/hyper](https://github.com/hyperium/hyper) — an HTTP implementation [![CI](https://github.com/hyperium/hyper/workflows/CI/badge.svg?branch=master)](https://github.com/hyperium/hyper/actions?query=workflow%3ACI) * [seanmonstar/reqwest](https://github.com/seanmonstar/reqwest) — an ergonomic HTTP Client. * HTTP Server diff --git a/src/main.rs b/src/main.rs index a9a27b7..b642726 100644 --- a/src/main.rs +++ b/src/main.rs @@ -36,7 +36,7 @@ fn override_stars(level: u32, text: &str) -> Option { } lazy_static! { - // We don't explicitly check these, because they just bug out in Github. We're _hoping_ they don't go away! + // We don't explicitly check these, because they just bug out in GitHub. We're _hoping_ they don't go away! static ref ASSUME_WORKS: Vec = vec![ "https://www.reddit.com/r/rust/".to_string() ]; @@ -174,13 +174,13 @@ lazy_static! { } #[derive(Deserialize, Debug)] -struct GithubStars { +struct GitHubStars { stargazers_count: u32, archived: bool, } async fn get_stars(github_url: &str) -> Option { - warn!("Downloading Github stars for {}", github_url); + warn!("Downloading GitHub stars for {}", github_url); let rewritten = GITHUB_REPO_REGEX .replace_all(github_url, "https://api.github.com/repos/$org/$repo") .to_string(); @@ -200,7 +200,7 @@ async fn get_stars(github_url: &str) -> Option { } Ok(ok) => { let raw = ok.text().await.unwrap(); - let data = match serde_json::from_str::(&raw) { + let data = match serde_json::from_str::(&raw) { Ok(val) => val, Err(_) => { panic!("{:?}", raw); @@ -254,7 +254,7 @@ fn get_url_core(url: String) -> BoxFuture<'static, (String, Result<(), CheckerEr } if env::var("USERNAME_FOR_GITHUB").is_ok() && env::var("TOKEN_FOR_GITHUB").is_ok() && GITHUB_REPO_REGEX.is_match(&url) { let rewritten = GITHUB_REPO_REGEX.replace_all(&url, "https://api.github.com/repos/$org/$repo"); - info!("Replacing {} with {} to workaround rate limits on Github", url, rewritten); + info!("Replacing {} with {} to workaround rate limits on GitHub", url, rewritten); let (_new_url, res) = get_url_core(rewritten.to_string()).await; return (url, res); } @@ -294,7 +294,7 @@ fn get_url_core(url: String) -> BoxFuture<'static, (String, Result<(), CheckerEr } if status == StatusCode::NOT_FOUND && ACTIONS_REGEX.is_match(&url) { let rewritten = ACTIONS_REGEX.replace_all(&url, "https://github.com/$org/$repo"); - warn!("Got 404 with Github actions, so replacing {} with {}", url, rewritten); + warn!("Got 404 with GitHub actions, so replacing {} with {}", url, rewritten); let (_new_url, res) = get_url_core(rewritten.to_string()).await; return (url, res); }