Skip to content

Commit

Permalink
Make hidden content visible; add TODOs on every page
Browse files Browse the repository at this point in the history
  • Loading branch information
john-cd committed Oct 16, 2024
1 parent 360db4e commit 80fd41b
Show file tree
Hide file tree
Showing 228 changed files with 679 additions and 743 deletions.
5 changes: 3 additions & 2 deletions drafts/asref.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<div class="hidden">
TODO:
# AsRef and &T

[When and why to use AsRef<T>instead of &T][stackoverflow-asref]

[stackoverflow-asref]: https://stackoverflow.com/questions/66026309/when-and-why-to-use-asreft-instead-of-t

<div class="hidden">
TODO: write
</div>
21 changes: 7 additions & 14 deletions drafts/cd_ci.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
cargo pants
```
[`install-action`][install-action]{{hi:install-action}}⮳ is a GitHub Action for installing development tools (mainly from GitHub Releases).
[`install-action`][install_action-github]{{hi:install-action}}⮳ is a GitHub Action for installing development tools (mainly from GitHub Releases).

```yaml
- uses: taiki-e/install-action@v2
Expand Down Expand Up @@ -136,21 +136,14 @@ Example `.github/workflows/<name>.yml`
[How to cache docker-compose build inside github-action][stackoverflow-how-to-cache-docker-compose-build-inside-github-action]⮳
[stackoverflow-how-to-cache-docker-compose-build-inside-github-action]: https://stackoverflow.com/questions/61491484/how-to-cache-docker-compose-build-inside-github-action

{{#include ../refs/link-refs.md}}

<div class="hidden">
TODO:

- [Optimizing CI/CD pipelines in your Rust projects][blog-optimizing-ci-cd-pipelines-rust-project]⮳
[Optimizing CI/CD pipelines in your Rust projects][blog-optimizing-ci-cd-pipelines-rust-project]⮳

[blog-optimizing-ci-cd-pipelines-rust-project]: https://blog.logrocket.com/optimizing-ci-cd-pipelines-rust-projects/
[GitHub Action for installing development tools (mainly from GitHub Releases)][install_action-github]⮳

- [GitHub Action for installing development tools (mainly from GitHub Releases)][install-action]⮳
[Experience about deploying mdbook on github using github action - tutorials - The Rust Programming Language Forum][forum-deploying-mdbook-on-github-using-github-action]⮳

[install-action]: https://github.com/taiki-e/install-action/

[Experience about deploying mdbook on github using github action - tutorials - The Rust Programming Language Forum][deploying-mdbook-on-github-using-github-action]⮳

[deploying-mdbook-on-github-using-github-action]: https://users.rust-lang.org/t/experience-about-deploying-mdbook-on-github-using-github-action/81408
{{#include ../refs/link-refs.md}}

<div class="hidden">
TODO: organize see also
</div>
5 changes: 5 additions & 0 deletions drafts/result.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Result

## See also

- [what-is-the-rust-equivalent-to-a-try-catch-statement][stackoverflow-what-is-the-rust-equivalent-to-a-try-catch-statement]
1 change: 0 additions & 1 deletion drafts/template/$section1$.incl.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
| [$example1$][ex-$example1$] | [![$crate1$][c-$crate1$-badge]][c-$crate1$] | [![cat-$cat1$][cat-$cat$-badge]][cat-$cat1$] |

<div class="hidden">
TODO:
</div>
2 changes: 1 addition & 1 deletion drafts/template/$section1$.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ $description1$

{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
</div>
2 changes: 1 addition & 1 deletion drafts/template/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ $category-description$

{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
</div>
1 change: 0 additions & 1 deletion src/categories.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,4 @@
{{#include refs/link-refs.md}}

<div class="hidden">
TODO:
</div>
2 changes: 0 additions & 2 deletions src/categories/algorithms/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,4 @@ Rust implementations of core algorithms{{hi:Algorithms}} such as hashing{{hi:Has
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:

</div>
3 changes: 2 additions & 1 deletion src/categories/algorithms/randomness.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Randomly generates a string of given length ASCII characters with custom user-de

{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
TODO: review
</div>
13 changes: 6 additions & 7 deletions src/categories/algorithms/sorting.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,13 @@ Sorts a vector{{hi:Vector}} of Person structs with properties `name` and `age` b
{{#include ../../../deps/tests/sort_struct.rs}}
```

{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}
<div class="hidden">
TODO:
## See also

## Sorting + Rust
- A Rust implementation of Glidesort,a stable adaptive quicksort/mergesort hybrid sorting algorithm: [glidesort][c-glidesort-github]

- A Rust implementation of Glidesort,a stable adaptive quicksort/mergesort hybrid sorting algorithm: [glidesort][glidesort-github]
{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}

[glidesort-github]: https://github.com/orlp/glidesort
<div class="hidden">
TODO: organize
</div>
2 changes: 1 addition & 1 deletion src/categories/api-bindings/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ Idiomatic wrappers of specific APIs{{hi:APIs}} for convenient access from Rust.
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
TODO: write
</div>
1 change: 0 additions & 1 deletion src/categories/asynchronous/async.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,4 @@ Alternatives to the Tokio async ecosystem include:
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
</div>
1 change: 0 additions & 1 deletion src/categories/asynchronous/async_and_blocking.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,4 @@ In other cases, it may be easier to structure the application as largely synchro
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
</div>
2 changes: 1 addition & 1 deletion src/categories/asynchronous/async_channels.incl.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
| | [![tokio][c-tokio-badge]][c-tokio] | [![cat-asynchronous][cat-asynchronous-badge]][cat-asynchronous] |

<div class="hidden">
TODO:
TODO: add recipe link
</div>
4 changes: 3 additions & 1 deletion src/categories/asynchronous/async_channels.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ Another example:

[![postage][c-postage-badge]][c-postage] [![postage-lib.rs][c-postage-lib.rs-badge]][c-postage-lib.rs]

Fast sync and async channel: [Kanal][c-kanal-github]

{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
TODO: organize see also
</div>
2 changes: 1 addition & 1 deletion src/categories/asynchronous/async_traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ In addition, traits that use `-> impl Trait` and `async fn` are not object-safe{
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
TODO: add to with new Rust features
</div>
2 changes: 1 addition & 1 deletion src/categories/asynchronous/futures.incl.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
| | [![futures][c-futures-badge]][c-futures] | [![cat-asynchronous][cat-asynchronous-badge]][cat-asynchronous] |

<div class="hidden">
TODO:
TODO: add recipe links
</div>
2 changes: 1 addition & 1 deletion src/categories/asynchronous/futures.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ The [`futures`][c-futures]{{hi:futures}}⮳ crate provides an extension trait th
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
TODO: cover future-utils ?
</div>
27 changes: 4 additions & 23 deletions src/categories/asynchronous/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,31 +65,12 @@ Alternatives to the Tokio async ecosystem include:
- [![embassy][c-embassy-badge]][c-embassy] [Embassy][c-embassy-website][![embassy-github][c-embassy-github-badge]][c-embassy-github] for embedded systems.
- [![mio][c-mio-badge]][c-mio] [Mio][c-mio-crates.io]⮳ is a fast, low-level I/O library for Rust focusing on non-blocking APIs and event notification for building high performance I/O apps with as little overhead as possible over the OS abstractions. It is part of the Tokio ecosystem.

{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:

## Async Rust
## See also

[Asynchronous Programming in Rust][book-async-prog-rust]

## Kanal

- Fast sync and async channel [Kanal][kanal-github]

## Tokio

- [tokio.rs][tokio-rs]
- [tokio examples][tokio-examples]
- [tokio-rs async-stream][tokio-async-stream]
- [tokio-rs mio][mio-github]
{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}

[book-async-prog-rust]: https://rust-lang.github.io/async-book/01_getting_started/01_chapter.html
[kanal-github]: https://github.com/fereidani/kanal
[tokio-rs]: https://tokio.rs
[tokio-examples]: https://github.com/tokio-rs/tokio/tree/master/examples
[tokio-async-stream]: https://github.com/tokio-rs/async-stream
[mio-github]: https://github.com/tokio-rs/mio
<div class="hidden">
</div>
2 changes: 1 addition & 1 deletion src/categories/asynchronous/streams.incl.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
| | | [![cat-asynchronous][cat-asynchronous-badge]][cat-asynchronous] |

<div class="hidden">
TODO:
TODO: add recipe and crate links
</div>
2 changes: 1 addition & 1 deletion src/categories/asynchronous/streams.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ See also Tokio `async_stream`{{hi:async_stream}}.
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
TODO: add more?
</div>
7 changes: 6 additions & 1 deletion src/categories/asynchronous/tokio.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ Example from [c-tokio_graceful_shutdown][c-tokio_graceful_shutdown]⮳:

{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
TODO: - [tokio.rs][tokio-rs]
- [tokio examples][tokio-examples]
- [tokio-rs async-stream][tokio-async-stream]
- [tokio-rs mio][mio-github]

</div>
2 changes: 1 addition & 1 deletion src/categories/authentication/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ Uses [`reqwest::RequestBuilder::basic_auth`][c-reqwest::RequestBuilder::basic_au
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
TODO: Oauth?
</div>
3 changes: 1 addition & 2 deletions src/categories/caching/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,5 @@ Store the results of previous computations in order to reuse the results.
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:

TODO: expand caching, add moka
</div>
3 changes: 2 additions & 1 deletion src/categories/command-line-interface/ansi_terminal.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ For anything more complex than plain foreground color changes, the code needs to

{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
TODO: ansi_term is archived?
</div>
2 changes: 0 additions & 2 deletions src/categories/command-line-interface/arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,4 @@ Your favorite number must be 256.
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:

</div>
19 changes: 5 additions & 14 deletions src/categories/command-line-interface/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,15 @@ Techniques to help create command line interfaces{{hi:Command line interfaces}},

[![tui][c-tui-badge]][c-tui]

[ratatui][c-ratatui-github]

[![r3bl_tuify][c-r3bl_tuify-badge]][c-r3bl_tuify] [![r3bl_tuify-crates.io][c-r3bl_tuify-crates.io-badge]][c-r3bl_tuify-crates.io][![blog-tuify][blog-tuify-badge]][blog-tuify]

[Code][book-command-line-rust-github]⮳ for `Command-Line Rust` (O'Reilly, 2022, ISBN 9781098109417)

{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:

- [Command line apps in Rust][command-line-apps-in-rust]
- [Code for Command-Line Rust][command-line-rust]⮳ (O'Reilly, 2022, ISBN 9781098109417)

[command-line-rust]: https://github.com/kyclark/command-line-rust/tree/main
[command-line-apps-in-rust]: https://rust-cli.github.io/book/index.html#command-line-apps-in-rust

## Ratatui

- [ratatui][ratatui-github]

[ratatui-github]: https://github.com/ratatui-org/ratatui

TODO: cover ratatui
</div>
3 changes: 1 addition & 2 deletions src/categories/command-line-utilities/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,5 @@ apt install gping
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:

TODO: organize
</div>
2 changes: 1 addition & 1 deletion src/categories/compilers/cross_compilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ Examples: [![cross-toml-example][c-cross-toml-example-badge]][c-cross-toml-examp

{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
</div>
3 changes: 2 additions & 1 deletion src/categories/compilers/faster_linking.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"]

{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
TODO: review - some linkers are deprecated
</div>
3 changes: 0 additions & 3 deletions src/categories/compilers/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@ Compiler{{hi:Compiler}} implementations, including interpreters{{hi:Interpreters

{{#include reduce_compilation_duration.incl.md}}

`cargo build`

{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
</div>
29 changes: 15 additions & 14 deletions src/categories/compilers/reduce_compilation_duration.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,27 @@ cargo build

From-scratch builds with incremental compilation{{hi:Incremental compilation}} enabled adds about 15–20% overhead compared to disabled. The initial build needs to write out more intermediate state in order for later incremental builds to take advantage of it. In a CI{{hi:CI}} situation, it would be extremely unusual for there to be a later incremental build within the same job. The jobs are not making changes to source code and rebuilding. However, workflows that cache the target directory across runs might be benefiting from incremental compilation.

## Reference
### Incremental Computation

[8 Solutions for Troubleshooting Your Rust Build Times][blog-rust-build-times]
### Salsa

{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}
[![salsa-github][c-salsa-github-badge]][c-salsa-github] [![cat-development-tools][cat-development-tools-badge]][cat-development-tools]

<div class="hidden">
TODO:
[Salsa][c-salsa-website]

## Salsa
[Salsa (GitHub)][c-salsa-github]⮳ is a framework for on-demand, incremental computation.

- [Salsa][salsa-website]
Salsa is a Rust framework for writing incremental, on-demand programs -- these are programs that want to adapt to changes in their inputs, continuously producing a new output that is up-to-date.

## Rust compile duration
## Reference

- [how-i-improved-my-rust-compile-times-by-seventy-five-percent][how-i-improved-my-rust-compile-times-by-seventy-five-percent]
- [rust-compilation-time][rust-compilation-time]
- [8 Solutions for Troubleshooting Your Rust Build Times][blog-rust-build-times]
- [how-i-improved-my-rust-compile-times-by-seventy-five-percent][blog-how-i-improved-my-rust-compile-times-by-seventy-five-percent]
- [rust-compilation-time][blog-rust-compilation-time]

[salsa-website]: https://salsa-rs.github.io/salsa/overview.html
[how-i-improved-my-rust-compile-times-by-seventy-five-percent]: https://benw.is/posts/how-i-improved-my-rust-compile-times-by-seventy-five-percent
[rust-compilation-time]: https://www.williballenthin.com/post/rust-compilation-time/
{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO: fix reference section
</div>
2 changes: 1 addition & 1 deletion src/categories/compression/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ Algorithms for making data smaller.

{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
</div>
3 changes: 2 additions & 1 deletion src/categories/compression/tar.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ Iterate over the [`tar::Archive::entries`][c-tar::Archive::entries]{{hi:tar::Arc

{{#include refs.incl.md}}
{{#include ../../refs/link-refs.md}}

<div class="hidden">
TODO:
TODO: review
</div>
Loading

0 comments on commit 80fd41b

Please sign in to comment.