From 62d181de78077200d7b229ce6f91b2b14129d998 Mon Sep 17 00:00:00 2001 From: Brian Dawn Date: Thu, 3 Jun 2021 15:46:56 -0500 Subject: 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. --- book/src/install.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'book/src/install.md') 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" +``` -- cgit v1.2.3-70-g09d2