From e6520cbac0475521e19ded4e75f6e7049e0d6d45 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Mon, 24 Feb 2020 22:36:50 +0000 Subject: [PATCH 1/2] Move cleanup to bin folder and run it on the repo --- Cargo.toml | 1 + README.md | 20 ++++++++++---------- cleanup.rs => src/bin/cleanup.rs | 0 3 files changed, 11 insertions(+), 10 deletions(-) rename cleanup.rs => src/bin/cleanup.rs (100%) diff --git a/Cargo.toml b/Cargo.toml index 21c0a97..fb42e07 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,7 @@ authors = [] homepage = "https://github.com/rust-unofficial/awesome-rust" repository = "https://github.com/rust-unofficial/awesome-rust" edition = "2018" +default-run = "awesome-rust" [dependencies] pulldown-cmark = "0.6" diff --git a/README.md b/README.md index 754dcc0..b8c8a50 100644 --- a/README.md +++ b/README.md @@ -320,7 +320,7 @@ See also [A comparison of operating systems written in Rust](https://github.com/ ### Text processing -* [grex](https://github.com/pemistahl/grex) - A command-line tool and library for generating regular expressions from user-provided test cases [](https://travis-ci.org/pemistahl/grex) +* [grex](https://github.com/pemistahl/grex) — A command-line tool and library for generating regular expressions from user-provided test cases [](https://travis-ci.org/pemistahl/grex) * [TankerHQ/ruplacer](https://github.com/TankerHQ/ruplacer) — Find and replace text in source files [](https://travis-ci.org/TankerHQ/ruplacer) * [ripgrep](https://crates.io/crates/ripgrep) — combines the usability of The Silver Searcher with the raw speed of grep [](https://travis-ci.org/BurntSushi/ripgrep) * [phiresky/ripgrep-all](https://github.com/phiresky/ripgrep-all) — ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc. [![Build Status](https://api.travis-ci.org/phiresky/ripgrep-all.svg?branch=master)](https://travis-ci.org/phiresky/ripgrep-all) @@ -352,10 +352,10 @@ See also [A comparison of operating systems written in Rust](https://github.com/ * [whitfin/s3-concat](https://github.com/whitfin/s3-concat) — A command line tool to concatenate Amazon S3 files remotely using flexible patterns. * [whitfin/s3-meta](https://github.com/whitfin/s3-meta) — A command line tool to gather metadata about your Amazon S3 buckets. * [whitfin/s3-utils](https://github.com/whitfin/s3-utils) — A small tool containing utilities based around Amazon S3 to provide additional convenience APIs. -* [gorros/s3-edit-rs](https://github.com/gorros/s3-edit-rs) - A command line tool to edit a file directly on Amazon S3. +* [gorros/s3-edit-rs](https://github.com/gorros/s3-edit-rs) — A command line tool to edit a file directly on Amazon S3. * [fcsonline/tmux-thumbs](https://github.com/fcsonline/tmux-thumbs) — A lightning fast version of tmux-fingers written in Rust, copy/pasting tmux like vimium/vimperator. * [amar-laksh/workstation](https://github.com/amar-laksh/workstation) — A commandline tool to help you manage your workstation by distancing you from your screen, locking your screen when you aren't there among other things with OPENCV! -* [guoxbin/dtool](https://github.com/guoxbin/dtool) - A useful command-line tool collection to assist development including conversion, codec, hashing, encryption, etc. [![Build Status](https://api.travis-ci.org/guoxbin/dtool.svg?branch=master)](https://travis-ci.org/guoxbin/dtool) +* [guoxbin/dtool](https://github.com/guoxbin/dtool) — A useful command-line tool collection to assist development including conversion, codec, hashing, encryption, etc. [![Build Status](https://api.travis-ci.org/guoxbin/dtool.svg?branch=master)](https://travis-ci.org/guoxbin/dtool) ### Video @@ -385,10 +385,10 @@ See also [A comparison of operating systems written in Rust](https://github.com/ * [clippy](https://crates.io/crates/clippy) — Rust lints [](https://travis-ci.org/rust-lang/rust-clippy) * [clog-tool/clog-cli](https://github.com/clog-tool/clog-cli) — generates a changelog from git metadata ([conventional changelog](https://blog.thoughtram.io/announcements/tools/2014/09/18/announcing-clog-a-conventional-changelog-generator-for-the-rest-of-us.html)) [](https://travis-ci.org/clog-tool/clog-cli) * [dan-t/rusty-tags](https://github.com/dan-t/rusty-tags) — create ctags/etags for a cargo project and all of its dependencies [](https://travis-ci.org/dan-t/rusty-tags) -* [dotenv-linter](https://github.com/mgrachev/dotenv-linter) - Linter for `.env` files [](https://github.com/mgrachev/dotenv-linter/actions?query=workflow%3ACI+branch%3Amaster) +* [dotenv-linter](https://github.com/mgrachev/dotenv-linter) — Linter for `.env` files [](https://github.com/mgrachev/dotenv-linter/actions?query=workflow%3ACI+branch%3Amaster) * [frewsxcv/crate-deps](https://github.com/frewsxcv/crate-deps) — generates images of dependency graphs for crates hosted on crates.io * [git-journal](https://github.com/saschagrunert/git-journal/) — The Git Commit Message and Changelog Generation Framework [](https://travis-ci.org/saschagrunert/git-journal) -* [gstats](https://github.com/boonshift/gstats/) - command line tool to print a developer handy summary of all git repositories below current directory +* [gstats](https://github.com/boonshift/gstats/) — command line tool to print a developer handy summary of all git repositories below current directory * [rust-lang/rustfix](https://github.com/rust-lang/rustfix) — automatically applies the suggestions made by rustc * [just](https://github.com/casey/just) — A handy command runner for project-specific tasks [](https://travis-ci.org/casey/just) * [mask](https://github.com/jakedeichert/mask) — A CLI task runner defined by a simple markdown file [](https://github.com/jakedeichert/mask/actions?query=workflow%3ACI) @@ -489,7 +489,7 @@ See also [Foreign Function Interface](https://doc.rust-lang.org/book/first-editi * [Sean1708/rusty-cheddar](https://github.com/Sean1708/rusty-cheddar) — generates C header files from Rust source files [](https://travis-ci.org/Sean1708/rusty-cheddar) * C++ * [rust-lang/rust-bindgen](https://github.com/rust-lang/rust-bindgen) — A Rust bindings generator - * [dtolnay/cxx](https://github.com/dtolnay/cxx) - Safe interop between Rust and C++ [](https://travis-ci.com/dtolnay/cxx) + * [dtolnay/cxx](https://github.com/dtolnay/cxx) — Safe interop between Rust and C++ [](https://travis-ci.com/dtolnay/cxx) * Erlang * [rusterlium/rustler](https://github.com/rusterlium/rustler) — safe Rust bridge for creating Erlang NIF functions [](https://travis-ci.org/rusterlium/rustler) * Haskell @@ -580,7 +580,7 @@ See also [Are we (I)DE yet?](https://areweideyet.com/) and [Rust Tools](https:// ### Profiling -* [bheisler/criterion.rs](https://github.com/bheisler/criterion.rs) - Statistics-driven benchmarking library for Rust [![Build Status](https://api.travis-ci.org/bheisler/criterion.rs.svg?branch=master)](https://travis-ci.org/bheisler/criterion.rs) +* [bheisler/criterion.rs](https://github.com/bheisler/criterion.rs) — Statistics-driven benchmarking library for Rust [![Build Status](https://api.travis-ci.org/bheisler/criterion.rs.svg?branch=master)](https://travis-ci.org/bheisler/criterion.rs) * [sharkdp/hyperfine](https://github.com/sharkdp/hyperfine) — A command-line benchmarking tool [![Version info](https://img.shields.io/crates/v/hyperfine.svg)](https://crates.io/crates/hyperfine) [![Build Status](https://api.travis-ci.org/sharkdp/hyperfine.svg?branch=master)](https://travis-ci.org/sharkdp/hyperfine) * [performancecopilot/hornet](https://github.com/performancecopilot/hornet) — A Performance Co-Pilot memory-mapped values instrumentation library [![crates.io badge](https://img.shields.io/crates/v/hornet.svg)](https://crates.io/crates/hornet) [](https://travis-ci.org/performancecopilot/hornet) * [koute/memory-profiler](https://github.com/koute/memory-profiler) — A memory profiler for Linux [![Build Status](https://api.travis-ci.org/koute/memory-profiler.svg?branch=master)](https://travis-ci.org/koute/memory-profiler) @@ -1005,7 +1005,7 @@ See also [About Rust’s Machine Learning Community](https://medium.com/@autumn_ * [FlatBuffers](https://google.github.io/flatbuffers/) * [frol/flatc-rust](https://github.com/frol/flatc-rust) — FlatBuffers compiler (flatc) integration for Cargo build scripts [](https://travis-ci.org/frol/flatc-rust) * EDN - * [naomijub/edn-rs](https://github.com/naomijub/edn-rs) - crate to parse and emit EDN format into Rust types. [![Build Status]( https://api.travis-ci.org/naomijub/edn-rs.svg?branch=master)](https://travis-ci.org/naomijub/edn-rs) + * [naomijub/edn-rs](https://github.com/naomijub/edn-rs) — crate to parse and emit EDN format into Rust types. [![Build Status]( https://api.travis-ci.org/naomijub/edn-rs.svg?branch=master)](https://travis-ci.org/naomijub/edn-rs) * HAR * [mandrean/har-rs](https://github.com/mandrean/har-rs) — A HTTP Archive Format (HAR) serialization & deserialization library [![Build Status](https://api.travis-ci.org/mandrean/har-rs.svg?branch=master)](https://travis-ci.org/mandrean/har-rs) * HTML @@ -1337,7 +1337,7 @@ See also [Are we game yet?](https://arewegameyet.com) * [kaj/ructe](https://github.com/kaj/ructe) — HTML template system for Rust [](https://travis-ci.org/kaj/ructe) * [Keats/tera](https://github.com/Keats/tera) — template engine based on Jinja2 and the Django template language. [](https://travis-ci.org/Keats/tera) * [djc/askama](https://github.com/djc/askama) — template rendering engine based on Jinja [](https://travis-ci.org/djc/askama) - * [naomijub/hiccup](https://github.com/naomijub/hiccup) - template engine inpired by Clojure's Hiccup. [![Build Status](https://api.travis-ci.org/naomijub/hiccup.svg?branch=master)](https://travis-ci.org/naomijub/hiccup) + * [naomijub/hiccup](https://github.com/naomijub/hiccup) — template engine inpired by Clojure's Hiccup. [![Build Status](https://api.travis-ci.org/naomijub/hiccup.svg?branch=master)](https://travis-ci.org/naomijub/hiccup) * Mustache * [rustache/rustache](https://github.com/rustache/rustache) — [](https://travis-ci.org/rustache/rustache) * [tailhook/marafet](https://github.com/tailhook/marafet) — Compiler for Jade-like template language to cito.js-based virtual dom @@ -1474,4 +1474,4 @@ A registry allows you to publish your Rust libraries as crate packages, to share ## License -[![CC0](https://licensebuttons.net/p/zero/1.0/88x31.png)](https://creativecommons.org/publicdomain/zero/1.0/) +[![CC0](https://licensebuttons.net/p/zero/1.0/88x31.png)](https://creativecommons.org/publicdomain/zero/1.0/) \ No newline at end of file diff --git a/cleanup.rs b/src/bin/cleanup.rs similarity index 100% rename from cleanup.rs rename to src/bin/cleanup.rs From d649b575a78d1f47573de0e00d961d5164c6b370 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Mon, 24 Feb 2020 22:36:50 +0000 Subject: [PATCH 2/2] Update cleanup instructions --- .gitignore | 2 -- src/bin/cleanup.rs | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 409fcf2..466cc5a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,5 @@ .idea/ Cargo.lock target/ -cleanup -cleanup.exe ab-results*.json results.yaml \ No newline at end of file diff --git a/src/bin/cleanup.rs b/src/bin/cleanup.rs index 75f76b0..8ca29c0 100644 --- a/src/bin/cleanup.rs +++ b/src/bin/cleanup.rs @@ -1,5 +1,5 @@ // Cleans up `README.md` -// Usage: rustc cleanup.rs && ./cleanup +// Usage: cargo run --bin cleanup use std::fs; use std::fs::File;