reinstalled llvm and added suggested paths to .zshrc
it compiles now but …
~/Fossils/examples/rust/basic_bitcoin
Installing canisters…
Installing code for canister basic_bitcoin, with canister ID rrkah-fqaaa-aaaaa-aaaaq-cai
Error: Failed while trying to deploy canisters.
Caused by: Failed while trying to deploy canisters.
Failed while trying to install all canisters.
Failed to install wasm module to canister ‘basic_bitcoin’.
Failed to install wasm in canister ‘rrkah-fqaaa-aaaaa-aaaaq-cai’.
Failed to install wasm.
The replica returned an HTTP Error: Http Error: status 413 Payload Too Large, content type “”, content: Request 0x544cdb792de775359f407e4ef3cbc67faa3a1887624abc3db3988d695627e971 is too large. Message byte size 2841690 is larger than the max allowed 2097152.
douglassmith@static-76-161-87-250 basic_bitcoin %
It’s pretty common to have rust canisters be too big. There’s a few things you can try. Probably easiest is cargo install ic-wasm, which will try to remove unused code from the wasm before uploading. Next is to gzip the wasm before uploading it. This requires a custom build script and you should be able to find more info about it in this or this thread.