diff options
| author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-12-25 15:24:00 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-25 15:24:00 +0000 |
| commit | 152955c18a1d81536a7e39bdda2dbcea1fe6948f (patch) | |
| tree | a3ff44054b78ab5861b0731c0e5d5fc0f2282f0e /book/ru/src/migration/migration_v5.md | |
| parent | bc883e393db2e07f3519993abae0248e3584cbef (diff) | |
| parent | 2d8252f3e5600a6246ae64d2c0be412087c8ef8b (diff) | |
Merge #567
567: Promote v1.0 in docs r=korken89 a=AfoHT
Co-authored-by: Henrik Tjäder <henrik@grepit.se>
Diffstat (limited to 'book/ru/src/migration/migration_v5.md')
| -rw-r--r-- | book/ru/src/migration/migration_v5.md | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/book/ru/src/migration/migration_v5.md b/book/ru/src/migration/migration_v5.md index 870c20f..84bd9fb 100644 --- a/book/ru/src/migration/migration_v5.md +++ b/book/ru/src/migration/migration_v5.md @@ -1,6 +1,6 @@ -# Миграция с v0.5.x на v0.6.0 +# Миграция с v0.5.x на v1.0.0 -Этот раздел описывает как обновиться с версии v0.5.x на v0.6.0 фреймворка RTIC. +Этот раздел описывает как обновиться с версии v0.5.x на v1.0.0 фреймворка RTIC. ## `Cargo.toml` - увеличьте версию @@ -112,7 +112,7 @@ struct Resources { } ``` -Начиная с RTIC v0.6.0 структуры ресурсов аннотируются подобно +Начиная с RTIC v1.0.0 структуры ресурсов аннотируются подобно `#[task]`, `#[init]`, `#[idle]`: аттрибутами `#[shared]` и `#[local]` ``` rust @@ -131,7 +131,7 @@ struct MyLocalResources { ## `shared` и `local` аргументы в `#[task]`'ах -В v0.6.0 ресурсы разделены на `shared` ресурсы и `local` ресурсы. +В v1.0.0 ресурсы разделены на `shared` ресурсы и `local` ресурсы. `#[task]`, `#[init]` и `#[idle]` больше не имеют аргумента `resources`; они должны использовать аргументы `shared` и `local`. @@ -150,7 +150,7 @@ fn a(_: a::Context) {} fn b(_: b::Context) {} ``` -В v0.6.0: +В v1.0.0: ``` rust #[shared] @@ -229,7 +229,7 @@ fn b(cx: b::Context) { } ``` -v0.6 код: +v1.0 код: ``` rust #[shared] @@ -264,7 +264,7 @@ fn init(_: init::Context) { } ``` -v0.6.0 code: +v1.0.0 code: ``` rust #[init(local = [ |
