You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering whether this can also be achieve using the current version of uniffi. If not, I would love to contribute.
I'd like to generate types from a dependency of my cargo workspace.
I notice that under the current fixtures folder, if I run
It will generate multiple swift files with same setup:
cargo run --features=uniffi/cli --bin uniffi-fixtures-futures generate -l swift -o ./tmp --library 'path/to/uniffi-rs/target/debug/libuniffi_ext_types_lib.dylib'
privateextensionRustBuffer{// Allocate a new buffer, copying the contents of a `UInt8` array.init(bytes:[UInt8]){letrbuf= bytes.withUnsafeBufferPointer{ ptr inRustBuffer.from(ptr)}self.init(capacity: rbuf.capacity, len: rbuf.len, data: rbuf.data)}staticfunc empty()->RustBuffer{RustBuffer(capacity:0, len:0, data:nil)}
Same. As mentioned above though, while things do work, there might be an opportunity to clean some of these things up - I don't think that the way swift generates things today is necessarily ideal - eg, I'm not sure we need one modulemap per generated source file etc.
Hello!
I'm wondering whether this can also be achieve using the current version of uniffi. If not, I would love to contribute.
I'd like to generate types from a dependency of my cargo workspace.
I notice that under the current
fixtures
folder, if I runIt will generate multiple swift files with same setup:
cargo run --features=uniffi/cli --bin uniffi-fixtures-futures generate -l swift -o ./tmp --library 'path/to/uniffi-rs/target/debug/libuniffi_ext_types_lib.dylib'
this would be a conflict.
Is there any method to "merge" these generated files into a single Swift source file?
The text was updated successfully, but these errors were encountered: