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
Hi, while working on using workspace in html5ever, I've ran into issue of needing the CARGO_WORKSPACE directory, and being unable, to find it. What I resorted to is essentially, &Path(cargo_manifest).join("..") which feels hacky.
Could CARGO_WORKSPACE be added as environment variable? I'm not sure what it should be when there is no workspace defined, I assume it should either return Err or default it to CARGO_MANIFEST_DIR.
Sidenote I'm willing to work on this issue, if I could get quick pointers, to what I need to do.
T-cargo notes:
Potential use cases:
file!at test runtime, see A way for tests to look upfile!paths at runtime #15885CARGO_BIN_EXE_<name>Updates
Hi, while working on using workspace in html5ever, I've ran into issue of needing the
CARGO_WORKSPACEdirectory, and being unable, to find it. What I resorted to is essentially,&Path(cargo_manifest).join("..")which feels hacky.Could
CARGO_WORKSPACEbe added as environment variable? I'm not sure what it should be when there is no workspace defined, I assume it should either returnError default it toCARGO_MANIFEST_DIR.Sidenote I'm willing to work on this issue, if I could get quick pointers, to what I need to do.