add instructions to build for prod
This commit is contained in:
parent
5bfcb972c5
commit
fb48d77a10
1 changed files with 12 additions and 0 deletions
12
README.md
12
README.md
|
@ -25,6 +25,18 @@ If you have `cargo`, you can simply run `cargo install bunbun`.
|
|||
Once installed, simply run it. A default config file will be created if one does
|
||||
not exist. You should model your own custom routes after the provided ones.
|
||||
|
||||
### Building for prod
|
||||
|
||||
If you're looking to build a release binary, here are the steps I use:
|
||||
|
||||
1. `cargo build --release`
|
||||
2. `strip target/release/bunbun`
|
||||
3. `upx --lzma bunbun`
|
||||
|
||||
LZMA provides the best level of compress for Rust binaries; it performs at the
|
||||
same level as `upx --ultra-brute` without the time cost and [without breaking
|
||||
the binary](https://github.com/upx/upx/issues/224).
|
||||
|
||||
### Configuration
|
||||
|
||||
If configuring for development, no further configuration is required. If running
|
||||
|
|
Loading…
Reference in a new issue