about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSeiichi Uchida <seuchida@gmail.com>2019-05-09 13:37:34 +0900
committerGitHub <noreply@github.com>2019-05-09 13:37:34 +0900
commita2264cb5497e7a35c781ec726954cde5dfd76efc (patch)
tree53a965ec1d1a68965f05ed5af9aa6cffb8c64cf0
parentda1e3c9635900eccd42262dd138481137b60c01d (diff)
parentc7d6dc49638bff3a0e1d1543f76afe1e697bd55c (diff)
Merge pull request #3486 from scampi/issue-3197
add document describing rustfmt's stabilisation process
-rw-r--r--Processes.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/Processes.md b/Processes.md
new file mode 100644
index 00000000000..717ce4e5c5a
--- /dev/null
+++ b/Processes.md
@@ -0,0 +1,22 @@
+This document outlines processes regarding management of rustfmt.
+
+# Stabilising an Option
+
+In this Section, we describe how to stabilise an option of the rustfmt's configration.
+
+## Conditions
+
+- The design and implementation of the option are sound and clean.
+- The option is well tested, both in unit tests and, optimally, in real usage.
+- There is no open bug about the option that prevents its use.
+
+## Steps
+
+Open a pull request that closes the tracking issue. The tracking issue is listed beside the option in `Configurations.md`.
+
+- Update the `Config` enum marking the option as stable.
+- Update the the `Configuration.md` file marking the option as stable.
+
+## After the stabilisation
+
+The option should remain backward-compatible with previous parameters of the option. For instance, if the option is an enum `enum Foo { Alice, Bob }` and the variant `Foo::Bob` is removed/renamed, existing use of the `Foo::Bob` variant should map to the new logic. Breaking changes can be applied under the condition they are version-gated.