From 876c771466430a22cc8bae21348698162f01add4 Mon Sep 17 00:00:00 2001 From: Sehyo Chang Date: Fri, 22 Sep 2023 20:30:25 -0700 Subject: [PATCH] migrat to 2021 --- Cargo.lock | 78 +++++++++++++++++++++++++++++++++++++++++++++-- nj-cli/Cargo.toml | 4 +-- nj-sys/Cargo.toml | 2 +- 3 files changed, 79 insertions(+), 5 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 14e66f37..244c7585 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -320,6 +320,12 @@ dependencies = [ "syn 2.0.37", ] +[[package]] +name = "equivalent" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" + [[package]] name = "errno" version = "0.3.3" @@ -544,6 +550,12 @@ dependencies = [ "wasm-bindgen", ] +[[package]] +name = "hashbrown" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a" + [[package]] name = "heck" version = "0.3.3" @@ -569,6 +581,16 @@ dependencies = [ "unicase", ] +[[package]] +name = "indexmap" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d5477fe2230a79769d8dc68e0eabf5437907c0457a5614a9e8dddb67f65eb65d" +dependencies = [ + "equivalent", + "hashbrown", +] + [[package]] name = "instant" version = "0.1.12" @@ -730,7 +752,7 @@ dependencies = [ "log", "serde", "structopt", - "toml", + "toml 0.8.0", ] [[package]] @@ -1199,6 +1221,15 @@ dependencies = [ "serde", ] +[[package]] +name = "serde_spanned" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "96426c9936fd7a0124915f9185ea1d20aa9445cc9821142f0a73bc9207a2e186" +dependencies = [ + "serde", +] + [[package]] name = "sharded-slab" version = "0.1.4" @@ -1368,6 +1399,40 @@ dependencies = [ "serde", ] +[[package]] +name = "toml" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c226a7bba6d859b63c92c4b4fe69c5b6b72d0cb897dbc8e6012298e6154cb56e" +dependencies = [ + "serde", + "serde_spanned", + "toml_datetime", + "toml_edit", +] + +[[package]] +name = "toml_datetime" +version = "0.6.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7cda73e2f1397b1262d6dfdcef8aafae14d1de7748d66822d3bfeeb6d03e5e4b" +dependencies = [ + "serde", +] + +[[package]] +name = "toml_edit" +version = "0.20.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8ff63e60a958cefbb518ae1fd6566af80d9d4be430a33f3723dfc47d1d411d95" +dependencies = [ + "indexmap", + "serde", + "serde_spanned", + "toml_datetime", + "winnow", +] + [[package]] name = "tracing" version = "0.1.37" @@ -1440,7 +1505,7 @@ dependencies = [ "serde", "serde_json", "termcolor", - "toml", + "toml 0.5.11", ] [[package]] @@ -1679,6 +1744,15 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" +[[package]] +name = "winnow" +version = "0.5.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c2e3184b9c4e92ad5167ca73039d0c42476302ab603e2fec4487511f38ccefc" +dependencies = [ + "memchr", +] + [[package]] name = "ws_stream_wasm" version = "0.7.4" diff --git a/nj-cli/Cargo.toml b/nj-cli/Cargo.toml index de5e0163..837b406a 100644 --- a/nj-cli/Cargo.toml +++ b/nj-cli/Cargo.toml @@ -2,7 +2,7 @@ name = "nj-cli" version = "0.4.3" authors = ["fluvio.io"] -edition = "2018" +edition = "2021" description = "build tool for node-bindgen" repository = "https://github.com/infinyon/node-bindgen" license = "Apache-2.0" @@ -11,5 +11,5 @@ license = "Apache-2.0" log = "0.4.8" structopt = { version = "0.3.18", default-features = false } cargo_metadata = "0.18.0" -toml = "0.5.6" +toml = "0.8.0" serde = { version = "1.0.114", features = ["derive"] } diff --git a/nj-sys/Cargo.toml b/nj-sys/Cargo.toml index 1a7c5752..3203b3d5 100644 --- a/nj-sys/Cargo.toml +++ b/nj-sys/Cargo.toml @@ -2,7 +2,7 @@ name = "nj-sys" version = "4.0.0" authors = ["Fluvio Contributors "] -edition = "2018" +edition = "2021" description = "low level binding to Node N-API" repository = "https://github.com/infinyon/node-bindgen" readme = "README.md"