bendk
bendk
It's controlled by the `uniffi.toml` config file in your crate root. Check out that link for an example.
That's probably the issue then. I'd suggest trying these things, in order: - Making sure you're running `uniffi-bindgen-swift` inside the cargo workspace. UniFFI uses `cargo metadata` to find the crate...
One question I have is where this library will live. It gets especially tricky if we expand this strategy to other languages, like Python + pyo3. At that point, there...
> I don't understand how libfoo_jni.so is built though - neither its source nor binary? Great question, I'm not sure either. My first pass is going to be to create...
What's weird is that on my machine, the JNI times are only slightly more except for the first n=10 case. It seems like the main difference is the `FindClass` and...
After thinking about this more, I think I it makes sense. The JVM JIT can optimize the method calls in the first case, but it can't optimize JNI calls. The...
> Yes we can, maybe we can have a thread-local "caller-saved" buffer for this purpose, so we don't have to allocate a new buffer for every Rust function call. I...
So, I dug deeper into this and the `nio` strategy seems really appealing to me. If you set up a known/shared buffer rather than passing a `ByteBuffer` argument, then the...
> Is this buffer shared across all threads? Or expressed otherwise does this mean calls into Rust are now serialized onto a single shared buffer? I think we'll want to...
Can you just leave out the `--xcframework` param? I think the only thing that does is add that `framework` keyword. TBH, I don't understand the Swift ecosystem very well so...