1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-24 01:36:44 +02:00
Commit Graph

1283 Commits

Author SHA1 Message Date
005d6a5ed4 Mention micro:bit on welcome page. 2023-03-20 14:26:57 +00:00
0fa73286b9 Add raw MMIO example. 2023-03-20 14:26:57 +00:00
2545e40d21 Note use of embedded_hal trait. 2023-03-20 14:26:57 +00:00
16b8efefa2 Add config for cargo-embed. 2023-03-20 14:26:57 +00:00
2c8eb761c4 Use micro:bit v2 for PAC and HAL examples too. 2023-03-20 14:26:57 +00:00
5ad0a593f8 Add board support crate example. 2023-03-20 14:26:57 +00:00
b852b6195f xgettext doesn't like formatting in SUMMARY. 2023-03-20 14:26:57 +00:00
af0d97d1a7 Fix mdbook test. 2023-03-20 14:26:57 +00:00
354834c711 Template, hint and extension for compass exercise. 2023-03-20 14:26:57 +00:00
062129546a Temperature logger is no more. 2023-03-20 14:26:57 +00:00
95099e29a6 Mention tools to install. 2023-03-20 14:26:57 +00:00
deff63f9a5 cargo-embed config 2023-03-20 14:26:57 +00:00
78d1fc2836 Fill in solution for compass exercise. 2023-03-20 14:26:57 +00:00
fb2a81186b Initialise I2C bus. 2023-03-20 14:26:57 +00:00
026cdca2b7 Use micro:bit v2 for temperature logger example. 2023-03-20 14:26:57 +00:00
b8b387c504 Mention board support crates and other tools. 2023-03-20 14:26:57 +00:00
b02af7be50 Keep alloc-example out of workspace. 2023-03-20 14:26:57 +00:00
e21a83d5e8 Start or temperature logger exercise. 2023-03-20 14:26:57 +00:00
5e0f4da4b3 Mention some other projects. 2023-03-20 14:26:57 +00:00
baf81ee795 Note some supported devices. 2023-03-20 14:26:57 +00:00
ac046661bf Exclude imports and other boilerplate from page.
It was getting too long.
2023-03-20 14:26:57 +00:00
100341aa9f Add page about type-state pattern. 2023-03-20 14:26:57 +00:00
65749777c9 Write about embedded-hal 2023-03-20 14:26:57 +00:00
1d92abb1a7 Note lack of main function. 2023-03-20 14:26:57 +00:00
120ef6331f Write welcome page for bare-metal Rust. 2023-03-20 14:26:57 +00:00
d507096d31 Mention svd2rust. 2023-03-20 14:26:57 +00:00
f8f6922b0c Add pages with PAC and HAL examples. 2023-03-20 14:26:57 +00:00
780afddc11 Add example to turn on an LED. 2023-03-20 14:26:57 +00:00
9068b63e76 Actually use panic_halt in example. 2023-03-20 14:26:57 +00:00
d84c93010a no_std examples won't build in mdbook test. 2023-03-20 14:26:57 +00:00
8e009b9674 Remove reference to panic-abort.
It doesn't build with current rustc.
2023-03-20 14:26:57 +00:00
0a2263451d Add alloc example. 2023-03-20 14:26:57 +00:00
2981d3856f Mention panic-abort and panic-halt crates. 2023-03-20 14:26:57 +00:00
f71a86d942 Add minimal no_std example. 2023-03-20 14:26:57 +00:00
27820629e2 Rename section to bare metal. 2023-03-20 14:26:57 +00:00
51ccf44f52 Add initial outline for bare-metal Rust day. 2023-03-20 14:26:57 +00:00
daf25d094b Make Miri happy (#486)
I think this is a better solution than #308. It fixes the Miri error, and mostly keeps the original intent of demonstrating how to use raw pointers.
2023-03-15 23:18:12 +00:00
7a22d5567a Don't allocate in success case (#506)
`format!` was being called (and allocating a string) even in the success case.
2023-03-15 09:06:35 +01:00
9ee562c267 Remove unnecessary Mutex::lock from shared state example (#499)
It's not necessary to explicitly take the lock to print it.
2023-03-12 10:48:52 +01:00
59d3d7f625 Indent code in speaker notes (#476)
* Indent code in speaker notes

#475

* Update stack.md

* Update destructuring-arrays.md

* Update hashmap.md

* Update traits.md
2023-03-11 14:12:32 -08:00
368f3ba302 The code block at https://google.github.io/comprehensive-rust/testing/unit-tests.html probably should not be runnable (#498) 2023-03-11 10:12:37 +01:00
bfed596d28 Generalize the day-4 afternoon (#487)
* Generalize the day-4 afternoon

This is in preparation for adding more options for this portion of the
course, and reflects an existing practice of substituting other
materials for this last half-day.

* address review comments
2023-03-10 09:07:36 -05:00
ff66258c50 Fix typo in borrowing.md in the Speaker's Notes (#490)
the -> they
2023-03-09 14:13:04 +00:00
3242afae09 Create default.md (#370)
* Create default.md

* Update SUMMARY.md

* Update SUMMARY.md

* Update default.md

* Update default.md

* Update default.md
2023-03-07 17:11:43 +01:00
64340562ea Add badges to README and welcome page (#481) 2023-03-07 12:45:00 +00:00
31500974e4 Add note about requesting a room with tables (#479)
* Add note about requesting a room with tables

The course is built on the idea of using live-coding as much as possible. This means that it's important that there are desks in the classrooms — a traditional auditorium setup does not work well.
2023-03-06 15:23:10 +01:00
05eb17a6fe Fix typo in string.md (#473) 2023-03-04 17:22:04 +01:00
a78d58ba56 Add note about hygienic macros (#472)
* Add note about hygienic macros

* Fix typo.

* Add link about macro hygiene.
2023-03-03 12:19:52 +00:00
2de8d7cdbb Simplify running the course slightly (#463)
Thanks to many contributors, we now have lots of speaker notes.
2023-03-02 09:13:49 +01:00
c22b35e426 Remove silenced warnings in book-library exercise (#388)
* Update book-library.md

* Update book-library.rs

* Apply suggestions from code review

Expanding the variable makes it ever-so-slightly easier to read.

---------

Co-authored-by: Martin Geisler <mgeisler@google.com>
2023-02-28 17:53:02 -08:00