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

Add dev-dependencies as workspace dependencies

Closed this issue · 2 comments

Add dev-dependencies as workspace dependencies

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

@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