Skip to content

Commit c3e1af2

Browse files
committed
rsscript: add byte hash intrinsics
1 parent abd8729 commit c3e1af2

11 files changed

Lines changed: 296 additions & 97 deletions

File tree

Cargo.lock

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/reir/src/adapters/rsscript.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4545,7 +4545,11 @@ fn standard_library_export_capabilities(export: &RsScriptPackageExport) -> Vec<C
45454545
| "Random.string" => {
45464546
categories.push(CapabilityCategory::RandomRead);
45474547
}
4548-
"Hash.sha256_string" | "Hash.sha256_bytes" => {
4548+
"Hash.sha256_string"
4549+
| "Hash.sha256_bytes"
4550+
| "Hash.sha3_224_bytes"
4551+
| "Hash.sha3_256_bytes"
4552+
| "Hash.shake128_bytes" => {
45494553
categories.push(CapabilityCategory::ComputeHash);
45504554
}
45514555
"Hash.sha256_file" => {

crates/rsscript/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ rss-native-abi = { path = "../native-abi", features = ["host"] }
1515
serde = { version = "1", features = ["derive"] }
1616
serde_json = { version = "1", features = ["preserve_order"] }
1717
sha2 = "0.10"
18+
sha3 = "0.10"
1819
regex = "1"
1920
toml = "0.8"
2021
serde_yaml_ng = "0.10"

0 commit comments

Comments
 (0)