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

Rust compilation error based on potentially broken serde API #16

Open
homer6 opened this issue Aug 26, 2023 · 0 comments
Open

Rust compilation error based on potentially broken serde API #16

homer6 opened this issue Aug 26, 2023 · 0 comments

Comments

@homer6
Copy link

homer6 commented Aug 26, 2023

I ran into this error with the latest version of lsh-rs:

   Compiling lsh-rs v0.4.0
error[E0432]: unresolved import `serde::export`
 --> C:\Users\steve\.cargo\registry\src\index.crates.io-6f17d22bba15001f\lsh-rs-0.4.0\src\hash.rs:8:12
  |
8 | use serde::export::PhantomData;
  |            ^^^^^^ could not find `export` in `serde`

error[E0433]: failed to resolve: could not find `export` in `serde`
 --> C:\Users\steve\.cargo\registry\src\index.crates.io-6f17d22bba15001f\lsh-rs-0.4.0\src\data.rs:4:12
  |
4 | use serde::export::fmt::{Debug, Display};
  |            ^^^^^^ could not find `export` in `serde`

error[E0432]: unresolved import `serde::export`
 --> C:\Users\steve\.cargo\registry\src\index.crates.io-6f17d22bba15001f\lsh-rs-0.4.0\src\table\sqlite.rs:9:12
  |
9 | use serde::export::PhantomData;
  |            ^^^^^^ could not find `export` in `serde`

Some errors have detailed explanations: E0432, E0433.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `lsh-rs` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...

I was running the latest serde:

serde = { version = "1.0.187", features = ["derive"] }

Based on this post, I downgraded to serde 1.0.118 and it compiled:

serde = { version = "=1.0.118", features = ["derive"] }

Maybe we need to update lsh-rs to be compatible with their new API?

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

1 participant