difftreelog
feat enable std.sha2 by default
in: master
Upstream issue: https://github.com/google/go-jsonnet/pull/699
3 files changed
crates/jrsonnet-stdlib/Cargo.tomldiffbeforeafterboth--- a/crates/jrsonnet-stdlib/Cargo.toml
+++ b/crates/jrsonnet-stdlib/Cargo.toml
@@ -16,8 +16,6 @@
legacy-this-file = []
# Add order preservation flag to some functions
exp-preserve-order = ["jrsonnet-evaluator/exp-preserve-order"]
-# Add nonstandard `std.sha256` function
-exp-more-hashes = ["dep:sha2"]
# Bigint type
exp-bigint = ["num-bigint", "jrsonnet-evaluator/exp-bigint"]
@@ -34,6 +32,8 @@
# std.md5
md5 = "0.7.0"
+# std.sha256, std.sha512
+sha2 = "0.10.6"
# std.base64
base64 = "0.21.0"
# std.parseJson
@@ -41,7 +41,6 @@
# std.parseYaml, custom library fork is used for C++/golang compatibility
serde_yaml_with_quirks = "0.8.24"
-sha2 = { version = "0.10.6", optional = true }
num-bigint = { version = "0.4.3", optional = true }
[build-dependencies]
crates/jrsonnet-stdlib/src/lib.rsdiffbeforeafterboth114 ("set", builtin_set::INST),114 ("set", builtin_set::INST),115 // Hash115 // Hash116 ("md5", builtin_md5::INST),116 ("md5", builtin_md5::INST),117 #[cfg(feature = "exp-more-hashes")]118 ("sha256", builtin_sha256::INST),117 ("sha256", builtin_sha256::INST),119 // Encoding118 // Encoding120 ("encodeUTF8", builtin_encode_utf8::INST),119 ("encodeUTF8", builtin_encode_utf8::INST),docs/features.mddiffbeforeafterboth--- a/docs/features.md
+++ b/docs/features.md
@@ -154,6 +154,3 @@
}
```
-## `exp-more-hashes`
-
-Adds new standard library function: `std.sha256`, upstream issue: https://github.com/google/jsonnet/pull/607