Skip to content

Import dataset and implement build script and CI#1

Merged
Turbo87 merged 3 commits into
mainfrom
bootstrap-dataset
Jun 15, 2026
Merged

Import dataset and implement build script and CI#1
Turbo87 merged 3 commits into
mainfrom
bootstrap-dataset

Conversation

@Turbo87

@Turbo87 Turbo87 commented Jun 15, 2026

Copy link
Copy Markdown
Member

This imports the curated std-replacement data from crates.io (see rust-lang/crates.io#13855) into per-crate TOML files under data/, with the descriptions rewritten from HTML to Markdown. The starting set is lazy_static, once_cell, matches, and num_cpus.

build.py reads every data/*.toml, validates that each carries exactly the required fields (description, url), and writes a sorted build/all.json. It collects all TOML parse and field errors in one pass and exits non-zero on any, so a bad PR surfaces every problem at once.

The build runs on pull requests and pushes to main, validating the dataset and uploading build/ as the Pages artifact. The deploy job takes that artifact to GitHub Pages and only runs on main.

Turbo87 added 3 commits June 15, 2026 12:50
This imports the curated std-replacement data from crates.io (see
rust-lang/crates.io#13855) into per-crate TOML files under `data/`, with
the descriptions rewritten from HTML to Markdown.
This reads every `data/*.toml`, validates that each carries exactly the
required fields (`description`, `url`), and writes a sorted `build/all.json`.
It collects all TOML parse and field errors in one pass and exits non-zero on
any.
The `build` job runs on pushes to `main` and on pull requests, validating
the dataset via `build.py` and uploading `build/` as the Pages artifact. The
`deploy` job publishes that artifact to GitHub Pages, gated to `main` pushes.
@Turbo87
Turbo87 merged commit a9fe3f0 into main Jun 15, 2026
2 checks passed
@Turbo87
Turbo87 deleted the bootstrap-dataset branch June 15, 2026 11:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant