Skip to content

Commit

Permalink
added compilation options to reduce libs size
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhroom committed Jan 5, 2023
1 parent aa6b173 commit 2e4d6b5
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 2e4d6b5

Please sign in to comment.