Remove tokio `rt-multi-thread` feature from `lambda_runtime` and `lambda_extension`, and possibly `rt` as well
まだ誰も着手していません。
評価
調査の方向性
lambda-runtime/Cargo.toml と lambda-extension/Cargo.toml の tokio 依存関係の宣言を確認し、続いてこれらの crate で rt および rt-multi-thread features によって有効になる API を検索します。いずれかの feature が必要かどうかを確認し、サポートされている runtime のユースケースに対して依存関係の設定が引き続きビルドできることを検証します。不要な features が削除されるか、その必要性が文書化されれば issue は解決です。
索引モデルが issue の本文から書いたものです。
説明
Currently the lambda_runtime crate has an unconditional dependency on tokio withe rt-multi-thread feature enabled:
- https://github.com/awslabs/aws-lambda-rust-runtime/blob/main/lambda-runtime/Cargo.toml#L53
- https://github.com/awslabs/aws-lambda-rust-runtime/blob/main/lambda-extension/Cargo.toml#L35
I'm struggling to see anywhere this dependency is actually used. Meanwhile, given that lambdas only receive one request at a time, it will frequently make sense for callers to only want to use the current thread runtime anyway (ref: #985 ).
I don't think we even need the rt (not multithreaded) feature for lambda-runtime, not seeing anywhere we are spawning or interacting with feature gated APIs. Though, for #983 we would need it, so probably ok to leave in?
Anyway, is there a reason we need to depend on the multithreaded runtime feature? Am I missing something?
- 主要言語
- Rust
- スター
- 3.6k
- フォーク
- 397
- 平均マージ
- 55分
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aws/aws-lambda-rust-runtime のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
aws/aws-lambda-rust-runtime#1099 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 74/100
aws/aws-lambda-rust-runtime#1165 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
aws/aws-lambda-rust-runtime#1161 ·
-
aws/aws-lambda-rust-runtime#1155 · リアクション 1 件 · 担当者 1 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
aws/aws-lambda-rust-runtime#1131 · コメント 1 件 ·
aws/aws-lambda-rust-runtime の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
bug good first issue package: quic
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
-
`dora trace view` sends a non-canonical full UUID as-is, so a valid trace ID shows "No spans found" オープンcli coordinator rust
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
-
area: tasks enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Jason-jo17/Polybench#15 · コメント 1 件 ·