Skip to content

Commit

Permalink
Merge pull request #9 from alexhroom/smaller-libs
Browse files Browse the repository at this point in the history
Added compiler options to reduce libs size
  • Loading branch information
alexhroom authored Jan 5, 2023
2 parents aa6b173 + 2e4d6b5 commit 49c9657
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rust/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ crate-type = [ 'staticlib' ]

[dependencies]
extendr-api = { git = "https://github.com/extendr/extendr", rev = "b32fd0365bfc1c682a09dd7b4bceca0a91ac085d" }

[profile.release]
opt-level = 'z' # Optimize for size
lto = true # Enable link-time optimization

0 comments on commit 49c9657

Please sign in to comment.