1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-07-11 16:50:16 +02:00
Commit Graph

10 Commits

Author SHA1 Message Date
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
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
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
e0fa410f93 Link README files together (#2504) 2024-12-06 09:00:25 -05:00
1720b80e7e Update Windows Gettext installation instructions (#1447)
Per the discussion in #1394.

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

---------

Co-authored-by: Martin Geisler <martin@geisler.net>
2023-10-29 22:02:16 +00:00
e44efd97c5 Update CONTRIBUTING.md with MacOS installation instructions (#1395) 2023-10-22 14:59:03 -07:00
0f0d46bb93 Add dprint instructions to CONTRIBUTING.md (#1389) 2023-10-20 13:52:36 +02:00
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
c212a473ba Publish Comprehensive Rust 🦀 2022-12-21 16:38:28 +01:00