Hey, I copied token contract (https://github.com/stellar/soroban-examples/tree/v0.8.4/token) from the examples to the empty rust workspace and I can't compile wasm binary out of it.
cargo check and cargo test works without any issues.
But:
$ cargo build --target wasm32-unknown-unknown --release
warning: profiles for the non root package will be ignored, specify profiles at the workspace root:
package: /home/xxx/contracts/token/Cargo.toml
workspace: /home/xxx/Cargo.toml
warning: /home/xxx/Cargo.toml: unused manifest key: workspace.dev_dependencies
Compiling soroban-env-guest v0.0.16
error[E0046]: not all trait items implemented, missing: `escalate_error_to_panic`
--> /home/XXX/.cargo/registry/src/index.crates.io-6f17d22bba15001f/soroban-env-guest-0.0.16/src/guest.rs:168:1
|
168 | impl EnvBase for Guest {
| ^^^^^^^^^^^^^^^^^^^^^^ missing `escalate_error_to_panic` in implementation
|
= help: implement the missing item: `fn escalate_error_to_panic(&self, _: <Self as soroban_env_common::EnvBase>::Error) -> ! { todo!() }`
For more information about this error, try `rustc --explain E0046`.
What surprises me the most, is that in soroban-example repository I can compile binary out of the same contract without any issues...