1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2026-06-11 09:35:35 +02:00
Commit Graph

13 Commits

Author SHA1 Message Date
dependabot[bot] 6758b454fe build(deps): bump crate-ci/typos from 1.35.7 to 1.37.0 (#2939)
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.35.7 to
1.37.0.

---------

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>
2025-10-06 10:12:00 +00:00
Martin Geisler 80a2f2ff71 Add more prominent references to cargo xtask (#2904)
I found that Gemini didn’t know how to install the necessary tools
make `dprint fmt` work, so I’m adding more references to `cargo xtask`
in our documentation.
2025-09-20 11:15:28 +00:00
Luciefer 4731acf53f ci: use pinned nightly rustfmt to make unstable features take effect (#2896)
## What does this PR do?

This PR extends the existing `format` job in
`.github/workflows/build.yml` to
**check Rust formatting with nightly `rustfmt`**:

**Closes #2794**
2025-09-10 13:36:47 +02:00
Andrew Walbran a0e1add083 Add more tools to install instructions. (#2756)
Install mdbook-linkcheck2 via xtask, rather than separate step.
2025-05-23 21:16:57 +01:00
Eric Githinji a2ad59e4ae Use dbg! instead of println! in deep dive sessions. (#2676)
Part of #2478 to clean up code blocks when all that is needed is a
trivial debug print statement. The deep dive sessions didn't have that
many occurrences of trivial println! statements.

I believe this can close #2478.

Co-authored-by: Eric Githinji <egithinji@google.com>
2025-03-07 12:05:29 +01:00
Dustin J. Mitchell 44a79741ff Be more consistent about tests vs. main (#2644)
The content slides all use `fn main`, with the exception of the testing
segment. But with this change, where it makes sense exercises use tests
instead, and not both tests and `fn main`.

A small change in `book.js` supports running tests when a code sample
does not have `fn main` but does have `#[test]`, so these work
naturally.

Fixes #1581.
2025-02-18 20:13:16 +00:00
Martin Geisler e0fa410f93 Link README files together (#2504) 2024-12-06 09:00:25 -05:00
Martin Geisler 1720b80e7e Update Windows Gettext installation instructions (#1447)
Per the discussion in #1394.

Fixes #1394.
2023-11-06 13:05:13 -08:00
Gourav bcd7cecdaa Unified Formatting/Preparation (#1431)
Closes issue #1426

---------

Co-authored-by: Martin Geisler <martin@geisler.net>
2023-10-29 22:02:16 +00:00
Henri F e44efd97c5 Update CONTRIBUTING.md with MacOS installation instructions (#1395) 2023-10-22 14:59:03 -07:00
Martin Geisler 0f0d46bb93 Add dprint instructions to CONTRIBUTING.md (#1389) 2023-10-20 13:52:36 +02:00
Martin Geisler aaca44f62b Format files with dprint (#711)
The dprint formatter is a flexible system which will use sandboxed
WebAssembly formatters to format our code (mostly: it calls out to
`rustfmt` for Rust code).

A particularly interesting feature is that dprint can format Rust code
blocks in the Markdown files. However, before we turn that on, we need
to have a way to normalize the Markdown text as it is extracted[1].
That is so that the word put into the translations is kept after the
reformatting.

[1]: https://github.com/google/mdbook-i18n-helpers/issues/19
2023-05-30 17:04:19 +02:00
Martin Geisler c212a473ba Publish Comprehensive Rust 🦀 2022-12-21 16:38:28 +01:00