我想在我的库中包含依赖于该功能激活的依赖项的功能。如果我用 feature 编译"serde",我想安装ndarray支持"serde"。并且默认应该是默认ndarray安装。
我想要这样的东西Cargo.toml
[features]
include-serde = ["ndarray-with-serde"]
[dependencies]
ndarray = { version = "0.x" }
ndarray-with-serde = { version = "0.x", features=["serde"] }
目前这可能吗?