hi, I am writing a plugin for a software.
It uses the messages described in the .json file to call the corresponding .dll shared library.
I want to write a sdk to achieve other functions, and automatically generate a .json description file at compile time (build.rs?). In order to achieve this function, I thought of two ways.
A: plugin project, B: sdk crate. The project depends on SDK.
sdk crate parses the project code at compile time, determines which APIs are used by the project and generates .json.
The project proactively informed the sdk crate of the information. (Similar to features that can pass custom content?).
Yes, I know these features can be difficult to implement. If not, I plan to write a command line tool to generate the .json file.
Is there a library that can parse the rust code?
For example, determine whether the project uses:
--Translation from Google.