Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to static lib and remove un-necessary optimizations
Browse files Browse the repository at this point in the history
scottopell committed Dec 5, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 15bdfad commit 8d5ede7
Showing 4 changed files with 6 additions and 16 deletions.
8 changes: 0 additions & 8 deletions .cargo/config

This file was deleted.

14 changes: 6 additions & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"
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.

0 comments on commit 8d5ede7

Please sign in to comment.