Skip to content

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

@JanBeh

Description

@JanBeh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions