Skip to content

Commit 7836815

Browse files
author
dcz
committed
Readme: Build instructions without rustup
1 parent e8f4c4b commit 7836815

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,24 @@ To build all the provided examples run
5656
cargo build --examples --release --all-features
5757
```
5858

59+
#### Building everything including core
60+
61+
An option for using only distribution packaging, no rustup, is to let the compiler pretend it's unstable and build the `core` crate.
62+
63+
Install rust and its sources.
64+
65+
Fedora:
66+
67+
```
68+
sudo dnf install rust rust-src
69+
```
70+
71+
Use the following command to build instead:
72+
73+
```
74+
RUSTC_BOOTSTRAP=1 cargo build -Z build-std --examples --release --all-features
75+
```
76+
5977
### Using dfu-util for Flashing
6078

6179
The GD32VF103 contains a [DFU](https://www.usb.org/sites/default/files/DFU_1.1.pdf)

0 commit comments

Comments
 (0)