Unable to use SDK with build target `wasm32-wasip1` & `wasm32-wasip2`
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- rust, wasm
- 領域
- build-system
調査の方向性
Cargo.toml、特に issue で参照されている reqwest の blocking feature から始め、wasm32-wasip1 または wasm32-wasip2 向けのリンクされた最小再現を構築します。non-blocking client が実用可能かどうかを判断します。完了とは、SDK が対象向けにビルドできるか、またはそのドキュメントに wasm がサポート対象外であることが明確に記録されていることを意味します。
索引モデルが issue の本文から書いたものです。
説明
Description
Attempting to include the flagsmith crate in a project that has a build target of wasm32-wasip1 (or wasm32-wasip2), will cause the build to fail.
Version Information
flagsmith = "~2.0.0"
Reproduction
- I have made a minimal reproduction showcasing the issue if it is at all helpful.
Cause
flagsmith makes use of the blocking feature of the reqwest crate, as seen here. reqwest cannot be compiled with the blocking feature enabled in async environments (see reqwest issue #891), this means flagsmith cannot be used when targeting wasm32-wasip1.
Desired Outcome
I am admittedly unaware of how important the use of reqwest::blocking is for the flagsmith crate, or if it could be updated to use the non-blocking reqwest client - however that would be the best case scenario.
If that is not possible, adding something to the documentation of flagsmith stating that it cannot be built to target wasm would possibly help someone some time in the future if they are attempting to make use of flagsmith while targeting wasm.
- 主要言語
- Rust
- スター
- 8
- フォーク
- 8
- 平均マージ
- 20時間 41分
- マージ済み PR(30日)
- 2
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Flagsmith/flagsmith-rust-client のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Flagsmith/flagsmith-rust-client#58 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
-
Local evaluation silently drops identity overrides on large environments対応中かも @marc-merino が 5 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
Flagsmith/flagsmith-rust-client の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
storytold/photocraft#5260 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
extendr/extendr.github.io#134 ·
-
awaiting-response bug
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
wildcard/caro#1655 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信