include toml file from another toml

Viewed 2780

I am trying to include a second toml file from Cargo.toml file.
I don't known how to do that and i don't known do this is possible.

I am trying this:

Cargo.toml:

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

libs.toml:

[dependencies]
termion = "0.9.8"

and this:

Cargo.toml:

include = ["libs.toml"]

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

libs.toml:

[dependencies]
termion = "0.9.8"

Both of them don't works.
For information I want to automatically generate one file by script and the `Cargo.toml` leave normal.
0 Answers
Related