Hi, All!
I,m trying to run this simple program from MS VS Code (OS: Windows 10):
extern crate num;
use num::Complex;
fn main() {
let z = Complex { re: 0.0, im: 0.0 };
println!("Complex = {}", z);
}
Cargo.toml
[package]
name = "mandelbrot"
version = "0.1.0"
authors = ["U_M0TE7"]
edition = "2018"
[dependencies]
num = "0.2.1"
But... see this error:
error[E0463]: can't find crate for `num`
--> main.rs:1:1
|
1 | extern crate num;
| ^^^^^^^^^^^^^^^^^ can't find crate
error: aborting due to previous error
For more information about this error, try `rustc --explain E0463`.
If I run it using console command "cargo run" from the project's folder, all works correct, without any errors.
How to solve it?
Thanks