What is the Canister WASM Module Max Size?

Can someone tell me what the max size for the wasm module is? I’m trying to do something incredibly silly in rust, but I’m getting errors trying to install my module which is 4MB…

I think it’s currently 3MB.

If you aren’t already using it, you may want to employ (crate?) ic-cdk-optimizer to reduce the binary size. Not a Rust dev, so don’t ask me how…


@Hazel 10mb messages between canisters on the same subnet is supported. What you might be able to do is take advantage of the asset canister as it can upload your wasm module in chunks, then install a 10mib wasm module onto your destination canister. haven’t tried it out myself.