Hacker News new | ask | show | jobs
by cheez 2369 days ago
Getting an error:

    .cargo/registry/src/github.com-1ecc6299db9ec823/bytes-0.5.3/src/bytes.rs:121:18
        |
    121 |             len: bytes.len(),
        |                  ^^^^^^^^^^^

    error: aborting due to previous error

    error: Could not compile `bytes`.
    warning: build failed, waiting for other jobs to finish...
3 comments

It requires a very recent version of rust. Do a 'rustup update' to get the latest stable release. You can't use the distribution's packages for rust and cargo if you want to play new rust programs.
Makes sense.
same. I tried googling around a bit, but nothing useful showed up :(.

I don't understand how rust/cargo work so just giving up at this point.