1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-06-15 05:40:30 +02:00
Commit Graph

2199 Commits

Author SHA1 Message Date
32230f19f0 Test that correct value is returned for height change (#2164) 2024-07-29 10:16:51 -04:00
b3bbf6ceda Bump crate-ci/typos from 1.23.2 to 1.23.5 (#2255)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.23.2 to
1.23.5.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-29 09:41:10 +00:00
4c28a9253b Set Rust caching key per language group (#2250)
Fixes #2247 (a follow-up from #2195).

* Add a workflow dispatch manual trigger to the tests workflow.
* Move the link-checked languages JSON list to the build job's env.
* Set a caching key per language group to avoid extra `mdbook-linkcheck`
installation on non-link-checked translations.
  For the meaning of this key, see:
https://github.com/Swatinem/rust-cache?tab=readme-ov-file#example-usage
* Fix newly broken web link in 8a3ed21  

I tested it on my fork, and it looks good:
https://github.com/jond01/comprehensive-rust/actions/workflows/build.yml
https://github.com/jond01/comprehensive-rust/actions/caches
2024-07-29 10:28:12 +01:00
ad9b41cd6c Include xgettext as optional output (#2244)
Instead of asking the translators to run a complicated command to
generate the `messages.pot` file, we now simply include the
configuration in the versioned `book.toml` file.

This makes it much easier for us to update the configuration: we just
push a new version of `book.toml`. It also makes life easier for the
translators.
2024-07-23 10:51:13 +02:00
95eb00be5d pt-BR: Merge pt-BR refresh translation back into main (#2236)
This PR merges the pt-BR refresh back to main.
This requires just a syntactical review, as the partial PRs into this
branch were reviewed already.

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

gh pr diff 2236| bat -l patch

This closes #2121
2024-07-23 01:38:05 -07:00
384bd35cf3 cargo: bump openssl from 0.10.61 to 0.10.66 in the cargo group (#2245)
Bumps the cargo group with 1 update:
[openssl](https://github.com/sfackler/rust-openssl).
2024-07-22 17:58:40 -04:00
1c964f6fe3 Fix a broken link and check internal links (#2195)
In #2153 I aimed to fix a link but broke it.
In this PR, I fix it and add
[`mdbook-linkcheck`](https://github.com/Michael-F-Bryan/mdbook-linkcheck)
to avoid future cases.

Some past fixes that could have been prevented, in addition to mine in
this PR:
* #811
* #2064
* #2146

Note:  
`mdbook-linkcheck` may also check external links with a configuration
change.
It can be beneficial to check also external links from time to time. I
ran it here and found 3 broken links.

Maintainers - sorry for the lack of a preceding issue. We can discuss it
here.
Some remaining work is to fix the outdated internal links in the
translations, not done here.
Let me know what you think about the proposed contribution.

This PR completes #1502.
2024-07-22 11:37:19 +00:00
16c4724300 Fix comma position (#2233)
Co-authored-by: Kamil Panek <panek.kam@gmail.com>
2024-07-22 13:29:13 +02:00
1e1854557d cargo: bump cc from 1.1.4 to 1.1.6 in /src/exercises/bare-metal/rtc in the patch group (#2243)
Bumps the patch group in /src/exercises/bare-metal/rtc with 1 update:
[cc](https://github.com/rust-lang/cc-rs).

Updates `cc` from 1.1.4 to 1.1.6

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-22 11:15:13 +01:00
1c32e05bb6 cargo: bump cc from 1.1.4 to 1.1.6 in /src/bare-metal/aps/examples in the patch group (#2242)
Bumps the patch group in /src/bare-metal/aps/examples with 1 update:
[cc](https://github.com/rust-lang/cc-rs).

Updates `cc` from 1.1.4 to 1.1.6

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-22 10:14:54 +00:00
a4ea10f8a1 cargo: bump mockall from 0.12.1 to 0.13.0 in the minor group (#2240)
Bumps the minor group with 1 update:
[mockall](https://github.com/asomers/mockall).

Updates `mockall` from 0.12.1 to 0.13.0
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/asomers/mockall/blob/master/CHANGELOG.md">mockall's
changelog</a>.</em></p>
<blockquote>
<h1>Change Log</h1>
<p>All notable changes to this project will be documented in this file.
This project adheres to <a href="http://semver.org/">Semantic
Versioning</a>.</p>
<h2>[ Unreleased ] - ReleaseDate</h2>
<h3>Added</h3>
<ul>
<li>
<p>Add the ability to use <code>#[concretize]</code> with methods that
have an <code>FnMut</code>
argument.
(<a
href="https://redirect.github.com/asomers/mockall/pull/595">#595</a>)</p>
</li>
<li>
<p>Add the ability to mock methods that use <code>#[auto_enum]</code>,
from the
<code>auto_enums</code> crate. But only for methods that use RPIT;
Mockall can't yet
handle syntax like <code>-&gt; Result&lt;(), impl T&gt;</code>
(<a
href="https://redirect.github.com/asomers/mockall/pull/590">#590</a>)</p>
</li>
<li>
<p>Add the ability to mock methods that use <code>#[inline]</code> or
<code>#[cold]</code>, and
methods or traits that use <code>#[must_use]</code>.
(<a
href="https://redirect.github.com/asomers/mockall/pull/555">#555</a>)</p>
</li>
</ul>
<h3>Changed</h3>
<ul>
<li>
<p>Raised MSRV to 1.71.0 due to the <code>C-unwind</code> ABI.
(<a
href="https://redirect.github.com/asomers/mockall/pull/585">#585</a>)</p>
</li>
<li>
<p>No longer poison a Context object's internal <code>Mutex</code> when
panicing. This
requires the &quot;nightly&quot; feature.
(<a
href="https://redirect.github.com/asomers/mockall/pull/527">#527</a>)</p>
</li>
</ul>
<h3>Fixed</h3>
<ul>
<li>Fixed panicing within mocked <code>extern &quot;C&quot;</code>
functions, for example due to
unsatisfied expectations, with Rust 1.81.0 or newer.
(<a
href="https://redirect.github.com/asomers/mockall/pull/585">#585</a>)</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/asomers/mockall/commits">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=mockall&package-manager=cargo&previous-version=0.12.1&new-version=0.13.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore <dependency name> major version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's major version (unless you unignore this specific
dependency's major version or upgrade to it yourself)
- `@dependabot ignore <dependency name> minor version` will close this
group update PR and stop Dependabot creating any more for the specific
dependency's minor version (unless you unignore this specific
dependency's minor version or upgrade to it yourself)
- `@dependabot ignore <dependency name>` will close this group update PR
and stop Dependabot creating any more for the specific dependency
(unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore <dependency name>` will remove all of the ignore
conditions of the specified dependency
- `@dependabot unignore <dependency name> <ignore condition>` will
remove the ignore condition of the specified dependency and ignore
conditions


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-22 11:14:04 +01:00
0f7ab8fc7f cargo: bump the patch group with 3 updates (#2241)
Bumps the patch group with 3 updates:
[thiserror](https://github.com/dtolnay/thiserror),
[scraper](https://github.com/causal-agent/scraper) and
[tokio](https://github.com/tokio-rs/tokio).
2024-07-22 00:48:37 -04:00
bd169f393c some template dont convert en to fa (#2239) 2024-07-20 22:17:07 +03:30
d49e86d927 ar: Second patch of Arabic translation (#2231) 2024-07-19 18:23:43 +02:00
92de96f066 Fix direction of translation diff. (#2235)
It was showing the diff from new to old, rather than old to new.
2024-07-19 15:28:34 +00:00
df2076b111 Upgrade mdbook-pandoc and disable it except during CI workflows (#2212)
Implements the approach summarized in
https://github.com/google/mdbook-i18n-helpers/issues/200#issuecomment-2220035461
to disable running `mdbook-pandoc` even if it is available to avoid
dependency-related issues during local rendering.

Should address https://github.com/google/comprehensive-rust/issues/1911
since `mdbook-pandoc` will no longer run locally.
2024-07-18 13:01:25 +02:00
054169992e build(deps): bump crate-ci/typos from 1.23.1 to 1.23.2 (#2230)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.23.1 to
1.23.2.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-15 10:33:11 +01:00
80791ba59d cargo: bump the patch group with 2 updates (#2229)
Bumps the patch group with 2 updates:
[clap](https://github.com/clap-rs/clap) and
[thiserror](https://github.com/dtolnay/thiserror).

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-15 10:32:46 +01:00
6561739fd0 cargo: bump cc from 1.0.105 to 1.1.4 in /src/bare-metal/aps/examples in the minor group (#2228)
Bumps the minor group in /src/bare-metal/aps/examples with 1 update:
[cc](https://github.com/rust-lang/cc-rs).

Updates `cc` from 1.0.105 to 1.1.4

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-15 10:32:17 +01:00
827fa7e72f cargo: bump cc from 1.0.105 to 1.1.4 in /src/exercises/bare-metal/rtc in the minor group (#2227)
Bumps the minor group in /src/exercises/bare-metal/rtc with 1 update:
[cc](https://github.com/rust-lang/cc-rs).

Updates `cc` from 1.0.105 to 1.1.4

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-15 10:31:53 +01:00
d1b82a8e5c Diff translations on every PR (#2214)
This uses a new mode of `i18n-report` to summarise the differences in
translations as an action on each PR.
2024-07-13 12:26:16 +01:00
19e0660505 Link to translation reports. (#2213)
Also explain how to generate the report locally.
2024-07-12 10:11:31 -04:00
ec47ec2b5f Update udev rule for microbit. (#2217)
The subsystem seems to have changed with a newer version of udev, and
using logindev and uaccess rather than plugdev is consistent with how
other similar devices are handled.
2024-07-12 12:27:26 +01:00
a62d665af2 ar: refresh translation (#2211) 2024-07-11 17:42:35 -07:00
230a83869b es: Fix formatting error in svgbob figures (#2205)
This PR removes unsupported markdown styling from the svgbob figures in
the Spanish translation.

Fixes #1329.
2024-07-10 12:20:26 +00:00
538f6eb680 Prune CODEOWNERS file (#2210)
Removed users without access to the repository.
#2050
2024-07-10 08:59:49 +02:00
5d69d8c87b Remove lifetime trait bound on ProtoMessage (#2187)
The lifetime trait bound is unncessary, and the code compiles without
it.
2024-07-09 21:20:00 +00:00
550cc39ee4 fix </detail> typo (#2209) 2024-07-09 15:46:24 +00:00
b68f563e45 Martin prefers hyphens to underscores (#2207) 2024-07-09 09:19:16 -04:00
b075e17117 ar: Fix the language name (#2208) 2024-07-09 14:26:33 +02:00
90acb23506 Fix a single typo on translations.md (#2206) 2024-07-09 10:26:38 +01:00
23c30a9e39 Fix broken links to Arabic translation (#2204)
#445
2024-07-08 18:44:34 +00:00
82b9f6950b Fix publish workflow for synced translation report (#2203)
Building the synced translation report requires gettext for `msgmerge.`
2024-07-08 15:31:20 +00:00
c39b6b01d7 Publish report of translation status. (#2190) 2024-07-08 10:51:14 -04:00
dc71988c1a uk: fix misformatted links (#2196)
I was checking the published version and in few places the links are
misformatted, fixing that

Signed-off-by: Andriy Redko <drreta@gmail.com>
2024-07-08 08:57:44 +01:00
da7d40a553 build(deps): bump crate-ci/typos from 1.22.9 to 1.23.1 (#2202)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.22.9 to
1.23.1.

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-08 08:56:52 +01:00
eeea2ec2ac cargo: bump the patch group with 3 updates (#2201)
Bumps the patch group with 3 updates:
[serde](https://github.com/serde-rs/serde),
[serde_json](https://github.com/serde-rs/json) and
[zerocopy](https://github.com/google/zerocopy).

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-08 08:56:03 +01:00
a95c9dd6d2 cargo: bump buddy_system_allocator from 0.9.1 to 0.10.0 in the minor group (#2200)
Bumps the minor group with 1 update:
[buddy_system_allocator](https://github.com/rcore-os/buddy_system_allocator).

Updates `buddy_system_allocator` from 0.9.1 to 0.10.0

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-08 08:55:08 +01:00
2998282e73 cargo: bump cc from 1.0.103 to 1.0.105 in /src/exercises/bare-metal/rtc in the patch group (#2197)
Bumps the patch group in /src/exercises/bare-metal/rtc with 1 update:
[cc](https://github.com/rust-lang/cc-rs).

Updates `cc` from 1.0.103 to 1.0.105

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-08 08:54:42 +01:00
9688fa993c cargo: bump buddy_system_allocator from 0.9.1 to 0.10.0 in /src/bare-metal/alloc-example in the minor group (#2199)
Bumps the minor group in /src/bare-metal/alloc-example with 1 update:
[buddy_system_allocator](https://github.com/rcore-os/buddy_system_allocator).

Updates `buddy_system_allocator` from 0.9.1 to 0.10.0

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-08 08:53:21 +01:00
104abced36 cargo: bump cc from 1.0.103 to 1.0.105 in /src/bare-metal/aps/examples in the patch group (#2198)
Bumps the patch group in /src/bare-metal/aps/examples with 1 update:
[cc](https://github.com/rust-lang/cc-rs).

Updates `cc` from 1.0.103 to 1.0.105

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-08 08:52:51 +01:00
5899752873 Add workflow support for Arabic translation (#2194)
Part of : #445, #2193
2024-07-08 08:51:52 +01:00
a976603da5 First step in Arabic Translation (#2193)
Part of : #445
2024-07-05 22:40:03 -07:00
5db15cccb6 Publish all languages. (#2189) 2024-07-05 11:11:12 -07:00
5484a0e345 ja: cr2 Chromium translation (#1906)
Professional translations for CR2 content.
Changes are being staged in a separate branch until all Japanese content
is reviewed.

#1463 #652

---------

Co-authored-by: Hidenori Kobayashi <hidenorik@chromium.org>
2024-07-05 11:06:36 -07:00
a64516a7e6 Fix issues in std-types/result.md (#2186)
The expression excercise is using the standard `Result` type instead of
`Res`.

Co-authored-by: Jason Lin <lxj@google.com>
2024-07-05 15:04:46 +00:00
25b9dff9d0 Enhance Speaker Note: Warning for Rust Installation via Homebrew (#2191) 2024-07-05 10:50:13 -04:00
7d5599b99f *fix*: correct persian translation for third party crate (#2127)
Typo fix for Persian PO file.
2024-07-04 23:12:00 +03:30
a23398d31c vi: Translate From, Into and Comparison chapter from std-trait session (#2078) 2024-07-04 08:49:37 -07:00
a20b8754a5 Publish Ukrainian translation to language selector (#2183)
Closes #836
2024-07-03 14:04:54 -07:00