motoko icon indicating copy to clipboard operation
motoko copied to clipboard

support including Blobs from the file system during build

Open letmejustputthishere opened this issue 9 months ago • 1 comments

currently it is not possible to bake a wasm file into a motoko canister during build. this is important when building canister factories that spin up canisters implemented in other languages (e.g. rust).

more context in this conversation

https://dfinity.slack.com/archives/CPVUFG8UV/p1706696583354589

letmejustputthishere avatar Mar 05 '25 13:03 letmejustputthishere

I agree that it would be valuable to have a way to load binary and text files, similar to Rust's include_bytes!() and include_str!().

Closely-related issue from the early days of Motoko: https://github.com/dfinity/motoko/issues/892.

rvanasa avatar Mar 05 '25 20:03 rvanasa