diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2021-03-09 20:57:04 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2021-03-09 20:57:04 +0000 |
commit | 654313dbc7fdfc839b79592c5a06dfe8597d55b3 (patch) | |
tree | 064328d3e2417144ad3de1e4f67b9f82172ccd05 /Cargo.lock | |
parent | 4bb120c7a6abed6425534876b86d214440ba1d9a (diff) | |
parent | ad34e79bb9818cc9bf3d0cf746bd052a67c7bab9 (diff) |
Merge #6822
6822: Read version of rustc that compiled proc macro r=edwin0cheng a=jsomedon
Signed-off-by: Jay Somedon <[email protected]>
This PR is to fix #6174.
I basically
* added two methods, `read_version` and `read_section`(used by `read_version`)
* two new crates `snap` and `object` to be used by those two methods
I just noticed that some part of code were auto-reformatted by rust-analyzer on file save. Does it matter?
Co-authored-by: Jay Somedon <[email protected]>
Co-authored-by: Edwin Cheng <[email protected]>
Diffstat (limited to 'Cargo.lock')
-rw-r--r-- | Cargo.lock | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock index 51a07abe3..87cf1bf27 100644 --- a/Cargo.lock +++ b/Cargo.lock | |||
@@ -897,6 +897,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" | |||
897 | checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" | 897 | checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" |
898 | 898 | ||
899 | [[package]] | 899 | [[package]] |
900 | name = "memmap" | ||
901 | version = "0.7.0" | ||
902 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
903 | checksum = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b" | ||
904 | dependencies = [ | ||
905 | "libc", | ||
906 | "winapi", | ||
907 | ] | ||
908 | |||
909 | [[package]] | ||
900 | name = "memmap2" | 910 | name = "memmap2" |
901 | version = "0.2.1" | 911 | version = "0.2.1" |
902 | source = "registry+https://github.com/rust-lang/crates.io-index" | 912 | source = "registry+https://github.com/rust-lang/crates.io-index" |
@@ -1159,8 +1169,11 @@ dependencies = [ | |||
1159 | "crossbeam-channel", | 1169 | "crossbeam-channel", |
1160 | "jod-thread", | 1170 | "jod-thread", |
1161 | "log", | 1171 | "log", |
1172 | "memmap", | ||
1173 | "object", | ||
1162 | "serde", | 1174 | "serde", |
1163 | "serde_json", | 1175 | "serde_json", |
1176 | "snap", | ||
1164 | "stdx", | 1177 | "stdx", |
1165 | "tt", | 1178 | "tt", |
1166 | ] | 1179 | ] |
@@ -1546,6 +1559,12 @@ dependencies = [ | |||
1546 | ] | 1559 | ] |
1547 | 1560 | ||
1548 | [[package]] | 1561 | [[package]] |
1562 | name = "snap" | ||
1563 | version = "1.0.4" | ||
1564 | source = "registry+https://github.com/rust-lang/crates.io-index" | ||
1565 | checksum = "dc725476a1398f0480d56cd0ad381f6f32acf2642704456f8f59a35df464b59a" | ||
1566 | |||
1567 | [[package]] | ||
1549 | name = "socket2" | 1568 | name = "socket2" |
1550 | version = "0.3.19" | 1569 | version = "0.3.19" |
1551 | source = "registry+https://github.com/rust-lang/crates.io-index" | 1570 | source = "registry+https://github.com/rust-lang/crates.io-index" |