Open vvforekk opened 2 years ago
This prevents using cargo-equip
with e.g. ndarray
, because src/extension.rs
includes pub(crate) mod nonnull;
, and cargo-equip
looks for the nonnull
module in src/nonnull.rs
instead of src/extension/nonnull.rs
. (I tried to fix the bug but it just breaks somewhere else)
Version
Small Example
https://github.com/SaiYS/dbg-cargo-equip applying cargo-equip on src/bin/main.rs causes error.
Considerations
It seems to trying to expand not
crate::foo::bar
butcrate::bar
. Maybe replacingwith_file_name()
withjoin()
will works well. https://github.com/qryxip/cargo-equip/blob/9b697c17437f959b72cf1e473dfc0278b7615e85/src/rust.rs#L377 https://github.com/qryxip/cargo-equip/blob/9b697c17437f959b72cf1e473dfc0278b7615e85/src/rust.rs#L381