CLI and library for encrypting keys and values using client-side encryption with AWS KMS keys.
Using the shell script:
shell
./build.sh
Note: works on Windows too, just use Git for Windows Bash to run it.
Manually from terminal:
```shell
cargo build cargo run
cargo build --release cargo run --release ```
Cargo will output the executable to either
shell
rust/target/debug/vault
rust/target/release/vault
depending on which build profile is used.
You can install a release binary locally using cargo install. Note that you need to specify the path to the directory containing Cargo.toml, so from the repo root you would do:
shell
cargo install --path rust/
Cargo will put the binary under $HOME/.cargo/bin
by default,
which you should add to PATH if you don't have it there,
so the binaries installed through Cargo will be found.
Using the shell script:
shell
./install.sh
If you still get another version when using vault,
you will need to put the cargo binary path $HOME/.cargo/bin
first in path.
Using rustfmt
shell
cargo fmt
Using Clippy
shell
cargo clippy
cargo clippy --fix
shell
cargo update