Consider this example:
use uuid;
fn main() {println!("{}", uuid::Uuid::new_v4().to_string());}
with dependency:
uuid = { version = "0.8.1", features = ["v4"] }
It will build without problems using cargo build
, but when I try to use cargo web build
, I get:
error[E0599]: no function or associated item named 'new_v4' found for struct 'uuid::Uuid' in the current scope
Can anyone help me with this? I suspect the use of rand::RngCore
might be a problem ...