包含来自另一个 toml 的 toml 文件

问题描述

我正在尝试从 Cargo.toml 文件中包含第二个 toml 文件。
我不知道该怎么做,也不知道这样做是否可行。

我正在尝试这个:

Cargo.toml

[package]
name = "toml"
authors = "TANDEX"
version = "0.0.0"
include = ["libs.toml"]

libs.toml

[dependencies]
termion = "0.9.8"

还有这个:

Cargo.toml

include = ["libs.toml"]

[package]
name = "toml"
authors = ["TANDEX"]
version = "0.0.0"

libs.toml

[dependencies]
termion = "0.9.8"

它们都不起作用。
有关信息,我想通过脚本自动生成一个文件,并且`Cargo.toml` 保持正常。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)