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

Use --remap-path-prefix RUSTFLAG to canonicalize build directory #1909

Open aran opened 2 weeks ago

aran commented 2 weeks ago

Is your feature request related to a problem? Please describe. Panic messages/stack traces include the full path to the cargo directory on the build machine, e.g. /Users/aran/.cargo<...> in my case.

Describe the solution you'd like Use --remap-path-prefix or some other solution to canonicalize (and disguise!) the build path in build-web command. e.g. https://users.rust-lang.org/t/how-to-properly-use-remap-path-prefix/104406/6

Describe alternatives you've considered N/A

Additional context N/A

fzyzcjy commented 2 weeks ago

Good idea and feel free to PR for this! I guess it may be add a flag and forward it in build script.