serde_dynamodb 0.8 and rusoto_core 0.46 incompatible
jc4x4 opened this issue · comments
JC commented
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;
| ^^^^^^^^^^^^^^^^^^^^^^
François Mockers commented
Choosing between rustls
or native-tls
is done by feature:
Lines 25 to 29 in de4da2b
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