txpipe / oura

The tail of Cardano
https://txpipe.github.io/oura
Apache License 2.0
257 stars 71 forks source link

Stopped Compiling: error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable #427

Open ehanoc opened 2 years ago

ehanoc commented 2 years ago

Just updated my branch to main

And am getting the following

...
   Compiling proc-macro-error v1.0.4
   Compiling form_urlencoded v1.1.0
   Compiling ring v0.16.20
   Compiling backtrace v0.3.66
   Compiling miniz-sys v0.1.12
   Compiling bytes-utils v0.1.3
   Compiling itertools v0.10.3
error[E0658]: trait bounds other than `Sized` on const fn parameters are unstable
   --> /home/kali/.cargo/registry/src/github.com-1ecc6299db9ec823/bytes-utils-0.1.3/src/string/mod.rs:326:6
    |
326 | impl<S: Storage> StrInner<S> {
    |      ^
...
359 |     pub const unsafe fn from_inner_unchecked(s: S) -> Self {
    |     ------------------------------------------------------ function declared as const here
    |
    = note: see issue #93706 <https://github.com/rust-lang/rust/issues/93706> for more information

For more information about this error, try `rustc --explain E0658`.
error: could not compile `bytes-utils` due to previous error
warning: build failed, waiting for other jobs to finish...
error: failed to compile `oura v1.7.0 (/home/kali/workspace/oura)`, intermediate artifacts can be found at `/home/kali/workspace/oura/target`
rvcas commented 2 years ago

@ehanoc I'm unable to reproduce. What version of rust are you using? perhaps try again after rustup upgrade

scarmuega commented 2 years ago

Hi @ehanoc, the current "Minimum Supported Rust Version" (MSRV) for Oura is 1.58.1. Are you compiling with something older than that?