Skip to content
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

Cannot use silicon as a library #228

Open
krivahtoo opened this issue Dec 14, 2022 · 1 comment
Open

Cannot use silicon as a library #228

krivahtoo opened this issue Dec 14, 2022 · 1 comment

Comments

@krivahtoo
Copy link

cargo b output:

error[E0432]: unresolved import `anyhow`
 --> /home/krivah/.cargo/registry/src/github.com-1ecc6299db9ec823/silicon-0.5.1/src/assets.rs:4:5
  |
4 | use anyhow::Result;
  |     ^^^^^^ use of undeclared crate or module `anyhow`

error[E0432]: unresolved import `anyhow`
  --> /home/krivah/.cargo/registry/src/github.com-1ecc6299db9ec823/silicon-0.5.1/src/font.rs:17:5
   |
17 | use anyhow::Result;
   |     ^^^^^^ use of undeclared crate or module `anyhow`

For more information about this error, try `rustc --explain E0432`.

silicon version: 0.5.1

@f01dab1e
Copy link

f01dab1e commented May 7, 2023

quick fix:

silicon = { version = "0.5", default-features = false, features = ["anyhow"] }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants