When following the instructions here: https://join.lemmy.ml/docs/en/contributing/local_development.html, and doing cargo check, it seemed to proceed just fine until it compiles object v0.23.0. There it gave several error messages of the form: error[E0658]: subslice patterns are unstable and stopped after these error messages.

Searching for this error gave no useful result. But when I tried on Ubuntu, cargo check worked just fine. Apparently, even though I updated Debian to the most recent version, it has a slightly older version of Cargo (1.42.1 instead of Ubuntu’s 1.46.0). When I removed the Cargo and Rust installed from APT and rather used the rustup script recommended on https://doc.rust-lang.org/cargo/getting-started/installation.html to get a newer version, it worked just fine.

Perhaps there should be a note about this in the instructions for building Lemmy? Something about that having an older version of Cargo, like on Debian, can cause unexpected issues? Or should that be obvious? (I sometimes don’t know obvious things, so sorry if it is…)

  • DessalinesM
    link
    fedilink
    23 years ago

    We can’t support non-docker installs or non-docker dev environments. There are simply too many system variables to deal with, and its just two of us. If you do want to develop locally, you’ll need to be able to google errors like yours (the first result was saying you’re using >1 year old version of rust.)