diff --git a/misc/scripts/models-as-data/rust_bulk_generate_mad.py b/misc/scripts/models-as-data/rust_bulk_generate_mad.py index c9ed1e2540e..48c5c362fec 100644 --- a/misc/scripts/models-as-data/rust_bulk_generate_mad.py +++ b/misc/scripts/models-as-data/rust_bulk_generate_mad.py @@ -47,76 +47,6 @@ class Project(TypedDict): git_tag: NotRequired[str] -# List of Rust projects to generate models for. -projects: List[Project] = [ - { - "name": "libc", - "git_repo": "https://github.com/rust-lang/libc", - "git_tag": "0.2.172", - }, - { - "name": "log", - "git_repo": "https://github.com/rust-lang/log", - "git_tag": "0.4.27", - }, - { - "name": "memchr", - "git_repo": "https://github.com/BurntSushi/memchr", - "git_tag": "2.7.4", - }, - { - "name": "once_cell", - "git_repo": "https://github.com/matklad/once_cell", - "git_tag": "v1.21.3", - }, - { - "name": "rand", - "git_repo": "https://github.com/rust-random/rand", - "git_tag": "0.9.1", - }, - { - "name": "smallvec", - "git_repo": "https://github.com/servo/rust-smallvec", - "git_tag": "v1.15.0", - }, - { - "name": "serde", - "git_repo": "https://github.com/serde-rs/serde", - "git_tag": "v1.0.219", - }, - { - "name": "tokio", - "git_repo": "https://github.com/tokio-rs/tokio", - "git_tag": "tokio-1.45.0", - }, - { - "name": "reqwest", - "git_repo": "https://github.com/seanmonstar/reqwest", - "git_tag": "v0.12.15", - }, - { - "name": "rocket", - "git_repo": "https://github.com/SergioBenitez/Rocket", - "git_tag": "v0.5.1", - }, - { - "name": "actix-web", - "git_repo": "https://github.com/actix/actix-web", - "git_tag": "web-v4.11.0", - }, - { - "name": "hyper", - "git_repo": "https://github.com/hyperium/hyper", - "git_tag": "v1.6.0", - }, - { - "name": "clap", - "git_repo": "https://github.com/clap-rs/clap", - "git_tag": "v4.5.38", - }, -] - - def clone_project(project: Project) -> str: """ Shallow clone a project into the build directory. diff --git a/rust/misc/bulk_generation_targets.json b/rust/misc/bulk_generation_targets.json new file mode 100644 index 00000000000..e7efddfe5b8 --- /dev/null +++ b/rust/misc/bulk_generation_targets.json @@ -0,0 +1,69 @@ +{ + "targets": [ + { + "name": "libc", + "git_repo": "https://github.com/rust-lang/libc", + "git_tag": "0.2.172" + }, + { + "name": "log", + "git_repo": "https://github.com/rust-lang/log", + "git_tag": "0.4.27" + }, + { + "name": "memchr", + "git_repo": "https://github.com/BurntSushi/memchr", + "git_tag": "2.7.4" + }, + { + "name": "once_cell", + "git_repo": "https://github.com/matklad/once_cell", + "git_tag": "v1.21.3" + }, + { + "name": "rand", + "git_repo": "https://github.com/rust-random/rand", + "git_tag": "0.9.1" + }, + { + "name": "smallvec", + "git_repo": "https://github.com/servo/rust-smallvec", + "git_tag": "v1.15.0" + }, + { + "name": "serde", + "git_repo": "https://github.com/serde-rs/serde", + "git_tag": "v1.0.219" + }, + { + "name": "tokio", + "git_repo": "https://github.com/tokio-rs/tokio", + "git_tag": "tokio-1.45.0" + }, + { + "name": "reqwest", + "git_repo": "https://github.com/seanmonstar/reqwest", + "git_tag": "v0.12.15" + }, + { + "name": "rocket", + "git_repo": "https://github.com/SergioBenitez/Rocket", + "git_tag": "v0.5.1" + }, + { + "name": "actix-web", + "git_repo": "https://github.com/actix/actix-web", + "git_tag": "web-v4.11.0" + }, + { + "name": "hyper", + "git_repo": "https://github.com/hyperium/hyper", + "git_tag": "v1.6.0" + }, + { + "name": "clap", + "git_repo": "https://github.com/clap-rs/clap", + "git_tag": "v4.5.38" + } + ] +} \ No newline at end of file