How can I make it add use std::time::SystemTime; to the generated file?
#2942
Replies: 1 comment 1 reply
-
|
Found it. Use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to make an external library work with FRB. I managed to get it to successfully build a subset of the crate which will be sufficient for my use case. However, there are some fields on structs like
pub timestamp: SystemTime. It generatesDateTimefor their Dart counterparts, which is great. However, rust build fails by default as the use statement does not get added tofrb_generated.rs. I have to add it manually after each build and it's quite tedious, especially in early stages of development.Thanks,
Mark
Beta Was this translation helpful? Give feedback.
All reactions