First program:
src/main.rs:65:11: 65:19 error: no method named `join` found for type `collections::vec::Vec<&str>` in the current scope
src/main.rs:65 sline.join("") // return string
OK, what happened to ".join", and who had the great idea of taking it out?Second program:
$ cargo build
An unknown error occurred
To learn more, run the command again with --verbose.
OK, must rerun because of useless message. $ cargo --verbose build
Invalid arguments.
Usage:
cargo <command> [<args>...]
cargo [options]
Note that the "Usage" message doesn't say where to put the options if there's a commmand. So we have to guess: $ cargo build --verbose
Failed to parse registry's information for: chrono
Caused by:
the given version requirement is invalid
The version requirement in the cargo.toml file under [dependencies] is chrono="*"
which, according to this manual [1] is valid.I used to like Rust, but after years of stuff breaking with each new release, I don't use it for anything serious.