diff options
author | Brian Dawn | 2021-06-03 20:46:56 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-06 01:49:17 +0000 |
commit | 62d181de78077200d7b229ce6f91b2b14129d998 (patch) | |
tree | 890a622aed18f5e61097dde4efababd2af1af7fe /book | |
parent | 8c2fa12ffc006de787992b4022263be033ac8200 (diff) |
Provide a feature flag to be able to embed the runtime folder.
These changes provide a new feature flag "embed_runtime" that when
enabled and built in release mode will embed the runtime folder into the
resulting binary.
Diffstat (limited to 'book')
-rw-r--r-- | book/src/install.md | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/book/src/install.md b/book/src/install.md index 4e3cfc3f..8cbff1a5 100644 --- a/book/src/install.md +++ b/book/src/install.md @@ -35,3 +35,10 @@ This will install the `hx` binary to `$HOME/.cargo/bin`. Now copy the `runtime/` directory somewhere. Helix will by default look for the runtime inside the same folder as the executable, but that can be overriden via the `HELIX_RUNTIME` environment variable. + +If you want to bake the `runtime/` directory into the Helix binary you can build +it with: + +``` +cargo install --path helix-term --features "embed_runtime" +``` |