Closed kohlten closed 1 year ago
Can you share how you've added it to your Cargo.toml? I created an empty project and added this to its Cargo.toml, and it builds:
[dependencies]
bonsaidb = { version = "0.4.1", features = ["client"] }
I tried a few different combinations, and they all are working for me.
Hello Ecton,
My bad for not posting that originally. After looking into it a little more, I was basing my code off of the Basic Server example. It appears like this issue only happens when using the "password-hashing" feature with either of the "client" or "server" features. This is the basic cargo I was able to get to replicate the issue:
[package]
name = "bonsaidb_test"
version = "0.0.0"
edition = "2021"
[dependencies]
bonsaidb = { version = "0.4.1", features = ["server", "password-hashing", "client"] }
Thanks, Kohlten
Ah, that would be it. The examples have changed since 0.4. Here's the Cargo.toml from the v0.4.1 tag. The main branch implements the new feature flag features introduced in Rust 1.60, which came out a few days after after v0.4.1 was released.
This should work on v0.4.1:
bonsaidb = { version = "0.4.1", features = [
"server",
"server-password-hashing",
"client",
"client-password-hashing",
] }
I see, thanks!
Hello,
The currently published version of bonsaidb has these compile errors:
The version on github compiles fine though.
Thanks, Kohlten