Skip to content

Commit

Permalink
Auto merge of rust-lang#103812 - clubby789:improve-include-bytes, r=p…
Browse files Browse the repository at this point in the history
…etrochenkov

Delay `include_bytes` to AST lowering

Hopefully addresses rust-lang#65818.
This PR introduces a new `ExprKind::IncludedBytes` which stores the path and bytes of a file included with `include_bytes!()`. We can then create a literal from the bytes during AST lowering, which means we don't need to escape the bytes into valid UTF8 which is the cause of most of the overhead of embedding large binary blobs.
  • Loading branch information
bors committed Nov 12, 2022
2 parents 6f028c3 + e73e55b commit f980765
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit f980765

Please sign in to comment.