error: duplicate lang item in crate std (which serde depends on): panic_impl.
|
= note: the lang item is first defined in crate sp_io (which ocw_demo depends on)
= note: first definition in sp_io loaded from /home/kshamalka/recipes/target/release/wbuild/ocw-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-0713151cf511a047.rmeta
= note: second definition in std loaded from /home/kshamalka/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libstd-4faf99cd6c5513da.rlib
error: duplicate lang item in crate std (which serde depends on): oom.
|
= note: the lang item is first defined in crate sp_io (which ocw_demo depends on)
= note: first definition in sp_io loaded from /home/kshamalka/recipes/target/release/wbuild/ocw-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-0713151cf511a047.rmeta
= note: second definition in std loaded from /home/kshamalka/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libstd-4faf99cd6c5513da.rlib
error: could not compile ocw-demo due to 2 previous errors
warning: build failed, waiting for other jobs to finish...
How do I fix this error?
error: duplicate lang item in crate
std
(whichserde
depends on):panic_impl
. | = note: the lang item is first defined in cratesp_io
(whichocw_demo
depends on) = note: first definition insp_io
loaded from /home/kshamalka/recipes/target/release/wbuild/ocw-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-0713151cf511a047.rmeta = note: second definition instd
loaded from /home/kshamalka/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libstd-4faf99cd6c5513da.rliberror: duplicate lang item in crate
std
(whichserde
depends on):oom
. | = note: the lang item is first defined in cratesp_io
(whichocw_demo
depends on) = note: first definition insp_io
loaded from /home/kshamalka/recipes/target/release/wbuild/ocw-runtime/target/wasm32-unknown-unknown/release/deps/libsp_io-0713151cf511a047.rmeta = note: second definition instd
loaded from /home/kshamalka/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/wasm32-unknown-unknown/lib/libstd-4faf99cd6c5513da.rliberror: could not compile
ocw-demo
due to 2 previous errors warning: build failed, waiting for other jobs to finish...