diff --git a/.cargo/config.toml b/.cargo/config.toml index 2dc4a5047..5c862261d 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -14,4 +14,24 @@ rustflags = ["-C", "link-args=-ObjC"] rustflags = ["-C", "link-args=-ObjC"] [target.aarch64-apple-ios-sim] -rustflags = ["-C", "link-args=-ObjC"] \ No newline at end of file +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"] \ No newline at end of file diff --git a/livekit-uniffi/Cargo.toml b/livekit-uniffi/Cargo.toml index fb2b4501b..3e8beea77 100644 --- a/livekit-uniffi/Cargo.toml +++ b/livekit-uniffi/Cargo.toml @@ -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