Skip to content

Commit

Permalink
Merge branch 'google:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
DannyRavi authored Sep 3, 2024
2 parents 338fac1 + c223257 commit eb134ec
Show file tree
Hide file tree
Showing 13 changed files with 40 additions and 32 deletions.
14 changes: 7 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ updates:
- package-ecosystem: cargo
directory: /
schedule:
interval: weekly
interval: monthly
reviewers:
- djmitche
- mgeisler
Expand All @@ -23,7 +23,7 @@ updates:
- package-ecosystem: cargo
directory: /src/bare-metal/alloc-example/
schedule:
interval: weekly
interval: monthly
reviewers:
- djmitche
- mgeisler
Expand All @@ -40,7 +40,7 @@ updates:
- package-ecosystem: cargo
directory: /src/bare-metal/aps/examples/
schedule:
interval: weekly
interval: monthly
reviewers:
- djmitche
- mgeisler
Expand All @@ -57,7 +57,7 @@ updates:
- package-ecosystem: cargo
directory: /src/bare-metal/microcontrollers/examples/
schedule:
interval: weekly
interval: monthly
reviewers:
- djmitche
- mgeisler
Expand All @@ -74,7 +74,7 @@ updates:
- package-ecosystem: cargo
directory: /src/exercises/bare-metal/compass/
schedule:
interval: weekly
interval: monthly
reviewers:
- djmitche
- mgeisler
Expand All @@ -91,7 +91,7 @@ updates:
- package-ecosystem: cargo
directory: /src/exercises/bare-metal/rtc/
schedule:
interval: weekly
interval: monthly
reviewers:
- djmitche
- mgeisler
Expand All @@ -108,7 +108,7 @@ updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
interval: monthly
reviewers:
- djmitche
- mgeisler
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
uses: actions/checkout@v4

- name: Check for typos
uses: crate-ci/[email protected].1
uses: crate-ci/[email protected].3
with:
config: ./.github/typos.toml

Expand Down
24 changes: 12 additions & 12 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions mdbook-slide-evaluator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ description = "A tool for evaluating mdbook slides by rendering the html pages a
anyhow = "1.0.86"
clap = { version = "4.5.9", features = ["derive"] }
csv = "1.3.0"
fantoccini = "0.21.1"
fantoccini = "0.21.2"
glob = "0.3.1"
log = "0.4.22"
pretty_env_logger = "0.5.0"
serde = { version = "1.0.209", features = ["derive"] }
strum = { version = "0.26.3", features = ["derive"] }
tokio = { version = "1.38.1", features = ["full"] }
tokio = { version = "1.40.0", features = ["full"] }
tokio-util = "0.7.11"
url = "2.5.2"
4 changes: 2 additions & 2 deletions src/bare-metal/aps/examples/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/bare-metal/aps/examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ smccc = "0.1.1"
spin = "0.9.8"

[build-dependencies]
cc = "1.1.14"
cc = "1.1.15"

[[bin]]
name = "improved"
Expand Down
2 changes: 1 addition & 1 deletion src/concurrency/async-exercises/chat-async/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ edition = "2021"
[dependencies]
futures-util = { version = "0.3.30", features = ["sink"] }
http = "1.1.0"
tokio = { version = "1.39.3", features = ["full"] }
tokio = { version = "1.40.0", features = ["full"] }
tokio-websockets = { version = "0.9.0", features = ["client", "fastrand", "server", "sha1_smol"] }
6 changes: 4 additions & 2 deletions src/concurrency/send-sync/examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ Typically because of interior mutability:

## `!Send + Sync`

These types are thread-safe, but they cannot be moved to another thread:
These types are safe to access (via shared references) from multiple threads,
but they cannot be moved to another thread:

- `MutexGuard<T: Sync>`: Uses OS level primitives which must be deallocated on
the thread which created them.
the thread which created them. However, an already-locked mutex can have its
guarded variable read by any thread with which the guard is shared.

## `!Send + !Sync`

Expand Down
4 changes: 2 additions & 2 deletions src/exercises/bare-metal/rtc/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/exercises/bare-metal/rtc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ smccc = "0.1.1"
spin = "0.9.8"

[build-dependencies]
cc = "1.1.14"
cc = "1.1.15"
3 changes: 3 additions & 0 deletions src/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ h1#glossary ~ ul > li:first-line {
Dynamic memory allocation on [the heap](memory-management/review.md).
- argument:\
Information that is passed into a function or method.
- associated type:\
A type associated with a specific trait. Useful for defining the relationship
between types.
- Bare-metal Rust:\
Low-level Rust development, often deployed to a system without an operating
system. See [Bare-metal Rust](bare-metal.md).
Expand Down
2 changes: 1 addition & 1 deletion src/std-types/hashmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ fn main() {
.get("Harry Potter and the Sorcerer's Stone")
.unwrap_or(&336);
let pc2 = page_counts
.entry("The Hunger Games".to_string())
.entry("The Hunger Games")
.or_insert(374);
```
- Unlike `vec!`, there is unfortunately no standard `hashmap!` macro.
Expand Down
3 changes: 3 additions & 0 deletions src/testing/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ version = "0.1.0"
edition = "2021"
publish = false

[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(never)'] }

[[bin]]
name = "luhn"
path = "exercise.rs"

0 comments on commit eb134ec

Please sign in to comment.