-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conditional compilation based on imports (not an issue) #2
Comments
Actually, that just gave me an idea. My previous attempts focused on using a build.rs to generate static crate info, but I see that proc-macro-crate checks |
Success :D I just published v0.2.0, which includes these new attributes:
The only caveats are:
|
Nice!! Glad it worked out. |
I saw you had mentioned something about extending
realia
to also conditionally compile based on crates. Today I saw this crate https://crates.io/crates/proc-macro-crate which at least accesses theCargo.toml
file? Just thought it might be helpful 🤷.Edit: Ahh "downstream" dependencies, so this is the wrong way sorry nvm.
The text was updated successfully, but these errors were encountered: