Secondary target dependencies

Đang mở
#259 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
28/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
rust
Lĩnh vực
build-system, tooling

Hướng nghiên cứu

Tái hiện ví dụ wasm-component-tutorial đã được sửa đổi, bắt đầu với các mục phụ thuộc trong calculator/Cargo.toml và command/Cargo.toml. So sánh lỗi được tạo ra với cấu hình hoạt động có liệt kê các phụ thuộc thứ cấp, sau đó xác định xem hành vi phụ thuộc có nên được thay đổi hoặc ghi lại hay không và xác minh kết quả bằng ví dụ của tutorial.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Is it expected that the user need to add wit files of secondary dependencies into Cargo.toml?

For example, in this modified tutorial example (https://github.com/minghuaw/wasm-component-tutorial), package component:calculator imports component:add/add and component:sub/sub, and the corresponding wit files are included in the Cargo.toml file as follows

# calculator/Cargo.toml
[package.metadata.component.target.dependencies]
"component:add" = { path = "../add/wit/world.wit" }
"component:sub" = { path = "../sub/wit/world.wit" }

However, when importing component:calculator/calculate into package component:command, it would generate an error with

# command/Cargo.toml
[package.metadata.component.target.dependencies]
"component:calculator" = { path = "../calculator/wit/world.wit" }

but works fine if the above section is changed to

[package.metadata.component.target.dependencies]
"component:add" = { path = "../add/wit/world.wit" }
"component:sub" = { path = "../sub/wit/world.wit" }
"component:calculator" = { path = "../calculator/wit/world.wit" }
Ngôn ngữ chính
Rust
Star
593
Fork
68
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của bytecodealliance/cargo-component

Tất cả issue của bytecodealliance/cargo-component

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.