goffrie / plex

a parser and lexer generator as a Rust procedural macro
Apache License 2.0
410 stars 28 forks source link

Use 'proc-macro = true' instead of crate-type #30

Closed ExpHP closed 6 years ago

ExpHP commented 6 years ago

See https://github.com/rust-lang/cargo/issues/5310

Both ways of writing this appear to work when compiling plex itself; however, crate-type = ["proc-macro"] breaks rustdoc on downstream crates. proc-macro = true is the syntax used in all documentation I can find of the feature:

goffrie commented 6 years ago

Thanks!