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
no-std example? #316
Comments
Is the [dependencies.snafu]
version = "0.6.0"
no-default-features = true
features = ["rust_1_46"] |
Well, I certainly tried to disable it:
|
You are running into the number one problem with SNAFU — crossing the context selectors and the enum variants. This line needs to be ensure!(1 < 0, OOMError); // SNAFU 0.6 I'd encourage you to give version ensure!(1 < 0, OOMSnafu); // SNAFU 0.7 |
Oh, you are using 0.7 — that's good! Please let me know how I can improve the documentation to help avoid this problem as this specific problem is a major focus of this release. |
Is there an example of how to use snafu with no-std? The compiler is complaining that it can't find a "fail" method and I don't really understand why.
Thanks.
results in:
The text was updated successfully, but these errors were encountered: