mirror of
https://github.com/denoland/deno.git
synced 2025-12-23 08:48:24 +00:00
Integrated only with deno check (and test, `run --check`, etc) currently. All spec tests for deno check pass except for 3, which i've disabled --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Divy Srivastava <me@littledivy.com>
55 lines
1.5 KiB
Rust
55 lines
1.5 KiB
Rust
// Copyright 2018-2025 the Deno authors. MIT license.
|
|
|
|
// This file is auto-generated by tools/update_tsgo.ts
|
|
// DO NOT EDIT THIS FILE MANUALLY
|
|
|
|
pub struct Hashes {
|
|
pub windows_x64: &'static str,
|
|
pub macos_x64: &'static str,
|
|
pub macos_arm64: &'static str,
|
|
pub linux_x64: &'static str,
|
|
pub linux_arm64: &'static str,
|
|
}
|
|
|
|
impl Hashes {
|
|
pub const fn all(&self) -> [&'static str; 5] {
|
|
[
|
|
self.windows_x64,
|
|
self.macos_x64,
|
|
self.macos_arm64,
|
|
self.linux_x64,
|
|
self.linux_arm64,
|
|
]
|
|
}
|
|
}
|
|
|
|
pub const VERSION: &str = "0.1.6";
|
|
pub const DOWNLOAD_BASE_URL: &str =
|
|
"https://github.com/denoland/typescript-go/releases/download/v0.1.6";
|
|
pub const HASHES: Hashes = Hashes {
|
|
windows_x64: "sha256:04f85a9a64807437471cd45ed569b1ee9910dbe9751c1a5085028ae5eb09db56",
|
|
macos_x64: "sha256:84619ab4a6ac3dc1c78a62c209ea853cf077871fe086657bc861e268b9c0412c",
|
|
macos_arm64: "sha256:cef3d3f60abe9f2947f2e30f8075d860f9bf176a5545c651eabfcaa9e791e0f9",
|
|
linux_x64: "sha256:ea0ae7f3782a8372a03ec2c1f1bbb415e0c10a43ce917b0564084f896e0df127",
|
|
linux_arm64: "sha256:67b4f4d9982ff5c5c14105b37c48b582e3dc806c8a504f1a1b5416e29de68198",
|
|
};
|
|
|
|
const _: () = {
|
|
let sha256 = "sha256".as_bytes();
|
|
|
|
let mut i = 0;
|
|
let hashes = HASHES.all();
|
|
|
|
while i < hashes.len() {
|
|
let hash = hashes[i].as_bytes();
|
|
let mut j = 0;
|
|
|
|
while j < 6 {
|
|
if hash[j] != sha256[j] {
|
|
panic!("Hash algorithm is not sha256");
|
|
}
|
|
j += 1;
|
|
}
|
|
i += 1;
|
|
}
|
|
};
|