Closed VCCICCV closed 1 month ago
How are you running your program and from which directory? What is the error?
您如何运行程序?从哪个目录运行?错误是什么?
Thank you.I'm running in a new project, I've solved the problem,usedotenvy::dotenv().ok();
.env file can be read;dotenvy::dotenv().expect("Failed to load.env file");
can not
ok
only discards the error. If you get the error with expect
but not ok
, it is likely your file still isn't being read.
My computer is Windows 11, but I see other people can use it,rustc 1.80.1
cargo.toml