3 ms·
From the article: > Because our code winds up running in other people’s apps we don’t use a full-fledged async runtime like tokio or async-rs since those are o
by tmzt 6y ago
From the article:
> Because our code winds up running in other people’s apps we don’t use a full-fledged async runtime like tokio or async-rs since those are optimized for “use all available resources” scenarios like network servers or client applications.
Have you considered the recent alternative, smol [1]?
Do you have any plans to share source or build scripts for the glue components?
How have you been able to incorporate native functionality such as media codecs and screen capture with shared logic written in Rust?
Has Rust worked well when you also need to integrate with runtimes such as React Native or Flutter?
[1] https://github.com/stjepang/smol https://github.com/stjepang/smol
- steveklabnik 6y agosmol was made public yesterday, so I would be very surprised if they considered it.
- stux 6y agoDart’s FFI is still stabilizing, but there’s a small example here https://github.com/brickpop/flutter-rust-ffi https://github.com/brickpop/flutter-rust-ffi
- tedmielczarek 6y ago> Have you considered the recent alternative, smol [1]? I've been reading Stjepan's articles and am very interested in what he's doing but we haven't seriously looked into alternatives yet. He reached out to me after this post went live and I've promised to follow up! > Do you have any plans to share source or build scripts for the glue components? We'd like to open source bits of our work that are separable and useful to others but often glue code and build scripts fall way short of that because they're very much tied into our specific arrangement. I'm not sure there's much there that's novel in any event, it's mostly just using the set of crates I list in the post in the standard ways. > How have you been able to incorporate native functionality such as media codecs and screen capture with shared logic written in Rust? We don't handle video currently AIUI so we haven't had to deal with codecs. We primarily try to put platform-specific integration code in the platform-native part of the codebase, which is ObjC for iOS and Java for Android, and transform things down to a more straightforward form like byte buffers to hand off to Rust. > Has Rust worked well when you also need to integrate with runtimes such as React Native or Flutter? We have some React Native support and it hasn't been any worse than supporting the other toolkits we support. I don't think we have Flutter support in a place where I could speak usefully about it.