Skip to content

Commit

Permalink
Switch to static lib and remove un-necessary optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
scottopell committed Dec 12, 2022
1 parent af22925 commit 5df5c79
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
8 changes: 0 additions & 8 deletions .cargo/config

This file was deleted.

Binary file added deps/darwin_arm64/release/libvrl_bridge.a
Binary file not shown.
Binary file removed deps/darwin_arm64/release/libvrl_bridge.dylib
Binary file not shown.
14 changes: 6 additions & 8 deletions v5/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,15 @@ version = "0.1.0"
edition = "2021"

[profile.release]
# Emit only the line info tables, not full debug info, in release builds, to
# substantially reduce the size of the debug info. Line info tables are enough
# to symbolicate a backtrace, but not enough to use a debugger interactively.
# This seems to be the right tradeoff for release builds: it's unlikely we're
# going to get interactive access to a debugger in production installations, but
# we still want useful crash reports.
debug = 1
# It would be nice to have debug info, at least `debug=1` (line-level granularity)
# But unfortunately it balloons the binary size too much
# With level 0, darwin_arm64 == 57.1
# With level 1, darwin_arm64 == 149Mi
debug = 0

[lib]
name = "vrl_bridge"
crate-type = ["cdylib"]
crate-type = ["staticlib"]

[dependencies]
libc = "0.2"
Expand Down

0 comments on commit 5df5c79

Please sign in to comment.