Commit 85c01b2
authored
Update maturin build backend init template (#16449)
## Summary
Upgrades to the latest Rust edition and pyo3 version.
Change initialized module to "Inline Declaration" format.
https://pyo3.rs/v0.27.1/module.html#inline-declaration
The output of `maturin new` is also updating to the new declarative
format
PyO3/maturin@342239a
## Test Plan
Updated the relevant snapshot tests and to confirm ran
`cargo nextest run --all-features --no-fail-fast maturin`
Also used the updated template to generate a library in a different
project with
```
cargo run -- init --lib --build-backend maturin --name try-template ../_OTHER_PROJECT_/backend/try-template
```
and the generated workspace member functioned as expected.1 parent 424e588 commit 85c01b2
2 files changed
+30
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1075 | 1075 | | |
1076 | 1076 | | |
1077 | 1077 | | |
1078 | | - | |
| 1078 | + | |
1079 | 1079 | | |
1080 | 1080 | | |
1081 | 1081 | | |
| |||
1085 | 1085 | | |
1086 | 1086 | | |
1087 | 1087 | | |
1088 | | - | |
| 1088 | + | |
1089 | 1089 | | |
1090 | 1090 | | |
1091 | 1091 | | |
| |||
1174 | 1174 | | |
1175 | 1175 | | |
1176 | 1176 | | |
1177 | | - | |
1178 | | - | |
1179 | | - | |
1180 | | - | |
1181 | | - | |
1182 | | - | |
| 1177 | + | |
1183 | 1178 | | |
1184 | 1179 | | |
1185 | 1180 | | |
1186 | | - | |
1187 | | - | |
1188 | | - | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
1189 | 1188 | | |
1190 | 1189 | | |
1191 | 1190 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3366 | 3366 | | |
3367 | 3367 | | |
3368 | 3368 | | |
3369 | | - | |
3370 | | - | |
3371 | | - | |
3372 | | - | |
3373 | | - | |
3374 | | - | |
| 3369 | + | |
3375 | 3370 | | |
3376 | 3371 | | |
3377 | 3372 | | |
3378 | | - | |
3379 | | - | |
3380 | | - | |
| 3373 | + | |
| 3374 | + | |
| 3375 | + | |
| 3376 | + | |
| 3377 | + | |
| 3378 | + | |
| 3379 | + | |
3381 | 3380 | | |
3382 | 3381 | | |
3383 | 3382 | | |
| |||
3392 | 3391 | | |
3393 | 3392 | | |
3394 | 3393 | | |
3395 | | - | |
| 3394 | + | |
3396 | 3395 | | |
3397 | 3396 | | |
3398 | 3397 | | |
| |||
3402 | 3401 | | |
3403 | 3402 | | |
3404 | 3403 | | |
3405 | | - | |
| 3404 | + | |
3406 | 3405 | | |
3407 | 3406 | | |
3408 | 3407 | | |
| |||
3623 | 3622 | | |
3624 | 3623 | | |
3625 | 3624 | | |
3626 | | - | |
3627 | | - | |
3628 | | - | |
3629 | | - | |
3630 | | - | |
3631 | | - | |
| 3625 | + | |
3632 | 3626 | | |
3633 | 3627 | | |
3634 | 3628 | | |
3635 | | - | |
3636 | | - | |
3637 | | - | |
| 3629 | + | |
| 3630 | + | |
| 3631 | + | |
| 3632 | + | |
| 3633 | + | |
| 3634 | + | |
| 3635 | + | |
3638 | 3636 | | |
3639 | 3637 | | |
3640 | 3638 | | |
| |||
3649 | 3647 | | |
3650 | 3648 | | |
3651 | 3649 | | |
3652 | | - | |
| 3650 | + | |
3653 | 3651 | | |
3654 | 3652 | | |
3655 | 3653 | | |
| |||
3659 | 3657 | | |
3660 | 3658 | | |
3661 | 3659 | | |
3662 | | - | |
| 3660 | + | |
3663 | 3661 | | |
3664 | 3662 | | |
3665 | 3663 | | |
| |||
0 commit comments