bkchr / proc-macro-crate

`$crate` in procedural macros.
Apache License 2.0
65 stars 17 forks source link

Also walk `target.'cfg()'` for `dev-dependencies` next to `dependencies` #15

Closed MarijnS95 closed 2 years ago

MarijnS95 commented 2 years ago

In RustAudio/cpal#641 we're seeing a failure in ndk-macro to turn a crate name with dashes into underscores as fallback, with the underlying issue that proc-macro-crate failed to find our crate in Cargo.toml when limited to a specific target cfg. According to the Rust docs it is perfectly possible to have dev-dependencies behind such a target predicate too.