Bringing include_dir Into the Modern Era

The include_dir crate exposes a include_dir!() macro for embedding an entire directory tree in your binary at compile time. It's like include_str!(), but for entire directories.

I recently did a bunch of work cleaning up the include_dir crate, adding desired features, improving compile times, and solidifying its core goals, so I felt like a project update was in order.

I'd also like to use this blog post as an opportunity to ask for reviews. It would be really nice to have extra eyes on this crate, and using a public review system like CREV would give people more confidence that they can use include_dir in production. You can check out their Getting Started guide for more.

9 Likes

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.