Skip to content

Commit 6b6a165

Browse files
committed
Fix broken links and consolidate lychee config
- Update sqlx issue link (launchbadge -> transact-rs) - Update AtomicU64 docs link (struct -> type alias) - Add lychee exclusions for tokioconf.com and tauri.app - Remove stale duplicate .lychee.toml
1 parent 315d165 commit 6b6a165

4 files changed

Lines changed: 5 additions & 57 deletions

File tree

.lychee.toml

Lines changed: 0 additions & 54 deletions
This file was deleted.

content/blog/async/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ request](https://github.com/rust-lang/async-book/pull/96), though.)
6767
That leaves us with a situation that is unsatisfactory for everyone involved:
6868

6969
- For new users, it is a big ask to [navigate this space](https://kevinhoffman.medium.com/rust-async-and-the-terrible-horrible-no-good-very-bad-day-348ebc836274) and make future-proof decisions.
70-
- For experienced users and library maintainers, [supporting multiple runtimes is an additional burden](https://github.com/launchbadge/sqlx/issues/1669). It's no surprise that popular crates like [`reqwest`](https://github.com/seanmonstar/reqwest) [simply insist on Tokio as a runtime](https://github.com/seanmonstar/reqwest/blob/master/Cargo.toml#L109).
70+
- For experienced users and library maintainers, [supporting multiple runtimes is an additional burden](https://github.com/transact-rs/sqlx/issues/1669). It's no surprise that popular crates like [`reqwest`](https://github.com/seanmonstar/reqwest) [simply insist on Tokio as a runtime](https://github.com/seanmonstar/reqwest/blob/master/Cargo.toml#L109).
7171

7272
This close coupling, [recognized by the async working
7373
group](https://github.com/rust-lang/wg-async/issues/45), has me worried about
@@ -135,7 +135,7 @@ was [met with noticeable community skepticism](https://www.reddit.com/r/rust/com
135135
As of this writing, [1754 public crates have a dependency on
136136
`async-std`](https://lib.rs/crates/async-std/rev) and there
137137
are companies that [rely on it in
138-
production](https://github.com/launchbadge/sqlx/issues/1669).
138+
production](https://github.com/transact-rs/sqlx/issues/1669).
139139

140140
However, looking at the commits over time `async-std` is essentially abandoned
141141
as there is [no active development

content/blog/rust-prevents-data-races-not-race-conditions/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ But two threads can both `load` the same value, both add one, and both `store` i
317317

318318
Notice that we're using `SeqCst`, the strongest memory ordering Rust provides. The bug still occurs because the problem isn't memory ordering; it's that the increment is split into two separate operations.
319319

320-
The fix is to collapse the two steps into a single indivisible operation. With a lock, that meant holding the guard across both. With atomics, it means a single read-modify-write operation, [`fetch_add`](https://doc.rust-lang.org/std/sync/atomic/struct.AtomicU64.html#method.fetch_add), which does the load-add-store in one step:
320+
The fix is to collapse the two steps into a single indivisible operation. With a lock, that meant holding the guard across both. With atomics, it means a single read-modify-write operation, [`fetch_add`](https://doc.rust-lang.org/std/sync/atomic/type.AtomicU64.html#method.fetch_add), which does the load-add-store in one step:
321321

322322
```rust
323323
counter.fetch_add(1, Ordering::SeqCst);

lychee.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ exclude = [
4848
'^https://forms\.gle/', # Google Forms -> 401 to bots
4949
'^https://rustlab\.it/tickets25', # ticketing endpoint -> intermittent 500
5050
'^https://rustasiaconf\.com/', # conf site -> intermittent 503
51+
'^https://(www\.)?tokioconf\.com/', # conf site -> intermittent 503
5152
'^https://www\.freedesktop\.org/software/systemd/man/devel/run0\.html', # -> 418
5253

5354
# Live sites that the CI runner can't reach due to TLS/HTTP2/network
@@ -60,6 +61,7 @@ exclude = [
6061
'^https://(www\.)?autosar\.org',
6162
'^https://blog\.consol\.de',
6263
'^https://ocw\.cs\.pub\.ro',
64+
'^https://tauri\.app', # slow host -> intermittent timeout
6365

6466
# Dead pages we can't repoint to a sensible replacement.
6567
'^https://kerkour\.com/bugs-rust-compiler-helps-prevent', # post removed in site migration

0 commit comments

Comments
 (0)