@@ -21,13 +21,21 @@ with ESP32 device. It is enough to write only web interface, without the need of
21
21
(however Websockets work perfectly with Android and iOS native apps, Flutter apps etc).
22
22
23
23
The fact that it is based on Tokio and Rust opens all the existing ecosystem of Rust libraries for you.
24
- You can write tests and debug your app on desktop, before moving to mobile device.
24
+ You can write tests and debug your app on desktop, before moving to mobile device.
25
25
26
- ## Install
26
+ This configuration works on macOS and Linux, it will require minor changes to work on Windows.
27
27
28
- Rust-ESP installation flow is described here, you need to follow all the required steps there:
28
+ ## Setup build environment
29
+
30
+ Install Rust on ESP build environment
29
31
https://github.com/esp-rs/rust-build
30
32
33
+ Install latest NodeJS LTS
34
+ https://nodejs.org/en/download
35
+
36
+ Install Yarn
37
+ https://yarnpkg.com/getting-started/install
38
+
31
39
## Prepare
32
40
33
41
Copy ` .env.default ` to ` .env ` and change default values to the actual ones.
@@ -38,10 +46,6 @@ To prepare the build environment, execute the following command each time you op
38
46
39
47
## Build
40
48
41
- On the first build, and also on each client change, run
42
-
43
- ` cd client && yarn && yarn build `
44
-
45
49
To build the project, use the following command:
46
50
47
51
` cargo build `
@@ -52,9 +56,9 @@ To run the project, use the following command:
52
56
53
57
## Reference links
54
58
55
- * Rust-ESP installation process: https://github.com/esp-rs/rust-build
56
- * AXUM web framework: https://github.com/tokio-rs/axum
59
+ * Rust-ESP installation process https://github.com/esp-rs/rust-build
60
+ * Tokio.rs asynchronous runtime https://tokio.rs/tokio/tutorial
61
+ * Axum web application framework https://github.com/tokio-rs/axum
57
62
* Seeed Studio XIAO ESP32S3 https://wiki.seeedstudio.com/xiao_esp32s3_getting_started/
58
- * Tokio.rs asynchronous runtime documentation https://tokio.rs/tokio/tutorial
59
63
* Awesome ESP Rust https://github.com/esp-rs/awesome-esp-rust
60
64
* esp32-s3-rust-axum-example (used as a prototype for this project) https://github.com/aedm/esp32-s3-rust-axum-example/
0 commit comments