From d64b9facfe6895ffba7d994dacaaff8e8b6697ad Mon Sep 17 00:00:00 2001 From: TheRealLorenz Date: Thu, 15 Feb 2024 16:31:26 +0100 Subject: [PATCH] Add install instruction and rename bin name --- README.md | 6 ++++++ rq-cli/Cargo.toml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/README.md b/README.md index fa64a23..c41681f 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,12 @@ alternative to [vscode-restclient](https://github.com/Huachao/vscode-restclient) Original author blogpost: https://protiumx.github.io/blog/posts/an-http-request-parser-with-rust-and-pest-rs/ +## Installation + +```bash +cargo install --path rq-cli +``` + ## HTTP File The `pest` grammar can be found [here](./rq-core/src/grammar.pest). diff --git a/rq-cli/Cargo.toml b/rq-cli/Cargo.toml index 3566d11..e06bad7 100644 --- a/rq-cli/Cargo.toml +++ b/rq-cli/Cargo.toml @@ -5,6 +5,10 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[[bin]] +name = "rq" +path = "src/main.rs" + [dependencies] rq-core = { path = "../rq-core" }