summaryrefslogtreecommitdiff
path: root/runtime/ops
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2024-08-15 22:47:16 +0100
committerGitHub <noreply@github.com>2024-08-15 23:47:16 +0200
commit2bb013f9baa927fc7b392766b0182b91380b9aa8 (patch)
treeca8a7ea961b50213adf0904d724974c317cefb55 /runtime/ops
parent5ec3c5c3a46ca95f355a4520676b85ac619ca102 (diff)
refactor: `version` module exports a single const struct (#25014)
This commit rewrites the internal `version` module that exported various information about the current executable. Instead of exporting several consts, we are now exporting a single const structure that contains all the necessary information. This is the first step towards cleaning up how we use this information and should allow us to use SUI to be able to patch this information in already produced binary making it easier to cut new releases. --------- Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
Diffstat (limited to 'runtime/ops')
-rw-r--r--runtime/ops/bootstrap.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/runtime/ops/bootstrap.rs b/runtime/ops/bootstrap.rs
index 997bebd76..88475f415 100644
--- a/runtime/ops/bootstrap.rs
+++ b/runtime/ops/bootstrap.rs
@@ -36,7 +36,6 @@ deno_core::extension!(
#[derive(Serialize)]
#[serde(rename_all = "camelCase")]
pub struct SnapshotOptions {
- pub deno_version: String,
pub ts_version: String,
pub v8_version: &'static str,
pub target: String,
@@ -54,7 +53,6 @@ impl Default for SnapshotOptions {
};
Self {
- deno_version: "dev".to_owned(),
ts_version: "n/a".to_owned(),
v8_version: deno_core::v8_version(),
target,