diff options
| author | Dario Nieuwenhuis <[email protected]> | 2023-12-01 18:10:27 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-12-01 18:10:27 +0100 |
| commit | ce4dd67f3b4fb7d622a3d77b8a0a520dddd6fecf (patch) | |
| tree | 1274268a35c568c63e80484f97dba237a2948051 /docs | |
| parent | 929fd551de49c7bcddadcbbcf0127a7467c72773 (diff) | |
| parent | 33cfef871d848c95af448c311c4c82aa0c19cece (diff) | |
Merge pull request #2236 from tshepang/patch-2
no_std and no_main can be used on stable
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/modules/ROOT/pages/basic_application.adoc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/docs/modules/ROOT/pages/basic_application.adoc b/docs/modules/ROOT/pages/basic_application.adoc index 73774c71b..6d0d04383 100644 --- a/docs/modules/ROOT/pages/basic_application.adoc +++ b/docs/modules/ROOT/pages/basic_application.adoc | |||
| @@ -6,13 +6,22 @@ So you've got one of the xref:examples.adoc[examples] running, but what now? Let | |||
| 6 | 6 | ||
| 7 | The full example can be found link:https://github.com/embassy-rs/embassy/tree/master/docs/modules/ROOT/examples/basic[here]. | 7 | The full example can be found link:https://github.com/embassy-rs/embassy/tree/master/docs/modules/ROOT/examples/basic[here]. |
| 8 | 8 | ||
| 9 | === Bare metal | ||
| 10 | |||
| 11 | The first thing you'll notice is a few declarations, two of which indicate that Embassy is suitable for bare metal development: | ||
| 12 | |||
| 13 | [source,rust] | ||
| 14 | ---- | ||
| 15 | include::example$basic/src/main.rs[lines="1..2"] | ||
| 16 | ---- | ||
| 17 | |||
| 9 | === Rust Nightly | 18 | === Rust Nightly |
| 10 | 19 | ||
| 11 | The first thing you'll notice is a few declarations stating that Embassy requires some nightly features: | 20 | The next declaration is a Rust Unstable feature, which means that Embassy requires Rust Nightly: |
| 12 | 21 | ||
| 13 | [source,rust] | 22 | [source,rust] |
| 14 | ---- | 23 | ---- |
| 15 | include::example$basic/src/main.rs[lines="1..3"] | 24 | include::example$basic/src/main.rs[lines="3"] |
| 16 | ---- | 25 | ---- |
| 17 | 26 | ||
| 18 | === Dealing with errors | 27 | === Dealing with errors |
