serde_dynamodb icon indicating copy to clipboard operation
serde_dynamodb copied to clipboard

serde_dynamodb 0.8 and rusoto_core 0.46 incompatible

Open jc4x4 opened this issue 4 years ago • 2 comments
trafficstars

I get the following error when I use serde_dynamodb 0.8 and rusoto_core 0.46. How would I fix it?

error[E0252]: the name `tls` is defined multiple times
  --> /home/jack/.cargo/registry/src/github.com-1ecc6299db9ec823/rusoto_core-0.46.0/src/lib.rs:25:5
   |
23 | use hyper_rustls as tls;
   |     ------------------- previous import of the module `tls` here
24 | #[cfg(feature = "native-tls")]
25 | use hyper_tls as tls;
   |     ^^^^^^^^^^^^^^^^ `tls` reimported here
   |
   = note: `tls` must be defined only once in the type namespace of this module
help: you can use `as` to change the binding name of the import
   |
25 | use hyper_tls as other_tls;
   |     ^^^^^^^^^^^^^^^^^^^^^^

jc4x4 avatar Apr 02 '21 05:04 jc4x4

@mockersf Can you take a look at this?

jc4x4 avatar Apr 07 '21 04:04 jc4x4

Choosing between rustls or native-tls is done by feature: https://github.com/mockersf/serde_dynamodb/blob/de4da2b8d27163881804d7755635c992e2a0a3f7/Cargo.toml#L25-L29

This can happen if you have both feature rustls and native-tls enabled at the same time, or if you have native-tls enabled without disabling default features

mockersf avatar Apr 07 '21 20:04 mockersf