1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-05-16 15:45:42 +02:00
comprehensive-rust/Cargo.toml
michael-kerscher 53f7660e9b
Evaluate slide size and block if they grow above a certain treshold (with exemption mechanism) (#2693)
This enables a test for the width and height of slides (excluding some
special cases completely).
The mechanism has an exemption mechanism to temporarily exempt slides
from the rules.
Even exempted slides are checked for the rule violation and once the
slides are compliant they must be removed from the exemption list to
avoid future regression (the check fails in the CI if compliant slides
are exempted!)

This also provides a good opportunity to always have an up-to-date list
of overlong slides in
[slide-exemptions.list.ts](tests/src/slides/slide-exemptions.list.ts)
that can be worked on.

The slide list is always autogenerated in the CI environment. If you want to
enable this for your local dev environment it has to be created manually.
This avoids a time consuming local test if it is not necessary.

On the CLI it can be locally used with `npm run test --
--spec=src/slide-size.test.ts` (after creating the list with
`./src/slides/create-slide.list.sh ../book/html/`).
The CI environment specifies the env var `TEST_BOOK_DIR` that is used to
specifiy the html directory so it can create the list of slides
on-the-fly, check against hardcoded exemptions and evaluate.

This is a new solution for #1464 within the new test framework. This is
related to #2234 and makes the mdbook-slide-evaluator from #2258
obsolete and should be removed as this is a not so powerful nor flexible
framework.
2025-03-18 12:50:46 +01:00

34 lines
808 B
TOML

[workspace]
# Please keep the workspace members sorted.
members = [
"mdbook-course",
"mdbook-exerciser",
"src/android/testing",
"src/bare-metal/useful-crates/allocator-example",
"src/bare-metal/useful-crates/zerocopy-example",
"src/borrowing",
"src/concurrency/async-exercises/chat-async",
"src/concurrency/sync-exercises",
"src/control-flow-basics",
"src/error-handling",
"src/generics",
"src/iterators",
"src/lifetimes",
"src/memory-management",
"src/methods-and-traits",
"src/modules",
"src/pattern-matching",
"src/references",
"src/smart-pointers",
"src/std-traits",
"src/std-types",
"src/testing",
"src/tuples-and-arrays",
"src/types-and-values",
"src/unsafe-rust",
"src/user-defined-types",
"third_party/cxx/blobstore",
"xtask",
]
resolver = "2"