// SPDX-FileCopyrightText: 2022 Shun Sakai
//
// SPDX-License-Identifier: GPL-3.0-or-later
= How to Build
== Prerequisites
.To build *rscrypt*, you will need the following dependencies
* https://doc.rust-lang.org/stable/cargo/[Cargo] (v1.70.0 or later)
.To build man pages, you will need the following additional dependencies
* https://asciidoctor.org/[Asciidoctor]
== Building from source
.To clone the repository
[source,shell]
----
git clone https://github.com/sorairolake/rscrypt.git
cd rscrypt
----
.To build a package
[source,shell]
----
just build
----
== Crate features
`cbor`::
Enable outputting the encryption parameters as CBOR. This is enabled by
default.
`json`::
Enable outputting the encryption parameters as JSON. This is enabled by
default.
`msgpack`::
Enable outputting the encryption parameters as MessagePack. This is enabled
by default.
`toml`::
Enable outputting the encryption parameters as TOML. This is enabled by
default.
`yaml`::
Enable outputting the encryption parameters as YAML. This is enabled by
default.