I have a rust project with multiple crates, call them Crate A and Crate B. Crate A depends on crate B and needs to do some logic in its build.rs based on information generated in Crate B's build.rs. What is the best way to pass this information between the build processes?
It seems like directly using OUT_DIR or environment variables doesn't work as the environment is different for each crate's build process.
I have found cargo::metadata=KEY=VALUE
which works but it is only available when using the links manifest key which is meant to be used for linking native libraries. Any advice or direction would be appreciated!