Skip to content

Commit d58e505

Browse files
authored
Update rust to 1.27.2 (#138)
1 parent 1678ed0 commit d58e505

File tree

4 files changed

+39
-31
lines changed

4 files changed

+39
-31
lines changed

rust/known_shas.bzl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ FILE_KEY_TO_SHA = {
8787
"rust-1.27.1-x86_64-apple-darwin": "475be237962d6aef1038a2faada26fda1e0eaea5d71d6950229a027a9c2bfe08",
8888
"rust-1.27.1-x86_64-unknown-freebsd": "739d38036c9f08c13bc7425cc5cccd3dd37860fa6e9dfc7bcd9081c8d3c5ccdd",
8989
"rust-1.27.1-x86_64-unknown-linux-gnu": "435778a837af764da2a7a7fb4d386b7b78516c7dfc732d892858e9a8a539989b",
90+
"rust-1.27.2-x86_64-apple-darwin": "30c5cc58759caa4efdf2ea7d8438633139c98bee3408beb29ceb26985f3f5f70",
91+
"rust-1.27.2-x86_64-unknown-freebsd": "b114c5eebc120b360d4d3c4360421ff181cc47bb311e161d3af6971b6d3e6244",
92+
"rust-1.27.2-x86_64-unknown-linux-gnu": "5028a18e913ef3eb53e8d8119d2cc0594442725e055a9361012f8e26f754f2bf",
9093
"rustc-1.26.0-x86_64-apple-darwin": "5cb67314656d16cf2a1bdc84213aaaf6afdb5811825c7afba916e2d42d3d641f",
9194
"rustc-1.26.0-x86_64-unknown-freebsd": "9499ce5b68d631f8345c387e1f59b21892d97e0acb5650deb61a34719310bd38",
9295
"rustc-1.26.0-x86_64-unknown-linux-gnu": "7ca9a30010602aaf2244c376a3cc5baa89429d54da17b8ba1cb0cdfdc846cc61",
@@ -102,6 +105,9 @@ FILE_KEY_TO_SHA = {
102105
"rustc-1.27.1-x86_64-apple-darwin": "747f616e07e5da9323a21c1cf9d76b53bb46094a68223d461a7333f26c714f19",
103106
"rustc-1.27.1-x86_64-unknown-freebsd": "9b199c21094f996fd9d4b620a5ff2c4bc5b8dab13e96bdf7c113291f601ec944",
104107
"rustc-1.27.1-x86_64-unknown-linux-gnu": "a6bf6205b345b854d705d0028a4e7161a0f5b209e464130e7d135fa01a296dc1",
108+
"rustc-1.27.2-x86_64-apple-darwin": "b5c5edd2094afd0a92ad776dbd12cb6ee37800b940437dece10229ccacd1f561",
109+
"rustc-1.27.2-x86_64-unknown-freebsd": "66d739632574fa52e82b40aca0eb4cef7a38047ed67cd6a240d8798a3cf9b6a6",
110+
"rustc-1.27.2-x86_64-unknown-linux-gnu": "ec3efc17ddbe6625840957049e15ebae960f447c8e8feb7da40c28dd6adf655f",
105111
"rust-std-1.26.0-x86_64-apple-darwin": "cb5a0114e9e383aa93267868482db84f791124ee4faafdaed08ec6782d000fc2",
106112
"rust-std-1.26.0-x86_64-unknown-freebsd": "38cd138eba2ccaff59513d154fec580b6663ca6ef38cd620c348364aa1e11a40",
107113
"rust-std-1.26.0-x86_64-unknown-linux-gnu": "e27cb5c21541a500c8df919e15c8d3b002456ebbe573122e7b058cf5b4c3c13a",
@@ -117,4 +123,7 @@ FILE_KEY_TO_SHA = {
117123
"rust-std-1.27.1-x86_64-apple-darwin": "a521599355e564984e43a63042b1de93dd7cf96730930501f86611dd766384e8",
118124
"rust-std-1.27.1-x86_64-unknown-freebsd": "12902b61a4897ade258217f045dfac3fe83d49dd52d1e2250bd94c3a10642b08",
119125
"rust-std-1.27.1-x86_64-unknown-linux-gnu": "9a1830b522117d68eeec703b50692093352212e035a46baceea666bb37739c2d",
126+
"rust-std-1.27.2-x86_64-apple-darwin": "eed3688d9f551066593b34f07e4d28846caa99624c2168387993acc6bddd003d",
127+
"rust-std-1.27.2-x86_64-unknown-freebsd": "6051f8bacbfbd2c3dceeddab8c66274bed7ef260cf346d367c53495cd1567572",
128+
"rust-std-1.27.2-x86_64-unknown-linux-gnu": "68984f2233853d3e9c7c56edd72a91b5822157f28fdb42023fb311af68f842dd",
120129
}

rust/repositories.bzl

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,36 @@
11
load(":known_shas.bzl", "FILE_KEY_TO_SHA")
2-
load(":triple_mappings.bzl", "triple_to_system", "triple_to_constraint_set", "system_to_binary_ext", "system_to_dylib_ext", "system_to_staticlib_ext")
2+
load(":triple_mappings.bzl", "system_to_binary_ext", "system_to_dylib_ext", "system_to_staticlib_ext", "triple_to_constraint_set", "triple_to_system")
33

44
DEFAULT_TOOLCHAIN_NAME_PREFIX = "toolchain_for"
55

6+
def rust_repositories():
7+
"""Emits a default set of toolchains for Linux, OSX, and Freebsd
8+
9+
Skip this macro and call the `rust_repository_set` macros directly if you need a compiler for
10+
other hosts or for additional target triples.
11+
"""
12+
13+
rust_repository_set(
14+
name = "rust_linux_x86_64",
15+
exec_triple = "x86_64-unknown-linux-gnu",
16+
extra_target_triples = [],
17+
version = "1.27.2",
18+
)
19+
20+
rust_repository_set(
21+
name = "rust_darwin_x86_64",
22+
exec_triple = "x86_64-apple-darwin",
23+
extra_target_triples = [],
24+
version = "1.27.2",
25+
)
26+
27+
rust_repository_set(
28+
name = "rust_freebsd_x86_64",
29+
exec_triple = "x86_64-unknown-freebsd",
30+
extra_target_triples = [],
31+
version = "1.27.2",
32+
)
33+
634
def _check_version_valid(version, iso_date, param_prefix = ""):
735
"""Verifies that the provided rust version and iso_date make sense."""
836

@@ -366,31 +394,3 @@ def rust_repository_set(name, version, exec_triple, extra_target_triples, iso_da
366394

367395
# Register toolchains
368396
native.register_toolchains(*all_toolchain_names)
369-
370-
def rust_repositories():
371-
"""Emits a default set of toolchains for Linux, OSX, and Freebsd
372-
373-
Skip this macro and call the `rust_repository_set` macros directly if you need a compiler for
374-
other hosts or for additional target triples.
375-
"""
376-
377-
rust_repository_set(
378-
name = "rust_linux_x86_64",
379-
exec_triple = "x86_64-unknown-linux-gnu",
380-
extra_target_triples = [],
381-
version = "1.26.1",
382-
)
383-
384-
rust_repository_set(
385-
name = "rust_darwin_x86_64",
386-
exec_triple = "x86_64-apple-darwin",
387-
extra_target_triples = [],
388-
version = "1.26.1",
389-
)
390-
391-
rust_repository_set(
392-
name = "rust_freebsd_x86_64",
393-
exec_triple = "x86_64-unknown-freebsd",
394-
extra_target_triples = [],
395-
version = "1.26.1",
396-
)

util/fetch_shas.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,4 @@ emit_bzl_file_contents() {
4646
echo "}"
4747
}
4848

49-
#echo "$(enumerate_keys)[@]"
50-
5149
echo "$(emit_bzl_file_contents $(enumerate_keys))" > ./rust/known_shas.bzl

util/fetch_shas_VERSIONS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
1.26.2
44
1.27.0
55
1.27.1
6+
1.27.2

0 commit comments

Comments
 (0)