You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 2, 2025. It is now read-only.
error: environment variable `AX_WORK_DIR` not defined at compile time
--> /home/dbydd/.cargo/git/checkouts/axconfig-a375f0c4fb0314cc/d8f8f2d/build.rs:6:34
|
6 | let root_dir = PathBuf::from(std::env!("AX_WORK_DIR"));
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: use `std::env::var("AX_WORK_DIR")` to read the variable at run time
= note: this error originates in the macro `std::env` (in Nightly builds, run with -Z macro-backtrace for more info)
error: could not compile `axconfig` (build script) due to 1 previous error
举个例子,这是通过cargo tree导出的spinlock的依赖:
看起来并没有什么问题,除了axconfig编译时需要指定AX_WORK_DIR...
于是编译就炸了!这显然不利于crate复用,因此,是否考虑将axconfig与该crate解耦?