index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2023-03-12 22:52:28.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2023-03-12 22:52:28.0 +00:00:00
commit
a4250fda4ca361bdf41b3ea13b8ffbb7f711a67e [patch]
tree
9012f87b99f81d95aa3de05f20a6df127ce86780
parent
5d49c0915666ec13e06631615d4d5e5384333726
download
a4250fda4ca361bdf41b3ea13b8ffbb7f711a67e.tar.gz

docs: mention cargo features when building from source [skip ci]



Diff

 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.