fzyzcjy / flutter_rust_bridge

Flutter/Dart <-> Rust binding generator, feature-rich, but seamless and simple.
https://fzyzcjy.github.io/flutter_rust_bridge/
MIT License
3.61k stars 254 forks source link

Implement `impl ... for ...` #1895

Open NobodyForNothing opened 3 weeks ago

NobodyForNothing commented 3 weeks ago

Changes

Generates methods when implementing traits for structs.

Fixes #1894

Also Fixes a typo on the website.

Checklist

Running ./frb_internal precommit --mode slow locally always results in compilation errors/panics and changes a bunch of tracked files, even on the master branch. It would be great if someone could help me resolve this.

I'm also unsure how to use twin tests and left that part out.

welcome[bot] commented 3 weeks ago

Hi! Thanks for opening this pull request! :smile:

fzyzcjy commented 3 weeks ago

Running ./frb_internal precommit --mode slow locally always results in compilation errors/panics and changes a bunch of tracked files, even on the master branch. It would be great if someone could help me resolve this.

Then maybe ./frb_internal generate-internal-frb-example-pure-dart ; ./frb_internal precommit-generate

I'm also unsure how to use twin tests and left that part out.

It is auto generated (by commands above), no worries