hello!
I want to use quote in my contract written in Ink! The problem is that I cannot compile it to WASM due to std usage. This is how I import quote:
quote = { version = "1.0", default-features = false }
I am trying to build a basic flipper example contract using this command: cargo contract build. Unfortunately, I got a lot of these kinds of errors:
error[E0152]: duplicate lang item in crate `core` (which `proc_macro2` depends on): `CStr`.
|
= note: the lang item is first defined in crate `core` (which `std` depends on)
= note: first definition in `core` loaded from /home/wojciech/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libcore-4e48b611ead810f8.rlib
= note: second definition in `core` loaded from /home/wojciech/a0/no_std-ink/target/ink/wasm32-unknown-unknown/release/deps/libcore-5a37b600ddc3bb47.rmeta
Here are a couple of things about using std in Ink!
hello! I want to use quote in my contract written in Ink! The problem is that I cannot compile it to WASM due to std usage. This is how I import quote:
I am trying to build a basic flipper example contract using this command:
cargo contract build
. Unfortunately, I got a lot of these kinds of errors:Here are a couple of things about using std in Ink!