motoko
motoko copied to clipboard
support including Blobs from the file system during build
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
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.