1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-03-19 22:19:29 +02:00

8 Commits

Author SHA1 Message Date
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