Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Improve ergonomics of Rust examples, re-enable use of published packages

Đang mở
#255 3 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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
rust, wasm
Lĩnh vực
devtools, documentation

Hướng nghiên cứu

Bắt đầu bằng việc xem xét chức năng đã bị revert trong PR #254 và mã của tutorial Rust. So sánh cấu hình package được ghi trong tài liệu với hành vi hiện tại của cargo-component và wasm-pkg-tools, sau đó xác định cách tiếp cận nào trong ba cách tiếp cận được đề xuất là khả thi. Được xem là hoàn thành khi các ví dụ có thể sử dụng các package WIT đã được phát hành mà không gặp các lỗi hiện tại về cấu hình hoặc phân giải nhiều world.

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

Mô tả

enhancement lang/rust

This issue arguably shouldn't go here, but currently UX issues in upstream tooling is making the Rust

The goal is to revert this reverted functionality -- we want to be able to use published WIT packages but there are a few issues stopping us:

  • cargo-component does not configure/patch where wkg looks for deps (the target kind) when configured in Cargo.toml (i.e. we should be able to specify that docs is a known package w/ a known registry)
  • cargo-component currently does not properly resolve targets w/ multiple worlds even if wkg is configured (via it's global config file)
  • wkg should be able to use local fconfig

There are at least a few ways to solve this issue:

  1. Update cargo-component to perform the patching of registries for namespaces before using wasm-pkg-tools functionality
  2. Update wkg to prefer local config files and include one in the tutorial code
  3. Update the guide to get users to configure wkg global config before attempting usage.

A somewhat hidden requirement/sidequest to this issue is that we need more cargo-component/wasm-pkg-tools maintainers. The current functionality is fantastic for these tools, but the UX needs to be polished just a bit.

Ngôn ngữ chính
Rust
Star
137
Fork
88
Merge trung bình
10 giờ 38 phút
Pull request đã merge (30 ngày)
2

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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/component-docs

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

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.