Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,24 @@ rustflags = ["-C", "link-args=-ObjC"]
rustflags = ["-C", "link-args=-ObjC"]

[target.aarch64-apple-ios-sim]
rustflags = ["-C", "link-args=-ObjC"]
rustflags = ["-C", "link-args=-ObjC"]

# Settings for building livekit-uniffi

# Use unwind panic for tier III Apple platforms until they
# become tier II (see rust-lang/rust#151705).

[target.aarch64-apple-tvos]
rustflags = ["-C", "panic=unwind"]

[target.aarch64-apple-tvos-sim]
rustflags = ["-C", "panic=unwind"]

[target.x86_64-apple-tvos]
rustflags = ["-C", "panic=unwind"]

[target.aarch64-apple-visionos]
rustflags = ["-C", "panic=unwind"]

[target.aarch64-apple-visionos-sim]
rustflags = ["-C", "panic=unwind"]
8 changes: 0 additions & 8 deletions livekit-uniffi/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,3 @@ uniffi = { version = "0.30.0", features = ["build", "scaffolding-ffi-buffer-fns"
[[bin]]
name = "uniffi-bindgen"
path = "bindgen.rs"

[profile.release]
opt-level = "z"
lto = true
codegen-units = 1
panic = "abort"
strip = "symbols"
debug = false