I'm trying to use the 'num' crate in my build.rs. So following the instructions on the 'num' crate page I have this in my Cargo.toml:
[dependencies]
num = "0.2"
And this in my build.rs:
extern crate num;
The 'num' crate gets downloaded and compiled. However cargo then complains:
error[E0463]: can't find crate for `num`
--> build.rs:5:1
|
5 | extern crate num;
| ^^^^^^^^^^^^^^^^^ can't find crate
Which I find odd as I know this works from a regular main().
What to do?