Closed czocher closed 1 year ago
This is working as intended.
I don't think we'd gain anything by making the DIRECTORY.path()
from static DIRECTORY: Dir = include_dir!("$CARGO_MANIFEST_DIR/some_directory")
always evaluate to "some_directory"
. It'd force every lookup to be prepended with some_directory/
, which seems a bit unnecessary.
Example test:
The above test fails due to:
I would expect the root directory name to be saved. Is this a bug or a design choice? Would you accept a PR to change this behavior?