Escalate the 1.19 storage-flag deprecations: warn in 1.20, opt-in in 1.21, remove in 1.22
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 38/100
- issue の種類
- リファクタリング
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- rust
- 領域
- api, documentation, release
調査の方向性
まず src/builders/ で Deprecated since 1.19.0 を grep し、18 個の setter とそれらの build_inner 呼び出し元を確認します。次にリリースノートのファイルと CONTRIBUTING.md を調べ、段階的なチェックリストを実装する前に since の値と BinaryQuantizationBuilder::new の方針を確定します。完了とは、選択したリリース段階、テスト、-D warnings CI がカバーされ、移行ガイダンスと 1.22 での削除日が文書化されていることを意味します。
索引モデルが issue の本文から書いたものです。
説明
Background
#288 (1.19 upgrade) supersedes the boolean storage flags with the new Memory enum and PayloadStorageParams:
on_disk→memoryalways_ram→memoryon_disk_payload→payload
Those 18 builder setters shipped in 1.19 carrying only a doc-comment note, not a #[deprecated] attribute. That was deliberate: #[deprecated] is a hard error for any downstream crate that builds with #![deny(warnings)] or -D warnings (as this repo's own CI does), so attaching it in 1.19 would have made the 1.18 → 1.19 bump source-breaking for ordinary builder-based code. Measured at the time by compiling the 1.18 release's own snippet suite against the branch: 18 errors with the attribute, 0 without.
The intent was always to escalate rather than leave them soft forever. This issue tracks that.
Constraint worth stating up front
A library cannot escalate the deprecated lint from warn to deny — that is the consumer's choice. So each rung below increases visibility and then withdraws the escape hatch; none of them turns the warning into an error from our side.
Schedule
| Release | Rung | Consumer impact |
|---|---|---|
| 1.19 ✅ | Doc-comment note pointing at the replacement | none |
| 1.20 | Add #[deprecated(since = "1.19.0", note = "…")] |
warning; error only for -D warnings builds |
| 1.21 | Move the setters behind an opt-in cargo feature, deprecated-api, default off |
hard break, recoverable with one line in Cargo.toml |
| 1.22 | Delete | hard break, no escape hatch |
Removal lands in 1.22. That should be stated in the 1.20 release notes, so the first warning a user sees already names the release that takes the methods away.
Inventory
18 setters, all in src/builders/:
on_disk → memory (12)
VectorParamsBuilder, VectorParamsDiffBuilder, HnswConfigDiffBuilder, SparseIndexConfigBuilder, KeywordIndexParamsBuilder, IntegerIndexParamsBuilder, FloatIndexParamsBuilder, BoolIndexParamsBuilder, GeoIndexParamsBuilder, DatetimeIndexParamsBuilder, UuidIndexParamsBuilder, TextIndexParamsBuilder
always_ram → memory (4)
ScalarQuantizationBuilder, ProductQuantizationBuilder, BinaryQuantizationBuilder, TurboQuantizationBuilder
on_disk_payload → payload (2)
CreateCollectionBuilder, CollectionParamsDiffBuilder
Each already carries a /// Deprecated since 1.19.0, use […](Self::…) instead. note, so the 1.20 change is mechanical — the sites are greppable with grep -rn "Deprecated since 1.19.0" src/builders/.
Loose end: BinaryQuantizationBuilder::new(always_ram: bool)
Its only parameter is the superseded flag. 1.19 added a Default impl so BinaryQuantizationBuilder::default().memory(..) works without it, but new itself still needs a decision by 1.22 — drop it, or change it to take no arguments (breaking either way).
Out of scope: generated proto fields
The 1.16-era deprecations (Vector::data / indices / vectors_count, same on VectorOutput) live in generated code and carry prost's #[deprecated] because the proto marks them [deprecated = true]. The client cannot retire those independently — that has to come from the server proto. Only the hand-written surface is ours to schedule.
Open question
since value. These became deprecated in 1.19 but the attribute lands in 1.20. since = "1.19.0" is semantically accurate and is what the table above assumes; since = "1.20.0" would instead match when users first see a warning. Minor either way.
Checklists
1.20
-
#[deprecated(since, note)]on all 18 setters -
#[allow(deprecated)]on the correspondingbuild_innerfns (they still populate the old proto fields) — already present from #288 - Repo's own usages migrated so CI stays green under
-D warnings - Migration table in the release notes, naming 1.22 as the removal release
-
CONTRIBUTING.mdrecords the ladder, so future upgrades follow it by default instead of re-deciding each time
1.21
-
deprecated-apifeature added, default off, gating the 18 setters - Release notes repeat the 1.22 removal date
1.22
- Setters deleted, feature removed
-
BinaryQuantizationBuilder::newresolved
- 主要言語
- Rust
- スター
- 425
- フォーク
- 89
- 平均マージ
- 2時間 48分
- マージ済み PR(30日)
- 3
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
qdrant/rust-client のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
qdrant/rust-client#320 ·
-
upsert_points deep-clones the whole request on every call, not only on retry再び着手できるかも @NullSense が 7 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
qdrant/rust-client#316 · コメント 3 件 ·
-
Option to set TLS domain name and :authority origin (client behind a tunnel/proxy)再び着手できるかも @inamdarmihir が 36 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
qdrant/rust-client#306 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
qdrant/rust-client#272 · リアクション 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
qdrant/rust-client#267 · コメント 1 件 · リアクション 2 件 ·
qdrant/rust-client の issue をすべて見る
似ている issue
-
app bug session
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
marketing
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
macOS autosubmit enable passes unsupported --wait to launchctl bootout対応中かも @iqdoctor が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
junhoyeo/tokscale#1713 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信