Skip to content

Commit 83e138a

Browse files
committed
Update the top-level README
1 parent 3f345f7 commit 83e138a

File tree

1 file changed

+39
-40
lines changed

1 file changed

+39
-40
lines changed

README.md

Lines changed: 39 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,33 @@
88

99
These HALs are `no_std`; if you are looking for `std` support, please use [esp-idf-hal] instead.
1010

11-
This project is still in the early stages of development, and as such there should be no expectation of API stability. A significant number of peripherals currently have drivers implemented (you can see a full list [here]) but have varying levels of functionality. For most basic tasks, this should be usable already.
11+
If you have any questions, comments, or concerns, please [open an issue], [start a new discussion], or join us on [Matrix]. For additional information regarding any of the crates in this repository, please refer to the relevant crate's README.
1212

13-
If you have any questions, comments, or concerns, please [open an issue], [start a new discussion], or join us on [Matrix]. For additional information regarding any of the crates in this repository, please refer to the crate's README.
13+
> **Note**
14+
>
15+
> This project is still in the relatively early stages of development, and as such there should be no expectation of API stability. A significant number of peripherals currently have drivers implemented but have varying levels of functionality. For most basic tasks, this should be usable already, however some more advanced or uncommon features may not yet be implemented.
16+
17+
[esp-idf-hal]: https://github.com/esp-rs/esp-idf-hal
18+
[open an issue]: https://github.com/esp-rs/esp-hal/issues/new
19+
[start a new discussion]: https://github.com/esp-rs/esp-hal/discussions/new
20+
[matrix]: https://matrix.to/#/#esp-rs:matrix.org
21+
22+
## Getting Started
23+
24+
For information relating to the development of Rust applications on ESP devices, please first read [The Rust on ESP Book].
25+
26+
For information about the HAL and how to use it in your own projects, please refer to the documentation on [crates.io] for the relevant chip.
27+
28+
[The Rust on ESP Book]: (https://esp-rs.github.io/book/)
29+
[crates.io]: https://crates.io
30+
31+
## Resources
32+
33+
- [The Rust Programming Language](https://doc.rust-lang.org/book/)
34+
- [The Embedded Rust Book](https://docs.rust-embedded.org/book/index.html)
35+
- [The Rust on ESP Book](https://esp-rs.github.io/book/)
36+
37+
## HAL Crates
1438

1539
| Crate | Target | Technical Reference Manual |
1640
| :--------------: | :----------------------------: | :------------------------: |
@@ -23,11 +47,6 @@ If you have any questions, comments, or concerns, please [open an issue], [start
2347
| [esp32s2-hal] | `xtensa-esp32s2-none-elf` | [ESP32-S2] |
2448
| [esp32s3-hal] | `xtensa-esp32s3-none-elf` | [ESP32-S3] |
2549

26-
[here]: https://github.com/esp-rs/esp-hal/issues/19
27-
[esp-idf-hal]: https://github.com/esp-rs/esp-idf-hal
28-
[open an issue]: https://github.com/esp-rs/esp-hal/issues/new
29-
[start a new discussion]: https://github.com/esp-rs/esp-hal/discussions/new
30-
[matrix]: https://matrix.to/#/#esp-rs:matrix.org
3150
[esp32-hal]: https://github.com/esp-rs/esp-hal/tree/main/esp32-hal
3251
[esp32c2-hal]: https://github.com/esp-rs/esp-hal/tree/main/esp32c2-hal
3352
[esp32c3-hal]: https://github.com/esp-rs/esp-hal/tree/main/esp32c3-hal
@@ -44,26 +63,6 @@ If you have any questions, comments, or concerns, please [open an issue], [start
4463
[esp32-s2]: https://www.espressif.com/sites/default/files/documentation/esp32-s2_technical_reference_manual_en.pdf
4564
[esp32-s3]: https://www.espressif.com/sites/default/files/documentation/esp32-s3_technical_reference_manual_en.pdf
4665

47-
## Quickstart
48-
49-
If you have not already, we strongly encourage you to read [The Rust on ESP Book] prior to starting.
50-
51-
We recommend using [cargo-generate] and [esp-template] in order to generate a new project. This will allow you to generate a minimal project skeleton with all the required dependencies and configuration ready to go.
52-
53-
You can install [cargo-generate] and generate a new project by running:
54-
55-
```bash
56-
$ cargo install cargo-generate
57-
$ cargo generate -a esp-rs/esp-template
58-
```
59-
60-
For more information on using this template, please refer to [its README].
61-
62-
[the rust on esp book]: https://esp-rs.github.io/book/
63-
[cargo-generate]: https://github.com/cargo-generate/cargo-generate
64-
[esp-template]: https://github.com/esp-rs/esp-template
65-
[its readme]: https://github.com/esp-rs/esp-template/blob/main/README.md
66-
6766
## Ancillary Crates
6867

6968
There are a number of other crates within the [esp-rs organization] which can be used in conjunction with `esp-hal`:
@@ -86,6 +85,18 @@ There are a number of other crates within the [esp-rs organization] which can be
8685
[embedded-storage]: https://github.com/rust-embedded-community/embedded-storage
8786
[esp-wifi]: https://github.com/esp-rs/esp-wifi
8887

88+
## Git Hooks
89+
90+
We provide a simple `pre-commit` hook to verify the formatting of each package prior to committing changes. We _strongly_ encourage use of this git hook.
91+
92+
The hook can be enabled by copying it in to the `.git/hooks/` directory:
93+
94+
```bash
95+
cp pre-commit .git/hooks/pre-commit
96+
```
97+
98+
When using this hook, you can choose to ignore its failure on a per-commit basis by committing with the `--no-verify` flag; however, you will need to be sure that all packages are formatted when submitting a pull request.
99+
89100
## MSRV
90101

91102
The **M**inimum **S**upported **R**ust **V**ersions are:
@@ -95,25 +106,13 @@ The **M**inimum **S**upported **R**ust **V**ersions are:
95106
- `1.65.0` for Xtensa devices (**ESP32**, **ESP32-S2**, **ESP32-S3**)
96107
- `1.67.0` for all `async` examples (`embassy_hello_world`, `embassy_wait`, etc.)
97108

98-
Note that targeting the Xtensa ISA currently requires the use of the [esp-rs/rust] compiler fork. Our recommend method of installation is [espup].
109+
It should be noted that targeting the Xtensa ISA currently requires the use of the [esp-rs/rust] compiler fork. Our recommend method of installation is [espup].
99110

100111
RISC-V is officially supported by the official Rust compiler.
101112

102113
[esp-rs/rust]: https://github.com/esp-rs/rust
103114
[espup]: https://github.com/esp-rs/espup
104115

105-
## Git Hooks
106-
107-
We provide a simple `pre-commit` hook to verify the formatting of each package prior to committing changes. We strongly encourage use of this git hook.
108-
109-
The hook can be enabled by placing it in the `.git/hooks/` directory:
110-
111-
```bash
112-
$ cp pre-commit .git/hooks/pre-commit
113-
```
114-
115-
When using this hook, you can choose to ignore its failure on a per-commit basis by committing with the `--no-verify` flag; however, you will need to be sure that all packages are formatted when submitting a pull request.
116-
117116
## License
118117

119118
Licensed under either of:

0 commit comments

Comments
 (0)