diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2024-06-09 12:54:50 +0200 |
|---|---|---|
| committer | Lukas Wirth <lukastw97@gmail.com> | 2024-06-09 12:54:50 +0200 |
| commit | 7053aed3dc1c097e8d84679e8714922e5a5e3c2d (patch) | |
| tree | 76bdcb22d9a67fac213c0c8db9d4789974f0b7c3 /src/tools/rust-analyzer/crates/proc-macro-api | |
| parent | 3243ea0c2ba86b1431286befa84cff19e032262a (diff) | |
Register virtual workspace Cargo.toml files in the VFS
Diffstat (limited to 'src/tools/rust-analyzer/crates/proc-macro-api')
| -rw-r--r-- | src/tools/rust-analyzer/crates/proc-macro-api/src/version.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/rust-analyzer/crates/proc-macro-api/src/version.rs b/src/tools/rust-analyzer/crates/proc-macro-api/src/version.rs index f768de3e31d..09b81250715 100644 --- a/src/tools/rust-analyzer/crates/proc-macro-api/src/version.rs +++ b/src/tools/rust-analyzer/crates/proc-macro-api/src/version.rs @@ -93,6 +93,7 @@ fn read_section<'a>(dylib_binary: &'a [u8], section_name: &str) -> io::Result<&' /// means bytes from here(including this sequence) are compressed in /// snappy compression format. Version info is inside here, so decompress /// this. +/// /// The bytes you get after decompressing the snappy format portion has /// following layout: /// * [b'r',b'u',b's',b't',0,0,0,5] is the first 8 bytes(again) @@ -102,6 +103,7 @@ fn read_section<'a>(dylib_binary: &'a [u8], section_name: &str) -> io::Result<&' /// for the version string's utf8 bytes /// * [version string bytes encoded in utf8] <- GET THIS BOI /// * [some more bytes that we don't really care but about still there] :-) +/// /// Check this issue for more about the bytes layout: /// <https://github.com/rust-lang/rust-analyzer/issues/6174> pub fn read_version(dylib_path: &AbsPath) -> io::Result<String> { |
