Skip to content

feature: Native assets Rust implementation #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 24 commits into
base: main
Choose a base branch
from

Conversation

shigomany
Copy link

Hello @drxddy.

I tried to contribute to this Rust PR an implementation of the Blurhash algorithm using Native Assets.

But there are several problems associated not only with platform support:

  • On macOs and Windows i described in README.md
  • It's worked on flutter master channel with experemental flag.

I decided to split the implementation into two packages.

The dart package has a pure wrapper over Rust and also added a codec.

The Flutter package has an implementation of ImageProvider + wrapper via isolates - I made a simplified version via compute.

@drxddy
Copy link
Member

drxddy commented Apr 19, 2025

Hey @shigomany, super interesting to use native assets for fast synchronous method implementations in rust,

Thanks for a ton of the work and the initiative, let's maintain this in a seperate branch and check if it's working as expected on previously supported platforms so they don't experience a breaking change on iOS, Android, Linux, Mac and Windows, still some doubts regarding wasm support.

@shigomany
Copy link
Author

shigomany commented May 2, 2025

About wasm: It's not working on web, bacause Dart is not support standalone wasm (it's only support ecmascript wasm).

All this (about platform supporting) I described in README.md in my branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants