Stream: t-compiler/help

Topic: Embedded files in crates?


Charles Lew (Aug 29 2019 at 03:18, on Zulip):

Hello, i wonder if it is possible to "ship" arbitrary files within crates? The expectation is downstream crates can request to use them somehow in build.rs. Or ignore silently if the data is never used. Something that is user-defined metadata.

nikomatsakis (Aug 29 2019 at 15:41, on Zulip):

@Charles Lew not sure what you mean, but maybe something like https://crates.io/crates/rust-embed?

Charles Lew (Aug 29 2019 at 16:46, on Zulip):

Thanks, this is helpful. (Intended to create this topic in the general channel but got it wrong)

Last update: Nov 11 2019 at 22:20UTC