Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Updating Vendored Frontend Assets

Docs.rs keeps some frontend dependencies in the repository so builds do not depend on downloading assets at runtime.

Font Awesome

Font Awesome Free SVGs are packaged by the font-awesome-as-a-crate workspace crate. The vendored distribution, license, and generator live under crates/lib/font-awesome-as-a-crate/.

See the crate’s README for the update and release procedure.

Pure CSS

The minified Pure CSS files and their license live under crates/bin/docs_rs_web/vendor/pure-css/. The web crate’s build script reads pure-min.css and grids-responsive-min.css from that directory and combines them with the site’s generated CSS.

When updating Pure CSS, replace those minified files from an official Pure CSS release, update the vendored license when needed, and run:

$ cargo test --package docs_rs_web
$ just run-gui-tests