Does rust support file scanning during program compilation

For example, I now have a directory code file, which needs to be scanned during the compilation period to obtain some functions, which can be understood as priority loading.

during the cargo build or cargo package cargo run

Sounds like a use case for build scripts?

2 Likes

Whether some source files can be compiled preferentially in advance during the compilation of the rust runtime and compilation

What do you mean?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.