1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2024-12-16 06:39:46 +02:00
Commit Graph

1769 Commits

Author SHA1 Message Date
Dustin J. Mitchell
33b19848ef
Improved support for commenting when course timings change. (#1797)
This
* Works with the GitHub permissions model (at least in local testing on
another temporary repo)
 * Only comments when the timings actually change
2024-02-12 11:03:24 +00:00
dependabot[bot]
76362763c3
cargo: bump the patch group with 4 updates (#1810)
Bumps the patch group with 4 updates:
[mdbook](https://github.com/rust-lang/mdBook),
[thiserror](https://github.com/dtolnay/thiserror),
[cxx](https://github.com/dtolnay/cxx) and
[cxx-build](https://github.com/dtolnay/cxx).

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-12 10:40:19 +00:00
dependabot[bot]
4f719ddc72
build(deps): bump crate-ci/typos from 1.18.0 to 1.18.2 (#1811)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.18.0 to
1.18.2.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-12 10:11:15 +00:00
dependabot[bot]
8b31cd978e
cargo: bump the minor group with 2 updates (#1809)
Bumps the minor group with 2 updates:
[clap](https://github.com/clap-rs/clap) and
[tempfile](https://github.com/Stebalien/tempfile).

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-12 10:09:59 +00:00
dependabot[bot]
bd7f15dbaa
cargo: bump the patch group in /src/exercises/bare-metal/rtc with 1 update (#1808)
Bumps the patch group in /src/exercises/bare-metal/rtc with 1 update:
[chrono](https://github.com/chronotope/chrono).

Updates `chrono` from 0.4.33 to 0.4.34

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-12 10:09:20 +00:00
Nicole L
f5f2c6b925
Binder/AIDL content updates (#1618) 2024-02-09 15:11:10 -08:00
Michael Liendo
4d0f23e51a
feat: add and fix translation to installation caption (#1798) 2024-02-09 22:20:43 +00:00
IP1llar
d15314527b
Update lifetime-elision.md (#1795)
In the details section, it is suggested to adjust the signature of the
nearest function to "lie" about the lifetimes returned to:

fn nearest<'a, 'q'>(points: &'a [Point], query: &'q Point) -> Option<&'q
Point> {

to demonstrate the compiler checks lifetimes for validity. However, the
syntax for 'q is incorrect and it should instead be

fn nearest<'a, 'q>(points: &'a [Point], query: &'q Point) -> Option<&'q
Point> {
2024-02-08 19:48:21 +00:00
mobyw
6fcb591585
zh-CN: SUMMARY translation (#1779)
https://github.com/google/comprehensive-rust/issues/324

---------

Co-authored-by: Yihao Wang <42559837+AgainstEntropy@users.noreply.github.com>
Co-authored-by: Henri F. <henrif75@users.noreply.github.com>
2024-02-07 18:49:05 -08:00
Manichand Kondapaka
345cf646e4
Added loops section (#1789)
This is a contribution of a loops section for Comprehensive Rust.
2024-02-07 19:33:49 +00:00
Michael Liendo
e74970acbc
feat: add some spanish translations and fix translations (#1790) 2024-02-07 08:31:10 +00:00
Dustin J. Mitchell
9f67c9b0e7
Adjust morning-session timings downward (#1786)
Based on feedback from @marshallpierce that mornings took about 2.5
hours, this adjusts a bunch of the morning times downward to try to
match that. In other words, this is trying to make the times in the
course more accurate, rather than reducing the amount of time available
for these slides.

This also updates the `course-schedule` tool to be able to show
per-segment timings.
2024-02-06 15:48:56 -05:00
dependabot[bot]
e921d4bb1e
cargo: bump the minor group with 2 updates (#1783)
Bumps the minor group with 2 updates:
[pulldown-cmark](https://github.com/raphlinus/pulldown-cmark) and
[tokio](https://github.com/tokio-rs/tokio).

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Andrew Walbran <qwandor@google.com>
2024-02-05 11:25:39 +00:00
dependabot[bot]
73a6ab6ded
build(deps): bump crate-ci/typos from 1.17.2 to 1.18.0 (#1785)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.17.2 to
1.18.0.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-05 10:31:16 +00:00
dependabot[bot]
0e505be897
cargo: bump the patch group with 3 updates (#1784)
Bumps the patch group with 3 updates:
[serde_json](https://github.com/serde-rs/json),
[serde_yaml](https://github.com/dtolnay/serde-yaml) and
[reqwest](https://github.com/seanmonstar/reqwest).

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-05 10:30:46 +00:00
Manichand Kondapaka
faea6894e7
Added an Alternative way for printing struct and declaring a string. (#1773)
Knowing to_string method is good for learner to use at some situation. 
Knowing print complete struct object can be useful while debug.

---------

Co-authored-by: Dustin J. Mitchell <djmitche@google.com>
2024-02-02 20:48:03 +00:00
Andriy Redko
a673efbc14
uk: Day 2: morning (#1776)
Day 2: morning

Signed-off-by: Andriy Redko <drreta@gmail.com>
2024-02-02 10:39:07 +00:00
azevedoalice
55604ddbeb
Add myself to pt-BR reviewers (#1770) 2024-01-31 10:16:19 -08:00
Jean Carlo Vicelli
87df46cf07
pt-BR: add myself to CODEOWNERS (#1774) 2024-01-31 16:46:36 +01:00
Pavel Roskin
fbc6be4e1c
Actually protect against deadlock in Dining Philosophers async exercise (#1772)
Swapping forks for one philosopher feels like cheating. It's like one of
the philosophers is facing away from the table. Or perhaps it's the only
right-handed philosopher at the table.

More importantly, there is no effective mechanism to prevent deadlocks.
Add that mechanism, it's useful for learning Rust.

The new code demonstrates let-else, drop and returning values from a
loop. `std::mem::swap` remains in the thread version of the Dining
Philosophers exercise for now.

This also fixes compilation. `left_fork` and `right_fork` had to be
`mut` in `main()` for the workaround to compile.
2024-01-30 20:00:19 -05:00
Henri F
88dd268b01
Add @namhyung to Korean code reviewers. (#1771) 2024-01-30 17:22:36 -05:00
Yannis Guyon
a1d88c77e8
Replace "less" by "fewer" in exercise.md (#1769) 2024-01-30 15:53:42 +00:00
dependabot[bot]
4b7a874263
cargo: bump the patch group in /src/exercises/bare-metal/rtc with 1 update (#1768)
Bumps the patch group in /src/exercises/bare-metal/rtc with 1 update:
[chrono](https://github.com/chronotope/chrono).

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-29 10:29:40 +00:00
dependabot[bot]
85b2f76ea0
cargo: bump the patch group with 4 updates (#1767)
Bumps the patch group with 4 updates:
[serde](https://github.com/serde-rs/serde),
[serde_json](https://github.com/serde-rs/json),
[pulldown-cmark](https://github.com/raphlinus/pulldown-cmark) and
[buddy_system_allocator](https://github.com/rcore-os/buddy_system_allocator).

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-29 10:29:15 +00:00
dependabot[bot]
f3ff5b4111
cargo: bump the patch group in /src/bare-metal/alloc-example with 1 update (#1765)
Bumps the patch group in /src/bare-metal/alloc-example with 1 update:
[buddy_system_allocator](https://github.com/rcore-os/buddy_system_allocator).

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-29 10:28:41 +00:00
Martin Geisler
96ed0d9b23
de: refresh translation for January 2024 (#1744)
This is a clean refresh, requires only a syntaxtical review.
2024-01-29 10:53:03 +01:00
Martin Geisler
e82516f874
bn: refresh translation for January 2024 (#1743)
This is a clean refresh, requires only a syntactical review.
2024-01-29 10:52:47 +01:00
Henri F
72cdaaa29f
zh-CN: New CR2 translations with line numbers removed (#1764)
Publishes the new translations for CR2 (originally from zh-CN-cr2) #1463
which were previously reviewed.
It also removes line numbers (#1753)
#324

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1764 | bat -l patch
```
2024-01-26 18:45:20 -08:00
Henri F
0e2d1109b4
es: refresh translation for January 2024 (#1759)
From @mgeisler PRs (e.g. #1752, #1753)

This is a clean refresh, requires only a syntactic review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1759 | bat -l patch
```
2024-01-25 12:48:46 -08:00
Dustin J. Mitchell
20f45521e5
Move Trait Objects to the Smart Pointers segment (#1756)
Fixes #1516.
2024-01-25 09:47:50 -05:00
Dustin J. Mitchell
2313c0c3d0
Add a 'course-content' binary (#1757)
This allows dumping the course content in order, which I've needed
several times to verify whether a concept is used before it is covered
-- for example in #1516 I want to make sure we don't use trait objects
before the Smart Pointers section.
2024-01-25 09:47:23 -05:00
Martin Geisler
fda5f8f17e
Sort workspace members (#1760)
This should make it easier to insert new members going forward.
2024-01-25 11:08:53 +01:00
Martin Geisler
88f089f759
el: refresh translation for January 2024 (#1745)
This is a clean refresh, requires only a syntactical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1745 | bat -l patch
```
2024-01-25 09:52:58 +01:00
Martin Geisler
b45d4d1a20
id: refresh translation for January 2024 (#1737)
This is a clean refresh, requires only a syntactical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1737 | bat -l patch
```
2024-01-25 09:52:53 +01:00
Martin Geisler
6f8ad75f96
fr: refresh translation for January 2024 (#1741)
This is a clean refresh, requires only a syntactical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1741 | bat -l patch
```
2024-01-25 09:52:35 +01:00
Martin Geisler
a63ab24b95
ro: refresh translation for January 2024 (#1750)
This is a clean refresh, requires only a syntaxtical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1750 | bat -l patch
```
2024-01-25 09:51:36 +01:00
Martin Geisler
c62127698e
Tell translators to remove line numbers from PO files (#1753)
A `granularity` setting of `0` will remove the line numbers from the PO
files. This reduces the churn as we update the English source texts.
2024-01-25 09:46:24 +01:00
Martin Geisler
00a6f76647
ja: refresh translation for January 2024 (#1752)
This is a clean refresh, requires only a syntactical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1752 | bat -l patch
```
2024-01-25 08:52:51 +09:00
Martin Geisler
fd1313d0fe
tr: refresh translation for January 2024 (#1740)
This is a clean refresh, requires only a syntactical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1740 | bat -l patch
```
2024-01-24 08:17:09 -08:00
Ivan De Marino
dc76b73bc4
Adding the Italian translation to the list of incomplete ones (#1747)
Long overdue.

It felt a bit "odd" self-assigning merit, especially because I think I
haven't nearly contributed enough translations. So I looked at the
[history of `it.po` file](https://github.com/google/comprehensive-rust/commits/main/po/it.po)
and identified also @henrythebuilder as the other "owner" of the Italian
translation (definitely, based on number of lines contributed).

@henrythebuilder please confirm you are comfortable with this.
2024-01-24 16:10:53 +00:00
Martin Geisler
1735ae285e
it: Fix monospace for block comments (#1754)
This should fix the formatting on
https://google.github.io/comprehensive-rust/it/control-flow-basics/conditionals.html.
2024-01-24 14:36:05 +01:00
Martin Geisler
7d2952acb8
ru: refresh translation for January 2024 (#1739)
This is a clean refresh, requires only a syntactical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1739 | bat -l patch
```
2024-01-24 13:28:41 +00:00
Martin Geisler
6deafe050f
pl: refresh translation for January 2024 (#1748)
This is a clean refresh, requires only a syntaxtical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1748 | bat -l patch
```
2024-01-24 13:28:06 +00:00
Martin Geisler
767f1400e8
uk: refresh translation for January 2024 (#1749)
This is a clean refresh, requires only a syntaxtical review.

You can skim this PR with the [GitHub CLI](https://cli.github.com/):

```
gh pr diff 1749 | bat -l patch
```
2024-01-24 13:27:15 +00:00
Martin Geisler
dd48150ce2
it: refresh translation for January 2024 (#1738)
This is a clean refresh, requires only a syntactical review.
2024-01-24 13:10:45 +01:00
Martin Geisler
08af38a63e
es: refresh translation for January 2024 (#1746)
This is a clean refresh, requires only a syntaxtical review.
2024-01-24 13:01:05 +01:00
Andriy Redko
ca93a26758
uk: Day 1: afternoon (#1735)
uk: Day 1: afternoon
2024-01-23 10:46:45 +00:00
dependabot[bot]
cdfb8de46b
cargo: bump shlex from 1.2.0 to 1.3.0 (#1733)
Bumps shlex from 1.2.0 to 1.3.0.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-23 09:47:41 +01:00
Yihao Wang
e990b395cd
Add myself (Ethan) to zh-CN reviewers (#1734) 2024-01-22 20:13:47 -08:00
Martin Geisler
1f6c0ea8a6
Remove double "finally" in java.md (#1732) 2024-01-22 11:15:06 -08:00