Open uditrugman opened 10 hours ago
Hi, could you please show rust_lib/src/api/commons/commons_di.rs
(especially code around that warning line)?
just normal frb structure :
#[frb(opaque)]
pub struct FrbCommonsDI(Arc<crate::commons::commons_di::CommonsDI>);
my workaround was to add the below to my Cargo.toml
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(frb_expand)'] }
but the correct solution, i think, is to add "frb_expand" to the list of features of frb_rust.
but the correct solution, i think, is to add "frb_expand" to the list of features of frb_rust.
Looks reasonable and feel free to PR for this! (since this does not look to be super hard)
Describe the bug
there are warnings when compiling with the latest rust nightly version 1.85.0:
Steps to reproduce
Hint: A simple way to reproduce is to clone and modify the https://github.com/fzyzcjy/flutter_rust_bridge/tree/master/frb_example/dart_minimal example package according to your needs.
Logs