uniffi-rs
Add mutable zero-copy byte arrays
#2940
Merged

Add mutable zero-copy byte arrays #2940

jhugman
jhugman jhugman requested a review 30 days ago
jhugman jhugman removed review request 30 days ago
jhugman jhugman requested a review from badboy badboy 30 days ago
jhugman jhugman force pushed from 2f6dc40b to b8699196 30 days ago
jhugman jhugman force pushed from 703d6517 to ad72dc53 30 days ago
badboy
badboy approved these changes on 2026-07-08
jhugman jhugman force pushed from ad72dc53 to 8a5293ce 29 days ago
bendk
bendk commented on 2026-07-08
jhugman feat(core): add ForeignBytesMut zero-copy mutable byte view
cb1bff35
jhugman feat(meta): add FnParamMetadata.by_mut_ref and bump contract version
a4228bfc
jhugman feat(macros): support &mut [u8] args and reject them in async fns
5666affa
jhugman feat(bindgen,udl): thread by_mut_ref through codegen and parse [ByMut…
6f845dcf
jhugman feat(bindings): generate zero-copy &mut [u8] for Python, Swift, Kotlin
136bd696
jhugman test: add &mut [u8] proc-macro and UDL [ByMutRef] mutation tests
6184148b
jhugman docs: document &mut [u8] / [ByMutRef] bytes + changelog entries
e47a9376
jhugman Add changelog PR
92c71136
jhugman jhugman force pushed from 8a5293ce to 92c71136 14 days ago
jhugman Remove fixtures/mut-bytes
1a170f39
jhugman Fixup tests
549c1c63
jhugman fix(parse): detect &mut [u8] args in the Rust source parser
4bc89141
jhugman test(parse): cover &mut [u8] in the full_interface snapshot
b78635f8
jhugman feat(kotlin-jni): generate zero-copy &mut [u8] lifts
557bcc3e
jhugman test(kotlin-jni): cover &mut [u8] mutation in bytes.kts
d5a3f272
jhugman feat(python): accept bytes or bytearray for &[u8] args
602208f0
jhugman docs(bytes): note caller aliasing rules for borrowed buffers
cca8288d
jhugman fix(parse): only flag &mut [u8] as by_mut_ref, not other &mut slices
03380ab2
jhugman fix(bindgen): reject async fns with &mut [u8] args in the pipeline
96a8c57b
jhugman
bendk
bendk requested changes on 2026-07-30
jhugman Address reviewer feedback
c79eef77
jhugman jhugman requested a review from bendk bendk 7 days ago
jhugman
bendk
mhammond
mhammond commented on 2026-08-01
jhugman
jhugman Address reviewer doc comments
374ae046
bendk
bendk approved these changes on 2026-08-04
mhammond
jhugman
mhammond
mhammond mhammond merged bc6a335e into main 1 hour ago
mhammond

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone