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.tomldiffbeforeafterboth1[package]2name = "jrsonnet-stdlib"3description = "jsonnet standard library packaged as crate"4version.workspace = true5repository.workspace = true6authors = ["Yaroslav Bolyukin <iam@lach.pw>"]7license = "MIT"8edition = "2021"910[features]11default = ["codegenerated-stdlib"]12# Speed-up initialization by generating code for parsed stdlib, instead13# of invoking parser for it14codegenerated-stdlib = ["jrsonnet-parser/structdump"]15# Enables legacy `std.thisFile` support, at the cost of worse caching16legacy-this-file = []17# Add order preservation flag to some functions18exp-preserve-order = ["jrsonnet-evaluator/exp-preserve-order"]19# Add nonstandard `std.sha256` function20exp-more-hashes = ["dep:sha2"]21# Bigint type22exp-bigint = ["num-bigint", "jrsonnet-evaluator/exp-bigint"]2324[dependencies]25jrsonnet-evaluator.workspace = true26jrsonnet-macros.workspace = true27jrsonnet-parser.workspace = true28jrsonnet-gcmodule.workspace = true2930# Used for stdlib AST serialization31bincode = { version = "1.3", optional = true }32# Used both for stdlib AST serialization and std.parseJson/std.parseYaml33serde = "1.0"3435# std.md536md5 = "0.7.0"37# std.base6438base64 = "0.21.0"39# std.parseJson40serde_json = "1.0"41# std.parseYaml, custom library fork is used for C++/golang compatibility42serde_yaml_with_quirks = "0.8.24"4344sha2 = { version = "0.10.6", optional = true }45num-bigint = { version = "0.4.3", optional = true }4647[build-dependencies]48jrsonnet-parser.workspace = true49structdump = { version = "0.2.0", features = ["derive"] }crates/jrsonnet-stdlib/src/lib.rsdiffbeforeafterboth--- a/crates/jrsonnet-stdlib/src/lib.rs
+++ b/crates/jrsonnet-stdlib/src/lib.rs
@@ -114,7 +114,6 @@
("set", builtin_set::INST),
// Hash
("md5", builtin_md5::INST),
- #[cfg(feature = "exp-more-hashes")]
("sha256", builtin_sha256::INST),
// Encoding
("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