How to build expanding include_str!("__index.js") expanded to literal r#"<index.js raw text>"# in main.rs?

· Users Rust Lang · Sept. 23, 2026, 5:24 a.m.
Summary
The blog post discusses how to expand the Rust `include_str!` macro to embed the raw content of a JavaScript file directly into Rust source code. It presents a practical example of how to read the contents of an `index.js` file and incorporate it into a Rust program, potentially discussing implications for building and handling dependencies during the cargo build process.
AUTHOR