Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

versioned: Adjust action arguments

クローズ
#1,310 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Techassi がすでに取り組んでいます。

2026年10月23日 から。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
52/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust

調査の方向性

Start by reading the crate that parses and applies the versioned attribute arguments, then check its tests and examples for since and from_ usage. The issue proposes renaming these to in and prev_ or previous_, but leaves the preferred prefix open. Done means the argument names are updated consistently and the proposed prev_docs use for deprecated actions is supported.

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

説明

Current state

Currently, all actions use the since argument to specify since which version a particular change was introduced. Additionally, all arguments describing previous facts, like the item name, the item type, and the item docs use the from_ prefix.

struct Foo {
    #[versioned(changed(
        since = "...",
        from_name = "...",
        from_type = "...",
        from_docs = "..."
    ))]
    bar: bool,
}

Initially, this made sense to use both these terms, because e.g. a field's name changed from foo to bar. As such, the argument name from_name makes sense. We recently noticed that both terms are not ideal, especially the combination #[versioned(changed(since = "...", from_docs = "..."))].

Suggestion

I suggest renaming these arguments in the following fashion:

  • since -> in. This maps well for all actions and in which version a particular change happened:
    • "added in ..."
    • "changed in ..."
    • "deprecated in ..."
  • from_ -> prev_ or previous_. This better expresses what the fact's value was previously:
    • "the previous name was ..."
    • "the previous type was ..."
    • "the previous docs were ..."
struct Foo {
    #[versioned(changed(
        in = "...",
        prev_name = "...",
        prev_type = "...",
        prev_docs = "..."
    ))]
    bar: bool,
}

This change also enables us to add support for from_docs/prev_docs to deprecated action for example. prev_docs just makes way more sense in this context.

主要言語
Rust
スター
169
フォーク
20
平均マージ
1日 6時間
マージ済み PR(30日)
22

環境構築

はじめの一歩

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

stackabletech/operator-rs のほかの issue

stackabletech/operator-rs の issue をすべて見る

似ている issue

Rust の issue をもっと見る

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

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