I am trying to merge an external crate into another crate. Both of them have workspaces. They have members in those Cargo.toml file.
They have these two separate Cargo.toml
Cargo.toml for tabled
[workspace]
members = [
"papergrid",
"tabled",
"tabled_derive",
"static_table",
"json_to_table",
"csv_to_table",
"ron_to_table",
"toml_to_table",
"table_to_html",
"testing_table",
]
Cargo.toml 2
members = ["ratatui", "xtask"]
What all have I tried? I tried merging these like this, by adding the Cargo.toml 1 contents to Cargo.toml to 2.
[workspace]
resolver = "2"
members = [
"ratatui",
"xtask",
"./tabled/papergrid",
"./tabled/tabled",
"./tabled/tabled_derive",
"./tabled/static_table",
"./tabled/json_to_table",
"./tabled/csv_to_table",
"./tabled/ron_to_table",
"./tabled/toml_to_table",
"./tabled/table_to_html",
"./tabled/testing_table",
]
When I ran cargo check, the above merging was successful, but I could not import the relevant code from "tabled."
This is what the directory tree looks like. "Ratatui" and "tabled" are the workspaces. I want to unify "tabled" with "Ratatui".
├── assets
├── ratatui
│ ├── benches
│ ├── examples
│ ├── src
│ └── tests
├── tabled
│ ├── csv_to_table
│ ├── json_to_table
│ ├── papergrid
│ ├── ron_to_table
│ ├── static_table
│ ├── tabled
│ ├── tabled_derive
│ ├── table_to_html
│ ├── target
│ ├── testing_table
│ └── toml_to_table
├── target
│ ├── debug
│ └── tmp
└── xtask
└── src
I have been going through this documentation, have not found success yet. .html
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744921169a4601140.html
评论列表(0条)