From a4250fda4ca361bdf41b3ea13b8ffbb7f711a67e Mon Sep 17 00:00:00 2001 From: Jose Quintana Date: Sun, 12 Mar 2023 23:52:28 +0100 Subject: [PATCH] docs: mention cargo features when building from source [skip ci] --- docs/content/building-from-source.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/content/building-from-source.md b/docs/content/building-from-source.md index 84e63af..b90b8a8 100644 --- a/docs/content/building-from-source.md +++ b/docs/content/building-from-source.md @@ -27,6 +27,17 @@ All HTML documentation is located in the `docs/` project's directory and is buil It's only necessary to have [Docker](https://www.docker.com/get-started/) installed. +## Cargo features + +Some features are optional when running or building from the source. +For example, if you want to run without the default features like `http2` just try. + +```sh +cargo run --no-default-features -- -h +``` + +For more optional features take a look a the `[features]` section of the `cargo.toml` file adjusting them on demand. + ### Building documentation By default the docs will be built in the `/tmp/docs` directory, to do so follow these steps. -- libgit2 1.7.2