Replies: 1 comment 1 reply
-
somewhat related: rust-lang/cargo#15834 |
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.
-
Current Behavior
It doesn't look possible to tell from the API whether a crate's lib is a proc macro. Tools using the API are unable to tell if a crate is a proc macro without downloading it and examining the Cargo.toml.
Expected Behavior
The API already surfaces some fields describing what's in the crate, such as
bin_names
andhas_lib
. It would be useful to also surfaceis_proc_macro: [true/false]
depending on whether"proc-macro = true"
is set in the Cargo.toml.Steps To Reproduce
Environment
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions