Compare commits

...

9 Commits

Author SHA1 Message Date
Jonas Kruckenberg
8791feb495 Merge pull request #308 from mainmatter/push-uxpvpkpzunoq
update dependencies
2025-10-24 15:05:41 +02:00
Jonas Kruckenberg
a2fe212f44 update dependencies 2025-10-24 14:42:11 +02:00
Meatball Sub
20a2b45e49 Fix typo in TeX Live setup action and format command arguments (#302) 2025-09-30 17:02:41 +02:00
Marcin
c3cb1b38f6 Fix typo in 02_match (#296) 2025-09-03 08:28:37 -07:00
xiorcale
af4fe9cedb fix typo in 7.14 sync (#278) 2025-06-09 07:04:07 +02:00
Geert-Johan Riemer
21f3427c92 Update 03_variants_with_data.md (#264) 2025-03-03 16:32:13 +01:00
Karolis Strazdas
b839c770b5 Fix typos in 08_overflow.md. (#261)
* Fix a typo in "Profiles" section - change "form" to "from". 
* Remove "etc.", as it should not be used together with "e.g.".
2025-02-23 09:57:34 +01:00
dawe
fd23b201fe add missing word in 03_runtime.md (#259) 2025-02-15 10:09:16 +01:00
David Ekete
13850a6b01 Update 04_scoped_threads.md (#258)
Improved phrasing for  the `scope` h2
2025-02-08 10:21:56 +01:00
19 changed files with 1151 additions and 840 deletions

View File

@@ -56,7 +56,7 @@ jobs:
echo "$PWD/pandoc-${PANDOC_VERSION}/bin" >> $GITHUB_PATH
shell: bash
- name: Setup TeX Live
uses: teatimeguest/setup-texlive-action@v3
uses: TeX-Live/setup-texlive-action@v3
with:
packages:
scheme-basic
@@ -111,9 +111,9 @@ jobs:
with:
fail: true
args: |
--exclude-loopback
--require-https
--no-progress
--exclude-loopback
--require-https
--no-progress
book/book/html/
# Upload the HTML book as an artifact
- uses: actions/upload-artifact@v4

1927
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -75,14 +75,14 @@ development,
therefore it sacrifices runtime performance in favor of faster compilation times and a better debugging experience.\
The `release` profile, instead, is optimized for runtime performance but incurs longer compilation times. You need
to explicitly request via the `--release` flag—e.g. `cargo build --release` or `cargo run --release`.
The `test` profile is the default profile used by `cargo test`. The `test` profile inherits the settings form the `dev` profile.
The `test` profile is the default profile used by `cargo test`. The `test` profile inherits the settings from the `dev` profile.
The `bench` profile is the default profile used by `cargo bench`. The `bench` profile inherits from the `release` profile.
Use `dev` for iterative development and debugging, `release` for optimized production builds,\
`test` for correctness testing, and `bench` for performance benchmarking.
> "Have you built your project in release mode?" is almost a meme in the Rust community.\
> It refers to developers who are not familiar with Rust and complain about its performance on
> social media (e.g. Reddit, Twitter, etc.) before realizing they haven't built their project in
> social media (e.g. Reddit, Twitter) before realizing they haven't built their project in
> release mode.
You can also define custom profiles or customize the built-in ones.

View File

@@ -70,7 +70,7 @@ match status {
The `_` pattern matches anything that wasn't matched by the previous patterns.
<div class="warning">
By using this catch-all pattern, you _won't_ get the benefits of compiler-driven refactoring.\
By using this catch-all pattern, you _won't_ get the benefits of compiler-driven refactoring.
If you add a new enum variant, the compiler _won't_ tell you that you're not handling it.
If you're keen on correctness, avoid using catch-alls. Leverage the compiler to re-examine all matching sites and determine how new enum variants should be handled.

View File

@@ -64,7 +64,7 @@ match status {
println!("Assigned to: {}", assigned_to);
},
Status::ToDo | Status::Done => {
println!("Done");
println!("ToDo or Done");
}
}
```
@@ -82,7 +82,7 @@ match status {
println!("Assigned to: {}", person);
},
Status::ToDo | Status::Done => {
println!("Done");
println!("ToDo or Done");
}
}
```

View File

@@ -27,7 +27,7 @@ Let's unpack what's happening.
## `scope`
The `std::thread::scope` function creates a new **scope**.\
`std::thread::scope` takes as input a closure, with a single argument: a `Scope` instance.
`std::thread::scope` takes a closure as input, with a single argument: a `Scope` instance.
## Scoped spawns

View File

@@ -5,7 +5,7 @@ Before we wrap up this chapter, let's talk about another key trait in Rust's sta
`Sync` is an auto trait, just like `Send`.\
It is automatically implemented by all types that can be safely **shared** between threads.
In order words: `T` is Sync if `&T` is `Send`.
In other words: `T` is Sync if `&T` is `Send`.
## `T: Sync` doesn't imply `T: Send`

View File

@@ -26,7 +26,7 @@ at any given time.
### Multithreaded runtime
When using the multithreaded runtime, instead, there can up to `N` tasks running
When using the multithreaded runtime, instead, there can be up to `N` tasks running
_in parallel_ at any given time, where `N` is the number of threads used by the
runtime. By default, `N` matches the number of available CPU cores.

View File

@@ -4,7 +4,7 @@ version = "0.1.0"
edition = "2021"
[dependencies]
thiserror = "1.0.59"
thiserror = "1.0.69"
[dev-dependencies]
common = { path = "../../../helpers/common" }

View File

@@ -4,5 +4,5 @@ version = "0.1.0"
edition = "2021"
[dependencies]
thiserror = "1.0.59"
thiserror = "1.0.69"
ticket_fields = { path = "../../../helpers/ticket_fields" }

View File

@@ -4,5 +4,5 @@ version = "0.1.0"
edition = "2021"
[dependencies]
thiserror = "1.0.60"
thiserror = "1.0.69"
ticket_fields = { path = "../../../helpers/ticket_fields" }

View File

@@ -4,5 +4,5 @@ version = "0.1.0"
edition = "2021"
[dependencies]
thiserror = "1.0.60"
thiserror = "1.0.69"
ticket_fields = { path = "../../../helpers/ticket_fields" }

View File

@@ -4,5 +4,5 @@ version = "0.1.0"
edition = "2021"
[dependencies]
anyhow = "1.0.83"
anyhow = "1.0.100"
tokio = { version = "1", features = ["full"] }

View File

@@ -4,5 +4,5 @@ version = "0.1.0"
edition = "2021"
[dependencies]
anyhow = "1.0.83"
anyhow = "1.0.100"
tokio = { version = "1", features = ["full"] }

View File

@@ -4,5 +4,5 @@ version = "0.1.0"
edition = "2021"
[dependencies]
anyhow = "1.0.83"
anyhow = "1.0.100"
tokio = { version = "1", features = ["full"] }

View File

@@ -4,5 +4,5 @@ version = "0.1.0"
edition = "2021"
[dependencies]
anyhow = "1.0.83"
anyhow = "1.0.100"
tokio = { version = "1", features = ["full"] }

View File

@@ -4,8 +4,8 @@ version = "0.1.0"
edition = "2021"
[dependencies]
anyhow = "1.0.86"
clap = "4.5.4"
mdbook = "0.4.40"
semver = "1.0.23"
serde_json = "1.0.117"
anyhow = "1.0.100"
clap = "4.5.50"
mdbook = "0.4.52"
semver = "1.0.27"
serde_json = "1.0.145"

View File

@@ -4,12 +4,12 @@ version = "0.1.0"
edition = "2021"
[dependencies]
anyhow = "1.0.86"
anyhow = "1.0.100"
bimap = { version = "0.6.3", features = ["serde"] }
clap = { version = "4.5.4", features = ["derive"] }
clap = { version = "4.5.50", features = ["derive"] }
itertools = "0.13.0"
mdbook = "0.4.40"
pulldown-cmark = "0.11.0"
mdbook = "0.4.52"
pulldown-cmark = "0.11.3"
pulldown-cmark-to-cmark = "15"
semver = "1.0.23"
serde_json = "1.0.117"
semver = "1.0.27"
serde_json = "1.0.145"

View File

@@ -5,4 +5,4 @@ edition = "2021"
[dependencies]
common = { path = "../common" }
thiserror = "1.0.59"
thiserror = "1.0.69"