-
Notifications
You must be signed in to change notification settings - Fork 167
error[E0152]: duplicate lang item in crate std
(which indexmap
depends on): panic_impl
.
#258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The "wicked" thing is that we added But this scheme doesn't work in your case, where you want to avoid |
Okay, thank you for the explanations! |
Hello again @cuviper, So I did what we said, using What do you think we can do? Btw, if the problem is the amount of work it requires, I would happily prepare a PR myself for you to review and publish |
Thanks a lot @cuviper ! |
Hey,
I'm trying to use indexmap in a substrate pallet, which is a
no_std
environment.If I import:
indexmap = { version = "1.9.2", default-features = false }
I get the following error:
Which usually indicate that some crate uses an
std
feature.This import the following version:
I can't find this commit on your repo so I have tried other versions of the crate:
4d410509d2e67c3d33e17c6d4cdbf622ea8458f8
and4d52cf338c6ff9f742aac716f41b8a5497842f92
, which are the two last commits on yourindexmap-1.x
release branch, both raise the same problem.The strange thing is that any commit on the branch
master
, includingca5f848e10c31e80aeaad0720d14aa2f6dd6cfb1
which is the commit of the release1.9.2
are valid and does not raise any errors.My conclusion is that there is something wicked with your
indexmap-1.x
release branch.A temporary fix is to use the master branch rather that the crate.io releases.
The text was updated successfully, but these errors were encountered: