Secondary target dependencies

オープン
#259 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
28/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
rust

調査の方向性

変更された wasm-component-tutorial の例を再現し、まず calculator/Cargo.toml と command/Cargo.toml の依存関係エントリから始めます。生成されたエラーを、二次依存関係を一覧に含む動作する構成と比較し、その後、依存関係の動作を変更または文書化すべきかを確認し、チュートリアルの例で結果を検証します。

索引モデルが issue の本文から書いたものです。

説明

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" }
主要言語
Rust
スター
593
フォーク
68
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

bytecodealliance/cargo-component のほかの issue

bytecodealliance/cargo-component の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。