Skip to content

Commit 3d0eda9

Browse files
committed
modalité en MAJUSCULE (en)
1 parent bab22f9 commit 3d0eda9

File tree

10 files changed

+71
-69
lines changed

10 files changed

+71
-69
lines changed

src/en/central_traits.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ blocks as well as other security-critical operations.
2424
<div class="reco" id="LANG-DROP" type="Rule" title="Justify `Drop` implementation">
2525

2626
In a Rust secure development, the implementation of the `std::ops::Drop` trait
27-
must be justified and documented.
27+
MUST be justified and documented.
2828

2929
</div>
3030

@@ -45,23 +45,23 @@ resources leading to availability issues.
4545
<div class="reco" id="LANG-DROP-NO-PANIC" type="Rule" title="Do not panic in `Drop` implementation">
4646

4747
In a Rust secure development, the implementation of the `std::ops::Drop` trait
48-
must not panic.
48+
MUST not panic.
4949

5050
</div>
5151

5252
Beside panics, secure-critical drop should be protected.
5353

5454
<div class="reco" id="LANG-DROP-NO-CYCLE" type="Rule" title="Do not allow cycles of reference-counted `Drop`">
5555

56-
A value whose type implements `Drop` must not be embedded directly or indirectly
56+
A value whose type implements `Drop` MUST NOT be embedded directly or indirectly
5757
in a cycle of reference-counted references.
5858

5959
</div>
6060

6161
<div class="reco" id="LANG-DROP-SEC" type="Rule" title="Do not rely only on `Drop` to ensure security">
6262

6363
Ensuring security operations at the end of some treatment (such as key erasure
64-
at the end of a cryptographic encryption) must not rely only on the `Drop`
64+
at the end of a cryptographic encryption) MUST NOT rely only on the `Drop`
6565
trait implementation.
6666

6767
</div>

src/en/devenv.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ $
9292

9393
<div class="reco" id="DENV-STABLE" type="Rule" title="Use a stable compilation toolchain">
9494

95-
Development of a secure application must be done using a fully stable
95+
Development of a secure application MUST be done using a fully stable
9696
toolchain, for limiting potential compiler, runtime or tool bugs.
9797

9898
</div>
@@ -134,7 +134,7 @@ Tier 3 targets are simply not officially supported.
134134
The tier distinction helps developers choose a target that matches their risk tolerance: Tier 1 for production‑grade workloads, Tier 2 for experimental or niche architectures where full support isn’t yet met.
135135

136136
<div class="reco" id="TIERS_TOOLCHAINS" type="Rule" title="Exclusive use of tier 1 of `rustc` for safety-critical software">
137-
Rustc tier 1 targets and certified toolchains must be used for safety-critical systems.
137+
Rustc tier 1 targets and certified toolchains MUST be used for safety-critical systems.
138138
</div>
139139

140140
A comprehensive list of supported targets is available in [@rustc-book].
@@ -179,7 +179,7 @@ the file is overwritten with the latest available version of every crate.
179179

180180
<div class="reco" id="DENV-CARGO-LOCK" type="Rule" title="Track Cargo.lock in version control system">
181181

182-
`Cargo.lock` files must be tracked by version control system.
182+
`Cargo.lock` files MUST be tracked by version control system.
183183

184184
</div>
185185

@@ -212,7 +212,7 @@ using the debug profile that normally enables runtime checks (for example it doe
212212

213213
<div class="reco" id="DENV-CARGO-OPTS" type="Rule" title="Keep default values for critical variables in cargo profiles">
214214

215-
The variables `debug-assertions` and `overflow-checks` must not be overridden
215+
The variables `debug-assertions` and `overflow-checks` MUST NOT be overridden
216216
in development profiles' sections (`[profile.dev]` and `[profile.test]`).
217217

218218
</div>
@@ -229,7 +229,7 @@ to use the Cargo build scripts feature.
229229

230230
<div class="reco" id="DENV-CARGO-ENVVARS" type="Rule" title="Keep default values for compiler environment variables when running cargo">
231231

232-
The environment variables `RUSTC`, `RUSTC_WRAPPER` and `RUSTFLAGS` must not
232+
The environment variables `RUSTC`, `RUSTC_WRAPPER` and `RUSTFLAGS` MUST NOT
233233
be overriden when using Cargo to build the project.
234234

235235
</div>
@@ -257,7 +257,7 @@ at the [@rust-style].
257257

258258
<div class="reco" id="DENV-FORMAT" type="Recommendation" title="Use Rust formatter (rustfmt)">
259259

260-
The tool `rustfmt` should be used to ensure that the codebase respects style
260+
The tool `rustfmt` SHOULD be used to ensure that the codebase respects style
261261
guidelines (as described in `rustfmt.toml` file).
262262

263263
</div>
@@ -317,15 +317,15 @@ category `clippy::nursery` since those hints are still under development.
317317

318318
<div class="reco" id="DENV-LINTER" type="Rule" title="Use linter regularly">
319319

320-
A linter, such as `clippy`, must be used regularly during the development of
320+
A linter, such as `clippy`, MUST be used regularly during the development of
321321
a secure application.
322322

323323
</div>
324324

325325
<div class="reco" id="DENV-AUTOFIX" type="Rule" title="Manually check automatic fixes">
326326

327327
In a secure Rust development, any automatic fix (for instance, provided by
328-
`rustfix` or `clippy`) must be verified by the developer.
328+
`rustfix` or `clippy`) MUST be verified by the developer.
329329

330330
</div>
331331

src/en/errors.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ A `Result` object must be tested, and never ignored.
88
<div class="reco" id="LANG-ERRWRAP" type="Recommendation" title="Implement custom `Error` type wrapping all possible errors">
99

1010
A crate may implement its own `Error` type, wrapping all possible errors.
11-
It must be careful to make this type exception-safe (RFC 1236), and implement
11+
It MUST be careful to make this type exception-safe (RFC 1236), and implement
1212
`Error + Send + Sync + 'static` as well as `Display`.
1313

1414
</div>
1515

1616
<div class="reco" id="LANG-ERRDO" type="Rule" title="Use the `?` operator and do not use the `try!` macro">
1717

18-
The `?` operator must be used to improve readability of code.
19-
The `try!` macro must not be used.
18+
The `?` operator MUST be used to improve readability of code.
19+
The `try!` macro MUST NOT be used.
2020

2121
</div>
2222

@@ -66,14 +66,14 @@ In other cases where the development is not subject to this type of standard:
6666

6767
<div class="reco" id="LANG-NOPANIC" type="Rule" title="Don't use functions that can cause `panic!`">
6868

69-
Functions or instructions that can cause the code to panic at runtime must not
69+
Functions or instructions that can cause the code to panic at runtime MUST NOT
7070
be used.
7171

7272
</div>
7373

7474
<div class="reco" id="LANG-ARRINDEXING" type="Rule" title="Test properly array indexing or use the `get` method">
7575

76-
Array indexing must be properly tested, or the `get` method should be used to
76+
Array indexing must be properly tested, or the `get` method SHOULD be used to
7777
return an `Option`.
7878

7979
</div>
@@ -96,8 +96,10 @@ Stack unwinding from Rust code into foreign code results in undefined behavior.
9696

9797
<div class="reco" id="LANG-FFIPANIC" type="Rule" title="Handle correctly `panic!` in FFI">
9898

99-
Rust code called from FFI must either ensure the function cannot panic, or use
100-
`catch_unwind` or the `std::panic` module to ensure the rust code will not
99+
Rust code called from FFI MUST either:
100+
101+
* ensure the function cannot panic,
102+
* use `catch_unwind` or the `std::panic` module to ensure the rust code will not
101103
abort or return in an unstable state.
102104

103105
</div>

src/en/integer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ or the `overflowing_<op>` and `wrapping_<op>` operations on integers
2424

2525
When assuming that an arithmetic operation can produce an overflow, the
2626
specialized functions `overflowing_<op>`, `wrapping_<op>`, or the
27-
`Wrapping` type must be used.
27+
`Wrapping` type MUST be used.
2828

2929
</div>

src/en/libraries.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,15 @@ Regardless of the method used to retrieve dependencies (*crate* or GIT commit),
4747

4848
<div class="reco" id="LIBS-VETTING-DIRECT" type="Rule" title="Validation of Direct Third-Party Dependencies">
4949

50-
Each direct third-party dependency must be properly validated, and each validation must be tracked.
50+
Each direct third-party dependency MUST be properly validated, and each validation MUST be tracked.
5151

5252
</div>
5353

5454
With regard to transitive dependencies, it is also recommended to validate them individually.
5555

5656
<div class="reco" id="LIBS-VETTING-TRANSITIVE" type="Recommendation" title="Validation of Transitive Third-Party Dependencies">
5757

58-
Each third-party dependency should be properly validated, and each validation should be tracked.
58+
Each third-party dependency SHOULD be properly validated, and each validation SHOULD be tracked.
5959

6060
</div>
6161

@@ -71,8 +71,8 @@ version.
7171

7272
<div class="reco" id="LIBS-OUTDATED" type="Rule" title="Check for outdated dependencies versions (cargo-outdated)">
7373

74-
The `cargo-outdated` tool must be used to check dependencies' status. Then,
75-
each outdated dependency should be updated or the choice of the version must be
74+
The `cargo-outdated` tool MUST be used to check dependencies' status. Then,
75+
each outdated dependency SHOULD be updated or the choice of the version MUST be
7676
justified.
7777

7878
</div>
@@ -86,7 +86,7 @@ reported to the RustSec Advisory Database.
8686

8787
<div class="reco" id="LIBS-AUDIT" type="Rule" title="Check for security vulnerabilities report on dependencies (cargo-audit)">
8888

89-
The `cargo-audit` tool must be used to check for known vulnerabilities in
89+
The `cargo-audit` tool MUST be used to check for known vulnerabilities in
9090
dependencies.
9191

9292
</div>

src/en/naming.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ some particular constructions:
3535

3636
<div class="reco" id="LANG-NAMING" type="Rule" title="Respect naming conventions">
3737

38-
Development of a secure application must follow the naming conventions
38+
Development of a secure application MUST follow the naming conventions
3939
outlined in the [@rust-guidelines].
4040

4141
</div>

src/en/standard.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct SpecialType(u8, PhantomData<*const ()>);
5858
<div class="reco" id="LANG-SYNC-TRAITS" type="Rule" title="Justify `Send` and `Sync` implementation">
5959

6060
In a Rust secure development, the manual implementation of the `Send` and
61-
`Sync` traits should be avoided and, if necessary, must be justified
61+
`Sync` traits SHOULD be avoided and, if necessary, MUST be justified
6262
and documented.
6363

6464
</div>
@@ -160,14 +160,14 @@ of `unsafe` blocks.
160160
<div class="reco" id="LANG-CMP-INV" type="Rule" title="Respect the invariants of standard comparison traits">
161161

162162
In a Rust secure development, the implementation of standard comparison traits
163-
must respect the invariants described in the documentation.
163+
MUST respect the invariants described in the documentation.
164164

165165
</div>
166166

167167
<div class="reco" id="LANG-CMP-DEFAULTS" type="Recommendation" title="Use the default method implementation of standard comparison traits">
168168

169169
In a Rust secure development, the implementation of standard comparison traits
170-
should only define methods with no default implementation, so as to reduce
170+
SHOULD only define methods with no default implementation, so as to reduce
171171
the risk of violating the invariants associated with the traits.
172172

173173
</div>
@@ -237,8 +237,8 @@ than manual ones and make the code shorter and easier to maintain.
237237
<div class="reco" id="LANG-CMP-DERIVE" type="Recommendation" title="Derive comparison traits when possible">
238238

239239
In a secure Rust development, the implementation of standard comparison traits
240-
should be automatically derived with `#[derive(...)]` when structural equality
240+
SHOULD be automatically derived with `#[derive(...)]` when structural equality
241241
and lexicographical comparison is needed. Any manual implementation of
242-
standard comparison traits should be documented and justified.
242+
standard comparison traits SHOULD be documented and justified.
243243

244244
</div>

0 commit comments

Comments
 (0)