White-Whale-Defi-Platform / white-whale-core

Core contracts for White Whale, The Interchain Liquidity Protocol for the Cosmos.
https://whitewhale.money
MIT License
36 stars 23 forks source link

Add dev-dependencies as workspace dependencies #114

Closed kerber0x closed 6 months ago

kaimen-sano commented 1 year ago

There is currently no way to implement dev-dependencies in a Cargo.toml that defines a workspace. this page outlines the current allowed sections.

kerber0x commented 1 year ago

@kaimen-sano It is possible, see https://doc.rust-lang.org/cargo/reference/workspaces.html#the-dependencies-table.

So you define it as a "normal" dependency under [workspace.dependencies] but then import it under [dev-dependencies]

Screenshot from 2023-02-28 11-43-48