Closed kroist closed 8 months ago
As stated here, https://github.com/inkdevhub/drink/blob/e49347148c64339123c8ca958c27e3447f69e652/drink/test-macro/src/contract_building.rs#L32 drink tries to build crate's contract, when the crate has ink-as-dependency feature.
ink-as-dependency
The problem occurs, when the:
cargo metadata returns the metadata for the workspace, not for the current crate.
cargo metadata
Actually, it seems that the only workaround would be do exclude the drink test package from the workspace.
https://github.com/rust-lang/cargo/issues/7754
As stated here, https://github.com/inkdevhub/drink/blob/e49347148c64339123c8ca958c27e3447f69e652/drink/test-macro/src/contract_building.rs#L32 drink tries to build crate's contract, when the crate has
ink-as-dependency
feature.The problem occurs, when the:
ink-as-dependency
feature)cargo metadata
returns the metadata for the workspace, not for the current crate.Actually, it seems that the only workaround would be do exclude the drink test package from the workspace.
https://github.com/rust-lang/cargo/issues/7754