From ddd9ce9a84c5b7b4f76c93406f457664ccda1f46 Mon Sep 17 00:00:00 2001 From: finga Date: Sun, 20 Jun 2021 17:12:05 +0200 Subject: [PATCH] Add readme and improve description --- Cargo.toml | 2 +- README.md | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/Cargo.toml b/Cargo.toml index b008296..8bbbe5c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ authors = ["finga "] edition = "2018" license = "GPL-3.0-or-later" readme = "README.md" -description = "A CLI program for interacting Posix Message Queues" +description = "A CLI program for interacting with Posix Message Queues." [dependencies] anyhow = "1.0" diff --git a/README.md b/README.md new file mode 100644 index 0000000..c546b65 --- /dev/null +++ b/README.md @@ -0,0 +1,48 @@ +# mqrs +`mqrs` is a small cli application to handle POSIX message queues. + +## Installation +Currently `mqrs` can only be built with the rust toolchain. Support +for `cargo-deb` is imminent. + +### Install Rust +Install the Rust toolchain from [rustup.rs](https://rustup.rs). + +### Build `mqrs` +`mqrs` can be built for development: +``` sh + cargo b +``` + +or for releasing: +``` sh + cargo b --release +``` + +### Install `mqrs` +When a Rust toolchain installed you can also install `mqrs` +directly without cloning it manually: +``` sh + cargo install --git https://git.onders.org/finga/mqrs.git mqrs +``` + +or from within the project: +``` sh + cargo install mqrs +``` + +### Run `mqrs` +`mqrs` can either be run from the project directory with: +``` sh + cargo b +``` + +or you can copy the produced binary somewhere else or link to them +from `target/{debug,release}/mqrs` depending on which +one you built. + +## Using `mqrs` +`mqrs` supports five commands: `create`, `info`, `unlink`, `send` and +`receive`. All commands do not have to be specified fully. If the +command is clearly distinguishable from all the others, it does not +have to be completed further.