Reqwest install troubles on macosx Catalina - solved

My first project with Rust is a webpage scraper so I wanted to install reqwest.
Added the line
reqwest = "0.2"
to dependencies in Cargo.toml,
Version of cargo:
cargo 0.13.0-nightly (eca9e15 2016-11-01)

Version of rustc:
rustc 1.13.0 (2c6933acc 2016-11-07)

When I start with commnd

cargo run

I get bunch of errors:

Compiling unicase v1.4.2
error: expected :, found ,
--> /Users/bostjan/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/explicit.rs:180:37
|
180 | self.vec.push(Status { level, status });
| ^

Compiling dtoa v0.2.2
error: expected :, found ,
--> /Users/bostjan/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/lib.rs:226:17
|
226 | text,
| ^

error: expected :, found ,
--> /Users/bostjan/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/lib.rs:303:17
|
303 | text,
| ^

error[E0412]: type name Range is undefined or not in scope
--> /Users/bostjan/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/deprecated.rs:28:26
|
28 | pub fn visual_runs(line: Range, levels: &[Level]) -> Vec {
| ^^^^^^^^^^^^ undefined or not in scope
|
= help: you can import several candidates into scope (use ...;):
= help: std::collections::btree_map::Range
= help: std::collections::btree_set::Range
= help: std::ops::Range

error[E0425]: unresolved name min
--> /Users/bostjan/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/deprecated.rs:47:25
|
47 | min_level = min(run_level, min_level);
| ^^^ unresolved name

error[E0425]: unresolved name max
--> /Users/bostjan/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/deprecated.rs:48:25
|
48 | max_level = max(run_level, max_level);
| ^^^ unresolved name

error[E0063]: missing fields level, status in initializer of explicit::Status
--> /Users/bostjan/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/explicit.rs:180:23
|
180 | self.vec.push(Status { level, status });
| ^^^^^^ missing level, status

error[E0063]: missing fields original_classes, paragraphs, text in initializer of InitialInfo<'_>
--> /Users/bostjan/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/lib.rs:225:9
|
225 | InitialInfo {
| ^^^^^^^^^^^ missing original_classes, paragraphs, text

error[E0063]: missing fields levels, original_classes, paragraphs and 1 other field in initializer of BidiInfo<'_>
--> /Users/bostjan/.cargo/registry/src/github.com-1ecc6299db9ec823/unicode-bidi-0.3.4/src/lib.rs:302:9
|
302 | BidiInfo {
| ^^^^^^^^ missing levels, original_classes, paragraphs and 1 other field

error: aborting due to 3 previous errors

Build failed, waiting for other jobs to finish...
error: Could not compile unicode-bidi.

Any ideas what I'm doing wrong?

Your version of Rust is very very old, and reqwest requires a newer version. The newest version of Rust is 1.41.0

Because you're using the ancient version of the Rust compiler. Rust is a rapidly improving language, new syntax and library improvements are added every 6 weeks. And of course compilers made before those syntax have no clue about it, thus it throws syntax error. How did you installed the Rust toolchains?

Ah, yes. Now I see the date by the rustc ... updating.
Thanks.

And also the version of reqwest is pretty old. The current latest ome is v0.10.1 with fancy async-await support. Why don't you try it?