git.delta.rocks / jrsonnet / refs/commits / 6639b028f560

difftreelog

feat enable std.sha2 by default

Yaroslav Bolyukin2023-06-14parent: #6344af1.patch.diff
in: master
Upstream issue: https://github.com/google/go-jsonnet/pull/699

3 files changed

modifiedcrates/jrsonnet-stdlib/Cargo.tomldiffbeforeafterboth
16legacy-this-file = []16legacy-this-file = []
17# Add order preservation flag to some functions17# Add order preservation flag to some functions
18exp-preserve-order = ["jrsonnet-evaluator/exp-preserve-order"]18exp-preserve-order = ["jrsonnet-evaluator/exp-preserve-order"]
19# Add nonstandard `std.sha256` function
20exp-more-hashes = ["dep:sha2"]
21# Bigint type19# Bigint type
22exp-bigint = ["num-bigint", "jrsonnet-evaluator/exp-bigint"]20exp-bigint = ["num-bigint", "jrsonnet-evaluator/exp-bigint"]
2321
3432
35# std.md533# std.md5
36md5 = "0.7.0"34md5 = "0.7.0"
35# std.sha256, std.sha512
36sha2 = "0.10.6"
37# std.base6437# std.base64
38base64 = "0.21.0"38base64 = "0.21.0"
39# std.parseJson39# std.parseJson
40serde_json = "1.0"40serde_json = "1.0"
41# std.parseYaml, custom library fork is used for C++/golang compatibility41# std.parseYaml, custom library fork is used for C++/golang compatibility
42serde_yaml_with_quirks = "0.8.24"42serde_yaml_with_quirks = "0.8.24"
4343
44sha2 = { version = "0.10.6", optional = true }
45num-bigint = { version = "0.4.3", optional = true }44num-bigint = { version = "0.4.3", optional = true }
4645
47[build-dependencies]46[build-dependencies]
modifiedcrates/jrsonnet-stdlib/src/lib.rsdiffbeforeafterboth
114 ("set", builtin_set::INST),114 ("set", builtin_set::INST),
115 // Hash115 // Hash
116 ("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 // Encoding
120 ("encodeUTF8", builtin_encode_utf8::INST),119 ("encodeUTF8", builtin_encode_utf8::INST),
modifieddocs/features.mddiffbeforeafterboth
154}154}
155```155```
156156
157## `exp-more-hashes`
158
159Adds new standard library function: `std.sha256`, upstream issue: https://github.com/google/jsonnet/pull/607
160157