real-async-trait-rs icon indicating copy to clipboard operation
real-async-trait-rs copied to clipboard

master and latest crates.io version not compiling

Open netthier opened this issue 3 years ago • 0 comments

The latest version currently on crates.io (0.0.2) does not incorporate PR https://github.com/4lDO2/real-async-trait-rs/pull/5 which is needed to use this crate with a recent compiler, therefore a new version should be pushed to crates.io. Furthermore, the latest version of syn now requires the extra-traits feature to be enabled for some of the traits used in this crate. Currently, compilation will fail with errors like:

error[E0277]: `AttrStyle` doesn't implement `Debug`
   --> /home/nett/.cargo/git/checkouts/real-async-trait-rs-99511d8d826cde78/1789be6/src/lib.rs:559:9
    |
559 |         assert_eq!(attr.style, AttrStyle::Outer);
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `AttrStyle` cannot be formatted using `{:?}` because it doesn't implement `Debug`
    |
    = help: the trait `Debug` is not implemented for `AttrStyle`
    = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info)

netthier avatar Sep 03 '22 17:09 netthier