Skip to content

Generate code in rust buildscript instead of through CLI? #2159

Answered by fzyzcjy
CJBuchel asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, it's possible to be in build.rs: https://cjycode.com/flutter_rust_bridge/guides/misc-features/build-rs

However, currently when in this mode, the macros will not be expanded. This may or may not be a problem for you, depending on whether your code has macros. Also feel free to PR if you need the macros and need build.rs!

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@CJBuchel
Comment options

@CJBuchel
Comment options

@fzyzcjy
Comment options

@CJBuchel
Comment options

@fzyzcjy
Comment options

Answer selected by CJBuchel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants