fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
824b121a
0.8.1
1load ( "@bazel_skylib//rules:write_file.bzl" , "write_file" ) 2load ( "//crate_universe:defs.bzl" , "crate" , "render_config" , "splicing_config" ) 3 4# buildifier: disable=bzl-visibility 5load ( "//crate_universe/private:generate_utils.bzl" , "compile_config" ) 6 7# buildifier: disable=bzl-visibility 8load ( "//crate_universe/private:splicing_utils.bzl" , "compile_splicing_manifest" ) 9 10write_file ( 11name = "config" , 12out = "config.json" , 13content = [ json . encode ( 14compile_config ( 15cargo_config = None , 16crate_annotations = { 17"rand" : [ crate . annotation ( 18crate_features = [ "small_rng" ], 19version = "0.8.5" , 20)], 21}, 22generate_build_scripts = False , 23render_config = json . decode ( render_config ( 24platforms_template = "//custom/platform:{triple}" , 25regen_command = "cargo_bazel_regen_command" , 26)), 27repository_name = "mock_config" , 28supported_platform_triples = [ 29"x86_64-unknown-linux-gnu" , 30"x86_64-pc-windows-msvc" , 31"x86_64-apple-darwin" , 32], 33), 34). strip ()], 35newline = "unix" , 36) 37 38write_file ( 39name = "splicing_manifest" , 40out = "splicing_manifest.json" , 41content = [ json . encode ( compile_splicing_manifest ( 42cargo_config_path = "/tmp/abs/path/workspace/.cargo/config.toml" , 43manifests = { 44"${build_workspace_directory}/submod/Cargo.toml" : "//submod:Cargo.toml" , 45"${output_base}/external_crate/Cargo.toml" : "@external_crate//:Cargo.toml" , 46"/tmp/abs/path/workspace/Cargo.toml" : "//:Cargo.toml" , 47}, 48packages = { 49"rand" : crate . spec ( 50default_features = False , 51features = [ "small_rng" ], 52version = "0.8.5" , 53), 54}, 55splicing_config = dict ( json . decode ( splicing_config ( 56resolver_version = "2" , 57))), 58)). strip ()], 59newline = "unix" , 60) 61 62filegroup ( 63name = "serialized_configs" , 64srcs = [ 65"config.json" , 66"splicing_manifest.json" , 67], 68visibility = [ "//crate_universe:__pkg__" ], 69)