You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
The text was updated successfully, but these errors were encountered:
KavinduShamalka
changed the title
How do I fix this error?
error: duplicate lang item in crate std (which serde depends on): panic_impl. and error: duplicate lang item in crate std (which serde depends on): oom.
Jun 10, 2022
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 crate
sp_io
(whichocw_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.rliberror: duplicate lang item in crate
std
(whichserde
depends on):oom
.|
= note: the lang item is first defined in crate
sp_io
(whichocw_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.rliberror: could not compile
ocw-demo
due to 2 previous errorswarning: build failed, waiting for other jobs to finish...
The text was updated successfully, but these errors were encountered: