Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JanBeh opened this issue Feb 3, 2023 · 0 comments
Open

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

JanBeh opened this issue Feb 3, 2023 · 0 comments

Comments

@JanBeh
Copy link

JanBeh commented Feb 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant