Skip to content

Commit

Permalink
target_lexicon
Browse files Browse the repository at this point in the history
  • Loading branch information
nayeemrmn committed Aug 4, 2023
1 parent 6547ca6 commit 485c212
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ slab = "0.4"
smallvec = "1.8"
socket2 = "0.4.7"
tar = "=0.4.38"
target-lexicon = "0.12.11"
tempfile = "3.4.0"
thiserror = "1.0.40"
tokio = { version = "1.28.1", features = ["full"] }
Expand Down
1 change: 1 addition & 0 deletions ext/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ serde = "1.0.149"
sha-1 = "0.10.0"
sha2.workspace = true
signature.workspace = true
target-lexicon.workspace = true
tokio.workspace = true
typenum = "1.15.0"
whoami = "1.4.0"
Expand Down
7 changes: 1 addition & 6 deletions ext/node/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,7 @@ pub static NODE_ENV_VAR_ALLOWLIST: Lazy<HashSet<String>> = Lazy::new(|| {

#[op]
fn op_node_build_os() -> String {
std::env::var("TARGET")
.unwrap()
.split('-')
.nth(2)
.unwrap()
.to_string()
target_lexicon::HOST.operating_system.to_string()
}

#[op(fast)]
Expand Down

0 comments on commit 485c212

Please sign in to comment.