git.delta.rocks / jrsonnet / refs/commits / 02f748d69f6c

difftreelog

ci add destructuring to experimental

Yaroslav Bolyukin2022-04-30parent: #f546d2e.patch.diff
in: master

4 files changed

modifiedCargo.lockdiffbeforeafterboth
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -70,16 +70,16 @@
 
 [[package]]
 name = "clap"
-version = "3.1.8"
+version = "3.1.13"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "71c47df61d9e16dc010b55dba1952a57d8c215dbb533fd13cdd13369aac73b1c"
+checksum = "c4b3ee449efa0c4f95cd48b00539829d3655a98e189a90617246492788d22404"
 dependencies = [
  "atty",
  "bitflags",
  "clap_derive",
+ "clap_lex",
  "indexmap",
  "lazy_static",
- "os_str_bytes",
  "strsim",
  "termcolor",
  "textwrap",
@@ -87,9 +87,9 @@
 
 [[package]]
 name = "clap_complete"
-version = "3.1.1"
+version = "3.1.3"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "df6f3613c0a3cddfd78b41b10203eb322cb29b600cbdf808a7d3db95691b8e25"
+checksum = "1d7ca9141e27e6ebc52e3c378b0c07f3cea52db46ed1cc5861735fb697b56356"
 dependencies = [
  "clap",
 ]
@@ -108,6 +108,15 @@
 ]
 
 [[package]]
+name = "clap_lex"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a37c35f1112dad5e6e0b1adaff798507497a18fceeb30cceb3bae7d1427b9213"
+dependencies = [
+ "os_str_bytes",
+]
+
+[[package]]
 name = "cloudabi"
 version = "0.0.3"
 source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -308,12 +317,6 @@
 version = "0.7.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "490cc448043f947bae3cbee9c203358d62dbee0db12107a74be5c30ccfd09771"
-
-[[package]]
-name = "memchr"
-version = "2.4.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a"
 
 [[package]]
 name = "mimalloc-sys"
@@ -339,9 +342,6 @@
 version = "6.0.0"
 source = "registry+https://github.com/rust-lang/crates.io-index"
 checksum = "8e22443d1643a904602595ba1cd8f7d896afe56d26712531c5ff73a15b2fbf64"
-dependencies = [
- "memchr",
-]
 
 [[package]]
 name = "parking_lot"
@@ -426,18 +426,18 @@
 
 [[package]]
 name = "proc-macro2"
-version = "1.0.37"
+version = "1.0.32"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ec757218438d5fda206afc041538b2f6d889286160d649a86a24d37e1235afd1"
+checksum = "ba508cc11742c0dc5c1659771673afbab7a0efab23aa17e854cbab0837ed0b43"
 dependencies = [
  "unicode-xid",
 ]
 
 [[package]]
 name = "quote"
-version = "1.0.18"
+version = "1.0.10"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a1feb54ed693b93a84e14094943b84b7c4eae204c512b7ccb95ab0c66d278ad1"
+checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05"
 dependencies = [
  "proc-macro2",
 ]
@@ -523,9 +523,9 @@
 
 [[package]]
 name = "syn"
-version = "1.0.91"
+version = "1.0.82"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b683b2b825c8eef438b77c36a06dc262294da3d5a5813fac20da149241dcd44d"
+checksum = "8daf5dd0bb60cbd4137b1b587d2fc0ae729bc07cf01cd70b36a1ed5ade3b9d59"
 dependencies = [
  "proc-macro2",
  "quote",
modifiedbindings/jsonnet/Cargo.tomldiffbeforeafterboth
--- a/bindings/jsonnet/Cargo.toml
+++ b/bindings/jsonnet/Cargo.toml
@@ -17,5 +17,6 @@
 
 [features]
 interop = []
-experimental = ["exp-preserve-order"]
+experimental = ["exp-preserve-order", "exp-destruct"]
 exp-preserve-order = ["jrsonnet-evaluator/exp-preserve-order"]
+exp-destruct = ["jrsonnet-evaluator/exp-destruct"]
modifiedcmds/jrsonnet/Cargo.tomldiffbeforeafterboth
--- a/cmds/jrsonnet/Cargo.toml
+++ b/cmds/jrsonnet/Cargo.toml
@@ -7,7 +7,7 @@
 edition = "2021"
 
 [features]
-experimental = ["exp-preserve-order"]
+experimental = ["exp-preserve-order", "exp-destruct"]
 # Use mimalloc as allocator
 mimalloc = ["mimallocator"]
 # Experimental feature, which allows to preserve order of object fields
modifiedcrates/jrsonnet-evaluator/Cargo.tomldiffbeforeafterboth
before · crates/jrsonnet-evaluator/Cargo.toml
1[package]2name = "jrsonnet-evaluator"3description = "jsonnet interpreter"4version = "0.4.2"5authors = ["Yaroslav Bolyukin <iam@lach.pw>"]6license = "MIT"7edition = "2021"89[features]10default = ["serialized-stdlib", "explaining-traces"]11# Serializes standard library AST instead of parsing them every run12serialized-stdlib = ["bincode", "jrsonnet-parser/serde"]13# Rustc-like trace visualization14explaining-traces = ["annotate-snippets"]15# Allows library authors to throw custom errors16anyhow-error = ["anyhow"]1718# Allows to preserve field order in objects19exp-preserve-order = []20exp-serde-preserve-order = ["serde_json/preserve_order"]21# Implements field destructuring22exp-destruct = []2324[dependencies]25jrsonnet-interner = { path = "../jrsonnet-interner", version = "0.4.2" }26jrsonnet-parser = { path = "../jrsonnet-parser", version = "0.4.2" }27jrsonnet-stdlib = { path = "../jrsonnet-stdlib", version = "0.4.2" }28jrsonnet-types = { path = "../jrsonnet-types", version = "0.4.2" }29jrsonnet-macros = { path = "../jrsonnet-macros", version = "0.4.2" }30pathdiff = "0.2.1"3132md5 = "0.7.0"33base64 = "0.13.0"34rustc-hash = "1.1"3536thiserror = "1.0"37gcmodule = { git = "https://github.com/CertainLach/gcmodule", branch = "jrsonnet" }3839serde = "1.0"40serde_json = "1.0"41serde_yaml = { git = "https://github.com/CertainLach/serde-yaml", branch = "feature/old-octals-quirk" }4243[dependencies.anyhow]44version = "1.0"45optional = true4647# Serialized stdlib48[dependencies.bincode]49version = "1.3"50optional = true5152# Explaining traces53[dependencies.annotate-snippets]54version = "0.9.1"55features = ["color"]56optional = true5758[build-dependencies]59jrsonnet-stdlib = { path = "../jrsonnet-stdlib", version = "0.4.2" }60jrsonnet-parser = { path = "../jrsonnet-parser", version = "0.4.2" }61serde = "1.0"62bincode = "1.3"
after · crates/jrsonnet-evaluator/Cargo.toml
1[package]2name = "jrsonnet-evaluator"3description = "jsonnet interpreter"4version = "0.4.2"5authors = ["Yaroslav Bolyukin <iam@lach.pw>"]6license = "MIT"7edition = "2021"89[features]10default = ["serialized-stdlib", "explaining-traces"]11# Serializes standard library AST instead of parsing them every run12serialized-stdlib = ["bincode", "jrsonnet-parser/serde"]13# Rustc-like trace visualization14explaining-traces = ["annotate-snippets"]15# Allows library authors to throw custom errors16anyhow-error = ["anyhow"]1718# Allows to preserve field order in objects19exp-preserve-order = []20exp-serde-preserve-order = ["serde_json/preserve_order"]21# Implements field destructuring22exp-destruct = ["jrsonnet-parser/exp-destruct"]2324[dependencies]25jrsonnet-interner = { path = "../jrsonnet-interner", version = "0.4.2" }26jrsonnet-parser = { path = "../jrsonnet-parser", version = "0.4.2" }27jrsonnet-stdlib = { path = "../jrsonnet-stdlib", version = "0.4.2" }28jrsonnet-types = { path = "../jrsonnet-types", version = "0.4.2" }29jrsonnet-macros = { path = "../jrsonnet-macros", version = "0.4.2" }30pathdiff = "0.2.1"3132md5 = "0.7.0"33base64 = "0.13.0"34rustc-hash = "1.1"3536thiserror = "1.0"37gcmodule = { git = "https://github.com/CertainLach/gcmodule", branch = "jrsonnet" }3839serde = "1.0"40serde_json = "1.0"41serde_yaml = { git = "https://github.com/CertainLach/serde-yaml", branch = "feature/old-octals-quirk" }4243[dependencies.anyhow]44version = "1.0"45optional = true4647# Serialized stdlib48[dependencies.bincode]49version = "1.3"50optional = true5152# Explaining traces53[dependencies.annotate-snippets]54version = "0.9.1"55features = ["color"]56optional = true5758[build-dependencies]59jrsonnet-stdlib = { path = "../jrsonnet-stdlib", version = "0.4.2" }60jrsonnet-parser = { path = "../jrsonnet-parser", version = "0.4.2" }61serde = "1.0"62bincode = "1.3"