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# Bigint type20exp-bigint = ["num-bigint", "jrsonnet-evaluator/exp-bigint"]2122[dependencies]23jrsonnet-evaluator.workspace = true24jrsonnet-macros.workspace = true25jrsonnet-parser.workspace = true26jrsonnet-gcmodule.workspace = true2728# Used for stdlib AST serialization29bincode = { version = "1.3", optional = true }30# Used both for stdlib AST serialization and std.parseJson/std.parseYaml31serde = "1.0"3233# std.md534md5 = "0.7.0"35# std.sha256, std.sha51236sha2 = "0.10.6"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"4344num-bigint = { version = "0.4.3", optional = true }4546[build-dependencies]47jrsonnet-parser.workspace = true48structdump = { 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