-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
127 lines (110 loc) · 4.84 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html>
<head>
<title>avr-rust :: Homepage</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<style>
.avr-rust-links li {
padding-bottom: 10px;
}
</style>
</head>
<body class="text-center">
<h1>The avr-rust Project Homepage</h1>
<p>
An open source project adding AVR microcontroller support to Rust.
</p>
<img src="res/images/avr-rust-logo.png" />
<p>
The avr-rust compiler, once existing as a <a href="https://github.com/avr-rust/rust">fork</a>, has since been merged into upstream Rust as of July 2020. <br />
The standard Rust nightly compiler can be used to compile crates for AVR - no compiling from source required.
</p>
<p>
The recommended way to use avr-rust is via <a href="#installation-rustup">rustup</a> using the official nightly version of the Rust compiler.
</p>
<hr />
<div class="container avr-rust-links">
<div class="row">
<div class="col-md-3">
<div class="card-header">
<h3 class="my-0 font-weight-normal">Links and Resources</h3>
</div>
<ul class="pull-left" style="list-style-type: none">
<li>
<a href="https://github.com/avr-rust">
<img src="res/images/github-logo.png" style="width: 100px">
<strong>GitHub</strong>
</a>
</li>
<li>
<a href="https://gitter.im/avr-rust/Lobby">
<div>
<img src="res/images/gitter-logo.png" style="width: 100px">
<strong>for discussion</strong>
</div>
</a>
</li>
<li style="list-style-type: circle">
<a href="https://github.com/avr-rust/awesome-avr-rust" target="_blank"><strong>list of avr-rust projects</strong></a>
</li>
<li style="list-style-type: circle">
<a href="https://github.com/rust-lang/rust/labels/O-AVR" target="_blank"><strong>compiler issue tracker</strong></a>
</li>
<li style="list-style-type: circle">
<a href="https://github.com/avr-rust/rust/issues" target="_blank"><strong>legacy compiler issue tracker (read only)</strong></a>
</li>
</ul>
</div>
<div class="col-lg-3">
<div class="card-deck mb-3 text-center">
<div class="card mb-4 box-shadow">
<a href="https://book.avr-rust.com/" target="_blank"><button type="button" class="btn btn-lg btn-block btn-default">Open the Guidebook</button></a>
</div>
</div>
</div>
<div class="col-lg-3 pull-right">
<div class="card-deck mb-3 text-center">
<div class="card mb-4 box-shadow">
<div class="card-header">
<h3 class="my-0 font-weight-normal">Installation Instructions</h3>
</div>
<div class="card-body">
<a href="#installation-rustup"><button type="button" class="btn btn-lg btn-block btn-primary">Install with Rustup</button></a>
<hr />
<a href="https://github.com/avr-rust/rust/wiki"><button type="button" class="btn btn-lg btn-block btn-primary">Compile from Source</button></a>
</div>
</div>
</div>
</div>
</div>
</div>
<hr />
<div class="container">
<a href="https://github.com/rust-lang/rust/labels/O-AVR"><button type="button" class="btn btn-lg btn-block btn-primary">Report a compiler issue</button></a>
<p><small>
AVR compiler issues are tracked on the official Rust GitHub repository. After creation, the triage team will tag the issue as <a href="https://github.com/rust-lang/rust/labels/O-AVR" target="_blank">O-AVR</a> for you.
</small></p>
</div>
<div style="height: 700px">
</div>
<hr />
<h2 id="installation-rustup">Installation via Rustup</h2>
<div class="container">
<ol>
<li>Install <a href="https://rustup.rs/" target="_blank">rustup</a></li>
<li>
Install Rust <code>nightly</code> and <code>rust-src</code> via Rustup by typing the following snippet into a terminal.
The <code>rust-src</code> component is required to allow Rust to compile <code>libcore</code> for any chip being targeted.
<pre><code>
$ rustup component add nightly rust-src
</code></pre>
</li>
<li>Done!
</ol>
<hr />
<p>
AVR can be enabled for a crate by running <code>$ rustup override set nightly</code></li> in a terminal inside the root directory of the desired crate.
</p>
</div>
</body>
</html>