The sound distributed version control system

#781 [libpijul] Failed to build on Guix

Opened by fd9a on March 17, 2023
fd9a on March 17, 2023

Hi, I am trying to build pijul on Guix but when I compile libpijul I get these errors. At the same time there are quite understandable hints on how this can be solved. I tried to build with rust versions 1.60 and 1.67 the errors are the same. Should this be solved on the libpijul side?

Compiling libpijul v1.0.0-beta.4 (/tmp/guix-build-rust-libpijul-1.0.0-beta.4.drv-0/libpijul-1.0.0-beta.4)

error[E0599]: no function or associated item named from_bytes found for struct ed25519_dalek::Signature in the current scope

–> src/key.rs:227:59 | 227 | let signature = ed25519_dalek::Signature::from_bytes(&signature)?;

| ^^^^^^^^^^ function or associated item not found in ed25519_dalek::Signature |

= help: items from traits can only be used if the trait is in scope

help: the following trait is implemented but not in scope; perhaps add a `use` for it:

use ed25519_dalek::ed25519::signature::Signature;

help: there is an associated function with a similar name

227 | let signature = ed25519_dalek::Signature::to_bytes(&signature)?;

error[E0599]: no function or associated item named from_bytes found for struct ed25519_dalek::Signature in the current scope

–> src/key.rs:274:53

let sig = ed25519_dalek::Signature::from_bytes(&sig)?;

^^^^^^^^^^ function or associated item not found in ed25519_dalek::Signature

= help: items from traits can only be used if the trait is in scope

help: the following trait is implemented but not in scope; perhaps add a use for it: |

1 | use ed25519_dalek::ed25519::signature::Signature;

help: there is an associated function with a similar name |

274 | let sig = ed25519_dalek::Signature::to_bytes(&sig)?;