Improve ergonomics of Rust examples, re-enable use of published packages
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ả
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-componentdoes not configure/patch wherewkglooks for deps (the target kind) when configured inCargo.toml(i.e. we should be able to specify thatdocsis a known package w/ a known registry)cargo-componentcurrently does not properly resolve targets w/ multiple worlds even ifwkgis configured (via it's global config file)wkgshould be able to use local fconfig
There are at least a few ways to solve this issue:
- Update
cargo-componentto perform the patching of registries for namespaces before usingwasm-pkg-toolsfunctionality - Update
wkgto prefer local config files and include one in the tutorial code - Update the guide to get users to configure
wkgglobal 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
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bytecodealliance/component-docs
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 72/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
[FEATURE] Add wasi-cli templates Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
bytecodealliance/component-docs#294 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
bytecodealliance/component-docs#376 · 1 bình luận ·
-
Fix Python Tutorial Đang mởbug lang/python
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
bytecodealliance/component-docs#348 · 2 bình luận ·
Tất cả issue của bytecodealliance/component-docs
Issue tương tự
-
bug github_actions
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
registrystack/registry-stack#1393 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
longbridge/gpui-kit#3223 ·
-
bug engine
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
rocky-data/rocky#2181 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
oasisprotocol/oasis-sdk#2523 ·
-
[indexer] [QA] Add a focused test for the new NonRetryableError / assertSocketAlive() behavior. Đang mởbot:ai-assisted component:indexer QA-roadmap status:untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
midnightntwrk/midnight-indexer#1557 ·