karyon icon indicating copy to clipboard operation
karyon copied to clipboard

Doesn't compile

Open domenkozar opened this issue 7 months ago • 1 comments

   Compiling karyon_core v0.3.0
   Compiling karyon_jsonrpc_macro v0.3.0
error[E0107]: missing generics for trait `Decode`
   --> /home/domen/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/karyon_core-0.3.0/src/util/decode.rs:7:18
    |
7   | pub fn decode<T: Decode>(src: &[u8]) -> Result<(T, usize)> {
    |                  ^^^^^^ expected 1 generic argument
    |
note: trait defined here, with 1 generic parameter: `Context`
   --> /home/domen/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/bincode-2.0.1/src/de/mod.rs:103:11
    |
103 | pub trait Decode<Context>: Sized {
    |           ^^^^^^ -------
help: add missing generic argument
    |
7   | pub fn decode<T: Decode<Context>>(src: &[u8]) -> Result<(T, usize)> {
    |                        +++++++++

For more information about this error, try `rustc --explain E0107`.
error: could not compile `karyon_core` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...

domenkozar avatar May 15 '25 07:05 domenkozar

Hello @domenkozar Sorry about that, the issue was caused by the new version of bincode 2.0.1, while we're using 2.0.0-rc.3

I've just upstreamed version 0.3.1 with the fix. Thanks for reporting the issue!

hozan23 avatar May 15 '25 08:05 hozan23