AlexPikalov / cdrs

Cassandra DB native client written in Rust language. Find 1.x versions on https://github.com/AlexPikalov/cdrs/tree/v.1.x Looking for an async version? - Check WIP https://github.com/AlexPikalov/cdrs-async

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

some conflict with uuid, complication error

cnd opened this issue · comments

commented
   Compiling cdrs v2.2.1
     Running `rustc --edition=2018 --crate-name cdrs /root/.cargo/registry/src/github.com-1ecc6299db9ec823/cdrs-2.2.1/src/lib.rs --color always --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 --cfg 'feature="default"' --cfg 'feature="v4"' -C metadata=541aeaedfd863e74 -C extra-filename=-541aeaedfd863e74 --out-dir /root/contrib/rust/server/target/release/deps -L dependency=/root/contrib/rust/server/target/release/deps --extern byteorder=/root/contrib/rust/server/target/release/deps/libbyteorder-86ca0f6d2ddd7023.rmeta --extern log=/root/contrib/rust/server/target/release/deps/liblog-5885e8f2c53c074d.rmeta --extern lz4_compress=/root/contrib/rust/server/target/release/deps/liblz4_compress-eb04c4a8c9eed48c.rmeta --extern r2d2=/root/contrib/rust/server/target/release/deps/libr2d2-7472572b246acab4.rmeta --extern rand=/root/contrib/rust/server/target/release/deps/librand-dc8994d085b5988a.rmeta --extern snap=/root/contrib/rust/server/target/release/deps/libsnap-f6027ff4766ef093.rmeta --extern time=/root/contrib/rust/server/target/release/deps/libtime-2dba67ce0bfa7751.rmeta --extern uuid=/root/contrib/rust/server/target/release/deps/libuuid-ef736748d326ada0.rmeta --cap-lints allow`
error[E0432]: unresolved import `uuid::BytesError`
  --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/cdrs-2.2.1/src/error.rs:10:5
   |
10 | use uuid::BytesError;
   |     ^^^^^^^^^^^^^^^^ no `BytesError` in the root

error[E0412]: cannot find type `BytesError` in crate `uuid`
   --> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/cdrs-2.2.1/src/types/data_serialization_types.rs:179:66
    |
179 | pub fn decode_timeuuid(bytes: &[u8]) -> Result<uuid::Uuid, uuid::BytesError> {
    |                                                                  ^^^^^^^^^^ not found in `uuid`

error: aborting due to 2 previous errors

Some errors have detailed explanations: E0412, E0432.
For more information about an error, try `rustc --explain E0412`.
error: could not compile `cdrs`.

Can confirm - 2.2.1 is broken.

@cnd @krojew

Probably I have some previous version of uuid in my lock file so it compiled without errors.
Will try to fix it today.

Thank you for creating the issue and sorry for inconveniences

@AlexPikalov any chance for a new release with the fix?

@krojew I've just triggered a release

@krojew @cnd 2.2.2 has been released