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
error: could not bundle the code dbg-cargo-equip 0.1.0 (path+file:///Users/roku/room/cloned/dbg-cargo-equip) as crate::__cargo_equip::crates::dbg_cargo_equip
Caused by:
could not expand dbg_cargo_equip from dbg-cargo-equip 0.1.0 (path+file:///Users/roku/room/cloned/dbg-cargo-equip)
Caused by:
one of ["/Users/roku/room/cloned/dbg-cargo-equip/src/bar.rs", "/Users/roku/room/cloned/dbg-cargo-equip/src/bar/mod.rs"] does not exist
Considerations
It seems to trying to expand not crate::foo::bar but crate::bar. Maybe replacing with_file_name() with join() will works well.
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)
jakobrs
added a commit
to THE-NIO/cargo-equip
that referenced
this issue
Feb 17, 2023
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.cargo-equip/src/rust.rs
Line 377 in 9b697c1
cargo-equip/src/rust.rs
Line 381 in 9b697c1
The text was updated successfully, but these errors were encountered: