payjoin / nolooking

Batched Channels from a PayJoin ⚡️🔀
41 stars 8 forks source link

Build error (RaspiBolt / Ubuntu Server on arm64, LND 0.15.4, Rust 1.55) #92

Closed kristapsk closed 1 year ago

kristapsk commented 1 year ago
$ git clone https://github.com/chaincase-app/nolooking.git
$ cd nolooking
$ git checkout v0.2.1-alpha
$ cargo install --path .
  Installing nolooking v0.2.1 (/home/nolooking/nolooking)
    Updating crates.io index
    Updating git repository `https://github.com/dangould/rust-payjoin`
    Updating git repository `https://github.com/DanGould/bip21.git`
  Downloaded adler v1.0.2
  Downloaded smallvec v1.10.0
  Downloaded spin v0.9.4
  Downloaded spin v0.5.2
  Downloaded tokio-macros v1.8.0
  Downloaded tinyvec_macros v0.1.0
  Downloaded thiserror v1.0.37
  Downloaded tokio-util v0.7.4
  Downloaded tracing v0.1.37
  Downloaded slab v0.4.7
  Downloaded socket2 v0.4.7
  Downloaded try-lock v0.2.3
  Downloaded tinyvec v1.6.0
  Downloaded tokio-stream v0.1.11
  Downloaded tokio-rustls v0.23.4
  Downloaded untrusted v0.7.1
  Downloaded tower-service v0.3.2
  Downloaded tracing-core v0.1.30
  Downloaded url v2.3.1
  Downloaded weezl v0.1.7
  Downloaded fixedbitset v0.2.0
  Downloaded webpki v0.22.0
  Downloaded toml v0.5.9
  Downloaded form_urlencoded v1.1.0
  Downloaded unicode-ident v1.0.5
  Downloaded fnv v1.0.7
  Downloaded exr v1.5.2
  Downloaded tracing-attributes v0.1.23
  Downloaded hyper-rustls v0.23.1
  Downloaded hashbrown v0.12.3
error: failed to compile `nolooking v0.2.1 (/home/nolooking/nolooking)`, intermediate artifacts can be found at `/home/nolooking/nolooking/target`

Caused by:
  failed to parse manifest at `/home/nolooking/.cargo/registry/src/github.com-1ecc6299db9ec823/hashbrown-0.12.3/Cargo.toml`

Caused by:
  feature `edition2021` is required

  The package requires the Cargo feature called `edition2021`, but that feature is not stabilized in this version of Cargo (1.55.0 (32da73ab1 2021-08-23)).
  Consider trying a newer version of Cargo (this may require the nightly release).
  See https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#edition-2021 for more information about the status of this feature.
DanGould commented 1 year ago

Thanks for giving this a shot Kristaps. Rust edition 2021 is v1.56, so 1.55 won't compile. Upgrade to rust 1.56+

kristapsk commented 1 year ago

Ok, will try. Need to figure out details about Ubuntu. For some reason I have rustc 1.55 in /usr/local/bin and 1.61 in /usr/bin, with /usr/local/bin being first on PATH.

But README needs to be updated, it currently says about requirements "Rust version 1.48 or higher to compile".

DanGould commented 1 year ago

Thanks for the readme catch, too. You should be able to use rustup update stable to change your toolchain to edition 2021

kristapsk commented 1 year ago

You should be able to use rustup update stable to change your toolchain to edition 2021

I have 1.61 with apt install cargo. Just did chmod -x /usr/local/bin/cargo* /usr/local/bin/rust*. Not even sure why they are there, likely leftover from some tests.

DanGould commented 1 year ago

Were you able to build? Is this issue resolved? The readme is

kristapsk commented 1 year ago

Yes.