tafia / quick-protobuf

A rust implementation of protobuf parser
MIT License
446 stars 82 forks source link

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

Open JanBeh opened 1 year ago

JanBeh commented 1 year ago

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.