@@ -78,7 +78,6 @@ Each new feature described below should explain how to use it.
78
78
* [ build-std-features] ( #build-std-features ) — Sets features to use with the standard library.
79
79
* [ binary-dep-depinfo] ( #binary-dep-depinfo ) — Causes the dep-info file to track binary dependencies.
80
80
* [ panic-abort-tests] ( #panic-abort-tests ) — Allows running tests with the "abort" panic strategy.
81
- * [ crate-type] ( #crate-type ) — Supports passing crate types to the compiler.
82
81
* [ keep-going] ( #keep-going ) — Build as much as possible rather than aborting on the first error.
83
82
* rustdoc
84
83
* [ ` doctest-in-workspace ` ] ( #doctest-in-workspace ) — Fixes workspace-relative paths when running doctests.
@@ -1231,6 +1230,35 @@ with a warning.
1231
1230
If you want to integrate with Cargo features, use ` -Zcheck-cfg=features ` instead of
1232
1231
trying to do it manually with this option.
1233
1232
1233
+ ### codegen-backend
1234
+
1235
+ The ` codegen-backend ` feature makes it possible to select the codegen backend used by rustc using a profile.
1236
+
1237
+ Example:
1238
+
1239
+ ``` toml
1240
+ [package ]
1241
+ name = " foo"
1242
+
1243
+ [dependencies ]
1244
+ serde = " 1.0.117"
1245
+
1246
+ [profile .dev .package .foo ]
1247
+ codegen-backend = " cranelift"
1248
+ ```
1249
+
1250
+ To set this in a profile in Cargo configuration, you need to use either
1251
+ ` -Z codegen-backend ` or ` [unstable] ` table to enable it. For example,
1252
+
1253
+ ``` toml
1254
+ # .cargo/config.toml
1255
+ [unstable ]
1256
+ codegen-backend = true
1257
+
1258
+ [profile .dev .package .foo ]
1259
+ codegen-backend = " cranelift"
1260
+ ```
1261
+
1234
1262
## Stabilized and removed features
1235
1263
1236
1264
### Compile progress
@@ -1349,36 +1377,6 @@ The `rust-version` field in `Cargo.toml` has been stabilized in the 1.56 release
1349
1377
See the [ rust-version field] ( manifest.html#the-rust-version-field ) for more
1350
1378
information on using the ` rust-version ` field and the ` --ignore-rust-version ` option.
1351
1379
1352
- ### codegen-backend
1353
-
1354
- The ` codegen-backend ` feature makes it possible to select the codegen backend used by rustc using a
1355
- profile.
1356
-
1357
- Example:
1358
-
1359
- ``` toml
1360
- [package ]
1361
- name = " foo"
1362
-
1363
- [dependencies ]
1364
- serde = " 1.0.117"
1365
-
1366
- [profile .dev .package .foo ]
1367
- codegen-backend = " cranelift"
1368
- ```
1369
-
1370
- To set this in a profile in Cargo configuration, you need to use either
1371
- ` -Z codegen-backend ` or ` [unstable] ` table to enable it. For example,
1372
-
1373
- ``` toml
1374
- # .cargo/config.toml
1375
- [unstable ]
1376
- codegen-backend = true
1377
-
1378
- [profile .dev .package .foo ]
1379
- codegen-backend = " cranelift"
1380
- ```
1381
-
1382
1380
### patch-in-config
1383
1381
1384
1382
The ` -Z patch-in-config ` flag, and the corresponding support for
0 commit comments