|
| 1 | +- Name: RFC Process |
| 2 | +- Start Date: 2025-03-19 |
| 3 | + |
| 4 | +# Summary |
| 5 | + |
| 6 | +The "RFC" (request for comments) process is intended to provide a |
| 7 | +consistent and controlled path for new features to enter the language |
| 8 | +and standard libraries, so that all stakeholders can be confident about |
| 9 | +the direction the language is evolving in. |
| 10 | + |
| 11 | +# Motivation |
| 12 | + |
| 13 | +This is a proposal for a more principled RFC process to make it |
| 14 | +a more integral part of the overall development process, and one that is |
| 15 | +followed consistently to introduce features to QCLI. |
| 16 | + |
| 17 | +# Detailed design |
| 18 | + |
| 19 | +Many changes, including bug fixes and documentation improvements can be |
| 20 | +implemented and reviewed via the normal GitHub pull request workflow. |
| 21 | + |
| 22 | +Some changes though are "substantial", and we ask that these be put |
| 23 | +through a bit of a design process and produce a consensus among the |
| 24 | +community and the maintainers. |
| 25 | + |
| 26 | +## When you need to follow this process |
| 27 | + |
| 28 | +You need to follow this process if you intend to make "substantial" |
| 29 | +changes to QCLI. What constitutes a "substantial" |
| 30 | +change is evolving based on community norms, but may include the following. |
| 31 | + |
| 32 | +- Adding or removing features, including those that are feature-gated. |
| 33 | +- Adding new crates or dependencies |
| 34 | + |
| 35 | +Some changes do not require an RFC: |
| 36 | + |
| 37 | +- Rephrasing, reorganizing, refactoring, or otherwise "changing shape |
| 38 | + does not change meaning". |
| 39 | +- Additions that strictly improve objective, numerical quality |
| 40 | + criteria (warning removal, speedup, better platform coverage, more |
| 41 | + parallelism, trap more errors, etc.) |
| 42 | +- Additions that are invisible to users of QCLI. |
| 43 | + |
| 44 | +If you submit a pull request to implement a new feature without going |
| 45 | +through the RFC process, it may be closed with a polite request to |
| 46 | +submit an RFC first. |
| 47 | + |
| 48 | +## What the process is |
| 49 | + |
| 50 | +In short, to get a major feature added to QCLI, one must first get the |
| 51 | +RFC merged into the RFC repo as a markdown file. At that point the RFC |
| 52 | +is 'active' and may be implemented with the goal of eventual inclusion |
| 53 | +into QCLI. |
| 54 | + |
| 55 | +- Fork this repo. |
| 56 | +- Copy `rfcs/0000-template.md` to `rfcs/0000-my-feature.md` (where |
| 57 | + 'my-feature' is descriptive. don't assign an RFC number yet). |
| 58 | +- Fill in the RFC |
| 59 | +- Submit a pull request. The pull request is the time to get review of |
| 60 | + the design from the larger community. |
| 61 | +- Build consensus and integrate feedback. RFCs that have broad support |
| 62 | + are much more likely to make progress than those that don't receive any |
| 63 | + comments. |
| 64 | + |
| 65 | +Eventually, a maintainer will either accept the RFC by |
| 66 | +merging the pull request, at which point the RFC is 'active', or |
| 67 | +reject it by closing the pull request. |
| 68 | + |
| 69 | +Whomever merges the RFC should do the following: |
| 70 | + |
| 71 | +- Assign an id, using the PR number of the RFC pull request. (If the RFC |
| 72 | + has multiple pull requests associated with it, choose one PR number, |
| 73 | + preferably the minimal one.) |
| 74 | +- Create a corresponding issue in this repo. |
| 75 | +- Commit everything. |
| 76 | + |
| 77 | +Once an RFC becomes active then authors may implement it and submit the |
| 78 | +feature as a pull request to the repo. An active RFC is not a rubber |
| 79 | +stamp, and in particular still does not mean the feature will ultimately |
| 80 | +be merged; it does mean that in principle all the major stakeholders |
| 81 | +have agreed to the feature and are amenable to merging it. |
| 82 | + |
| 83 | +Modifications to active RFC's can be done in followup PR's. An RFC that |
| 84 | +makes it through the entire process to implementation is considered |
| 85 | +'complete'; an RFC that fails |
| 86 | +after becoming active is 'inactive' and moves to the 'inactive' folder. |
| 87 | + |
| 88 | +# Alternatives |
| 89 | + |
| 90 | +Retain the current informal RFC process. The newly proposed RFC process is |
| 91 | +designed to improve over the informal process in the following ways: |
| 92 | + |
| 93 | +- Discourage unactionable or vague RFCs |
| 94 | +- Ensure that all serious RFCs are considered equally |
| 95 | +- Give confidence to those with a stake in Rust's development that they |
| 96 | + understand why new features are being merged |
| 97 | + |
| 98 | +As an alternative, we could adopt an even stricter RFC process than the one proposed here. If desired, we should likely look to Python's [PEP] process for inspiration. |
0 commit comments