Skip to content

Commit

Permalink
README: add Size section
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Dec 7, 2024
1 parent 67c4186 commit 5f4aa1d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,21 @@ See [Cargo.toml](https://github.com/kas-gui/kas/blob/master/Cargo.toml#L22).
[kas]: https://docs.rs/kas


Size
----

To reduce binary size, add this to your `Cargo.toml`:
```toml
[profile.release]
strip = true
opt-level = "z"
```

You might also consider using feature `dynamic` if wishing to ship multiple
binaries with shared libraries (Rust's `libstd` and `libkas_dylib`); note
however that these are not ABI-stable.


Copyright and Licence
---------------------

Expand Down

0 comments on commit 5f4aa1d

Please sign in to comment.