From 6add026df04434bd3e6d2b005c27f788732cb2e0 Mon Sep 17 00:00:00 2001 From: Fonata Date: Wed, 25 Dec 2019 20:13:57 +0100 Subject: [PATCH] Explain the syntax of stability flags --- doc/04-schema.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/04-schema.md b/doc/04-schema.md index 7c66813af..6e273c1a0 100644 --- a/doc/04-schema.md +++ b/doc/04-schema.md @@ -276,10 +276,11 @@ Example: All links are optional fields. -`require` and `require-dev` additionally support stability flags ([root-only](04-schema.md#root-package)). +`require` and `require-dev` additionally support _stability flags_ ([root-only](04-schema.md#root-package)). +They take the form "_constraint_@_stability flag_". These allow you to further restrict or expand the stability of a package beyond the scope of the [minimum-stability](#minimum-stability) setting. You can apply -them to a constraint, or apply them to an empty constraint if you want to +them to a constraint, or apply them to an empty _constraint_ if you want to allow unstable packages of a dependency for example. Example: