Skip to content

Commit 5d931e1

Browse files
committed
README for esp-rs/rust
1 parent 77b2ee1 commit 5d931e1

File tree

1 file changed

+31
-17
lines changed

1 file changed

+31
-17
lines changed

README.md

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
# The Rust Programming Language
1+
# The Rust Programming Language for Espressif chips
2+
3+
This fork enables projects to be built for the Xtensa-based ESP32, ESP32-SXX and ESP8266 using [Espressif's llvm fork](https://github.com/espressif/llvm-project). (RiscV chips like ESP32-CXX are already supported in stock Rust.)
4+
5+
Moreover, this fork enables Rust STD support (networking, threads, and filesystem) for all chips in the ESP32 family (Xtensa and RiscV), by optionally linking with the ESP-IDF framework.
6+
7+
The [esp-rs](https://github.com/esp-rs) organization has been formed to develop runtime, pac and hal crates for the Espressif chips (bare-metal as well as ESP-IDF based).
8+
9+
Join in on the discussion: https://matrix.to/#/#esp-rs:matrix.org!
10+
11+
## Installation
12+
13+
Please see the most up to date instructions in the [esp rust book](https://esp-rs.github.io/).
14+
15+
---
216

317
This is the main source code repository for [Rust]. It contains the compiler,
418
standard library, and documentation.
@@ -54,7 +68,7 @@ by running it with the `--help` flag or reading the [rustc dev guide][rustcguide
5468
* `g++` 5.1 or later or `clang++` 3.5 or later
5569
* `python` 3 or 2.7
5670
* GNU `make` 3.81 or later
57-
* `cmake` 3.13.4 or later
71+
* `cmake` 3.4.3 or later
5872
* `ninja`
5973
* `curl`
6074
* `git`
@@ -64,8 +78,8 @@ by running it with the `--help` flag or reading the [rustc dev guide][rustcguide
6478
2. Clone the [source] with `git`:
6579

6680
```sh
67-
git clone https://github.com/rust-lang/rust.git
68-
cd rust
81+
$ git clone https://github.com/rust-lang/rust.git
82+
$ cd rust
6983
```
7084

7185
[source]: https://github.com/rust-lang/rust
@@ -77,7 +91,7 @@ by running it with the `--help` flag or reading the [rustc dev guide][rustcguide
7791
Copy the default `config.toml.example` to `config.toml` to get started.
7892

7993
```sh
80-
cp config.toml.example config.toml
94+
$ cp config.toml.example config.toml
8195
```
8296

8397
If you plan to use `x.py install` to create an installation, it is recommended
@@ -88,7 +102,7 @@ by running it with the `--help` flag or reading the [rustc dev guide][rustcguide
88102
4. Build and install:
89103

90104
```sh
91-
./x.py build && ./x.py install
105+
$ ./x.py build && ./x.py install
92106
```
93107

94108
When complete, `./x.py install` will place several programs into
@@ -113,7 +127,7 @@ build.
113127
114128
[MSYS2][msys2] can be used to easily build Rust on Windows:
115129
116-
[msys2]: https://www.msys2.org/
130+
[msys2]: https://msys2.github.io/
117131
118132
1. Grab the latest [MSYS2 installer][msys2] and go through the installer.
119133
@@ -126,15 +140,15 @@ build.
126140
127141
```sh
128142
# Update package mirrors (may be needed if you have a fresh install of MSYS2)
129-
pacman -Sy pacman-mirrors
143+
$ pacman -Sy pacman-mirrors
130144
131145
# Install build tools needed for Rust. If you're building a 32-bit compiler,
132146
# then replace "x86_64" below with "i686". If you've already got git, python,
133147
# or CMake installed and in PATH you can remove them from this list. Note
134148
# that it is important that you do **not** use the 'python2', 'cmake' and 'ninja'
135149
# packages from the 'msys2' subsystem. The build has historically been known
136150
# to fail with these packages.
137-
pacman -S git \
151+
$ pacman -S git \
138152
make \
139153
diffutils \
140154
tar \
@@ -147,7 +161,7 @@ build.
147161
4. Navigate to Rust's source code (or clone it), then build it:
148162
149163
```sh
150-
./x.py build && ./x.py install
164+
$ ./x.py build && ./x.py install
151165
```
152166
153167
#### MSVC
@@ -165,7 +179,7 @@ With these dependencies installed, you can build the compiler in a `cmd.exe`
165179
shell with:
166180
167181
```sh
168-
python x.py build
182+
> python x.py build
169183
```
170184
171185
Currently, building Rust only works with some known versions of Visual Studio. If
@@ -174,8 +188,8 @@ you may need to force rustbuild to use an older version. This can be done
174188
by manually calling the appropriate vcvars file before running the bootstrap.
175189
176190
```batch
177-
CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
178-
python x.py build
191+
> CALL "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
192+
> python x.py build
179193
```
180194
181195
#### Specifying an ABI
@@ -201,8 +215,8 @@ While it's not the recommended build system, this project also provides a
201215
configure script and makefile (the latter of which just invokes `x.py`).
202216
203217
```sh
204-
./configure
205-
make && sudo make install
218+
$ ./configure
219+
$ make && sudo make install
206220
```
207221
208222
When using the configure script, the generated `config.mk` file may override the
@@ -214,7 +228,7 @@ When using the configure script, the generated `config.mk` file may override the
214228
If you’d like to build the documentation, it’s almost the same:
215229
216230
```sh
217-
./x.py doc
231+
$ ./x.py doc
218232
```
219233
220234
The generated documentation will appear under `doc` in the `build` directory for
@@ -285,4 +299,4 @@ Third-party logos may be subject to third-party copyrights and trademarks. See
285299
286300
[rust-foundation]: https://foundation.rust-lang.org/
287301
[media-guide]: https://www.rust-lang.org/policies/media-guide
288-
[policies-licenses]: https://www.rust-lang.org/policies/licenses
302+
[policies-licenses]: https://www.rust-lang.org/policies/licenses

0 commit comments

Comments
 (0)