From bfce455a7ebe8d1d2f55431701f7268ac59e62b8 Mon Sep 17 00:00:00 2001 From: KernelErr <45716019+KernelErr@users.noreply.github.com> Date: Tue, 26 Oct 2021 21:40:40 +0800 Subject: [PATCH] Add Cargo installation method --- README-EN.md | 6 ++++++ README.md | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/README-EN.md b/README-EN.md index 3ea60c4..184ff14 100644 --- a/README-EN.md +++ b/README-EN.md @@ -23,6 +23,12 @@ $ cargo build --release Binary file will be generated at `target/release/fourth`, or you can use `cargo install --path .` to install. +Or you can use Cargo to install Fourth: + +```bash +$ cargo install fourth +``` + ## Configuration Fourth will read yaml format configuration file from `/etc/fourth/config.yaml`, here is an example: diff --git a/README.md b/README.md index bf710f3..324b973 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,12 @@ $ cargo build --release 将在`target/release/fourth`生成二进制文件,您也可以使用`cargo install --path . `来安装二进制文件。 +或者您也可以使用Cargo直接安装: + +```bash +$ cargo install fourth +``` + ## 配置 Fourth使用yaml格式的配置文件,默认情况下会读取`/etc/fourth/config.yaml`,如下是一个示例配置。