You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[profile.release]
strip = "symbols"lto = "fat"panic = "abort"codegen-units = 1# Commenting out this line allows to compilerustflags = ["-C", "target-feature=+crt-static"]
[package]
name = "bar"version = "0.1.0"edition = "2021"
[dependencies]
peg = "*"
Trying to build it with cargo build --release results in the error:
error: the `#[proc_macro]` attribute is only usable with crates of the `proc-macro` crate type
--> /mnt/ssd1/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/peg-macros-0.8.2/lib.rs:20:1
|
20 | #[proc_macro]
| ^^^^^^^^^^^^^
error: could not compile `peg-macros` (lib) due to previous error