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.tomldiffbeforeafterboth16legacy-this-file = []16legacy-this-file = []17# Add order preservation flag to some functions17# Add order preservation flag to some functions18exp-preserve-order = ["jrsonnet-evaluator/exp-preserve-order"]18exp-preserve-order = ["jrsonnet-evaluator/exp-preserve-order"]19# Add nonstandard `std.sha256` function20exp-more-hashes = ["dep:sha2"]21# Bigint type19# Bigint type22exp-bigint = ["num-bigint", "jrsonnet-evaluator/exp-bigint"]20exp-bigint = ["num-bigint", "jrsonnet-evaluator/exp-bigint"]2321343235# std.md533# std.md536md5 = "0.7.0"34md5 = "0.7.0"35# std.sha256, std.sha51236sha2 = "0.10.6"37# std.base6437# std.base6438base64 = "0.21.0"38base64 = "0.21.0"39# std.parseJson39# std.parseJson40serde_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 compatibility42serde_yaml_with_quirks = "0.8.24"42serde_yaml_with_quirks = "0.8.24"434344sha2 = { version = "0.10.6", optional = true }45num-bigint = { version = "0.4.3", optional = true }44num-bigint = { version = "0.4.3", optional = true }464547[build-dependencies]46[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.mddiffbeforeafterboth154}154}155```155```156156157## `exp-more-hashes`158159Adds new standard library function: `std.sha256`, upstream issue: https://github.com/google/jsonnet/pull/607160157