How to merge two pre-existing rust workspaces into one - Stack Overflow

I am trying to merge an external crate into another crate. Both of them have workspaces. They have memb

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

相关推荐

  • How to merge two pre-existing rust workspaces into one - Stack Overflow

    I am trying to merge an external crate into another crate. Both of them have workspaces. They have memb

    1天前
    50

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信