quick-protobuf icon indicating copy to clipboard operation
quick-protobuf copied to clipboard

Wrong usage of `include_bytes!` in README file of pb-rs

Open JanBeh opened this issue 2 years ago • 0 comments

These lines seem to be wrong:

mod hello {
    include_bytes!(concat!(env!("OUT_DIR")), "/hello.rs");
}

It should be include! instead of include_bytes! and parentheses are wrong. Moreover, top-level attributes make inclusion impossible. See this post and follow-ups on URLO.

JanBeh avatar Feb 03 '23 11:02 JanBeh