Skip to content

Commit e1ec4c2

Browse files
committed
Stdlib source bootstrap
1 parent 067da48 commit e1ec4c2

33 files changed

Lines changed: 1582 additions & 383 deletions

MODULE.bazel

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,16 @@ use_repo(
3030
toolchains,
3131
"default_rust_toolchains",
3232
"rs_rust_host_tools",
33+
"rs_source_stdlib_config",
3334
)
3435

36+
source_stdlib = use_extension("//rs/private:source_stdlib_extension.bzl", "source_stdlib")
37+
use_repo(source_stdlib, "rs_source_stdlib")
38+
39+
inject_repo(source_stdlib, "rs_source_stdlib_config")
40+
41+
inject_repo(toolchains, "rs_source_stdlib")
42+
3543
[
3644
http_file(
3745
name = "toml2json_" + name,

rs/BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ bzl_library(
3636
visibility = ["//visibility:public"],
3737
deps = [
3838
"//rs/private:annotations",
39+
"//rs/private:archive_cargo_workspace_repository",
3940
"//rs/private:cargo_credentials",
41+
"//rs/private:cargo_workspace_crate",
4042
"//rs/private:cfg_parser",
4143
"//rs/private:crate_repository",
4244
"//rs/private:downloader",
@@ -53,7 +55,6 @@ bzl_library(
5355
"@aspect_tools_telemetry_report//:defs.bzl",
5456
"@bazel_lib//lib:repo_utils",
5557
"@bazel_skylib//lib:paths",
56-
"@rs_rust_host_tools//:defs.bzl",
5758
],
5859
)
5960

0 commit comments

Comments
 (0)