Replies: 2 comments 2 replies
-
Good question! My general idea is, the less code we write, the less buggy our code (usually) is and it is easier to maintain. (Of course, without losing performance etc). I am not very sure why you are going to inject the middleware? Our library does not look like a middleware. |
Beta Was this translation helpful? Give feedback.
2 replies
-
Something along these lines? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
/cc @fzyzcjy
I've been thinking about how to best approach #386, and one of the few problems is how we streamline the process of compiling and bundling Rust WASM code with Flutter. Presently, Flutter Web makes the process very opaque and will require HTML editing to properly inject JS code.
flutter run
on the web does not provide any methods for injecting middleware, so I'm 80% sure we will need to intercept this with our own stack, further increasing the complexity.A fallback option would be to opt out of integrating with
flutter run
and instead defer to wasm-bindgen documentation on injecting code, so that FRB only needs to focus on generating the necessary Rust code.Beta Was this translation helpful? Give feedback.
All reactions