From c1217b933a4ac7bfaac8d3fd30dbf75fd9a04966 Mon Sep 17 00:00:00 2001 From: Devyn Cairns Date: Tue, 25 Jun 2024 22:02:04 -0700 Subject: [PATCH] version 0.8.0: for nushell 0.95.0 --- Cargo.lock | 76 +++++++++++++++++++++++++++++++++++++---------------- Cargo.toml | 6 ++--- src/main.rs | 4 +++ 3 files changed, 60 insertions(+), 26 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ef48c67..2d44957 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -313,6 +313,15 @@ dependencies = [ "libloading", ] +[[package]] +name = "convert_case" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca" +dependencies = [ + "unicode-segmentation", +] + [[package]] name = "core-foundation-sys" version = "0.8.6" @@ -536,9 +545,9 @@ dependencies = [ [[package]] name = "interprocess" -version = "2.1.1" +version = "2.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13f2533e1f1a70bec71ea7a85d1c0a4dab141c314035ce76e51a19a2f48be708" +checksum = "67bafc2f5dbdad79a6d925649758d5472647b416028099f0b829d1b67fdd47d3" dependencies = [ "doctest-file", "libc", @@ -770,11 +779,24 @@ dependencies = [ "windows-sys 0.48.0", ] +[[package]] +name = "nu-derive-value" +version = "0.95.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9724b3754a25b2f8a2a7f1530e0a162fa57a3cadd0b5c3b52f75edcdb2070c09" +dependencies = [ + "convert_case", + "proc-macro-error", + "proc-macro2", + "quote", + "syn 2.0.66", +] + [[package]] name = "nu-engine" -version = "0.94.2" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c30d540e769f468448fe4f2ffe9833b3dd600ab196e02a8cbf9098e39804d4df" +checksum = "f5ed7cd7d34dd3e58292eaaa658f4b7342da99e979da54babd50c08d5d6d59e5" dependencies = [ "nu-glob", "nu-path", @@ -784,15 +806,15 @@ dependencies = [ [[package]] name = "nu-glob" -version = "0.94.2" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72d3681b6b6751322271e4c0d5764cc4f53fbd129e119aa74a3142ca8a725ed7" +checksum = "acd2879444c53bbfb51a2ab060ae1257fe2c8446e6b2cd8a63c88a4d6a728a7a" [[package]] name = "nu-path" -version = "0.94.2" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cca82b7ebc3ffcc23c280d0a422e95789259ff918e02d996cb9301c26cb5b368" +checksum = "6633f681c4c92d86198d91f3a4b212e64a33901ca492dd5529631c8ac7dd6ca9" dependencies = [ "dirs-next", "omnipath", @@ -801,9 +823,9 @@ dependencies = [ [[package]] name = "nu-plugin" -version = "0.94.2" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcba21feeff55e733c463b6f30872f65bce6f3e5b4e5f63a738490c010ca69ec" +checksum = "b7844c84c9319c0dc831bc6d595990dee2ba66aab9d0a0d4d64ab414e6520b0f" dependencies = [ "log", "nix", @@ -816,9 +838,9 @@ dependencies = [ [[package]] name = "nu-plugin-core" -version = "0.94.2" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7537c2b5c85ac74199dfc7cbb7a54b4d2dbee5a8bda663eaea451012bf2266a" +checksum = "b400723e072a53a1ddff07f530758b17df97cb8bf632414c547a1ad2c1225ddb" dependencies = [ "interprocess", "log", @@ -832,9 +854,9 @@ dependencies = [ [[package]] name = "nu-plugin-protocol" -version = "0.94.2" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d710b0b9f8fa36f7d6b342fdd4d8613cc9af04b9252e3cb7ed37c95660902d39" +checksum = "257069f3d77a7fbe47685deb3a53d2de4a4744f6869a7f977286dbadd8bdb2aa" dependencies = [ "bincode", "nu-protocol", @@ -846,19 +868,21 @@ dependencies = [ [[package]] name = "nu-protocol" -version = "0.94.2" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4e47fc3ee009e469c23fd0d7c2cce49474f4fcf5a330240b9bce5a7d4103ee5" +checksum = "f83d22636a014d5db9f894db2e53fac656b686a35f1002ecc1b8b46b47474874" dependencies = [ "brotli", "byte-unit", "chrono", "chrono-humanize", + "convert_case", "fancy-regex", "indexmap", "lru", "miette", "nix", + "nu-derive-value", "nu-path", "nu-system", "nu-utils", @@ -872,9 +896,9 @@ dependencies = [ [[package]] name = "nu-system" -version = "0.94.2" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97619456b3cde26ef4b346df475ffedaa79c9a04ffed32f9f9e9cb152b3be38b" +checksum = "8c5e86b4e9ea84b4b12778a159adbbef5f4346213dcc4e9e58f3c40f5c9865af" dependencies = [ "chrono", "itertools", @@ -892,9 +916,9 @@ dependencies = [ [[package]] name = "nu-utils" -version = "0.94.2" +version = "0.95.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4a88fdc4783c773dbe7342d632e827cedb268957d040fb69a5432d87d4ba7b5" +checksum = "bc747ba17d4762480a7569df44b49fb7f465b12b98aaa2a18aab2eeb585df79c" dependencies = [ "crossterm_winapi", "log", @@ -909,7 +933,7 @@ dependencies = [ [[package]] name = "nu_plugin_dbus" -version = "0.7.0" +version = "0.8.0" dependencies = [ "dbus", "nu-plugin", @@ -951,9 +975,9 @@ checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "os_pipe" -version = "1.1.5" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "57119c3b893986491ec9aa85056780d3a0f3cf4da7cc09dd3650dbd6c6738fb9" +checksum = "29d73ba8daf8fac13b0501d1abeddcfe21ba7401ada61a819144b6c2a4f32209" dependencies = [ "libc", "windows-sys 0.52.0", @@ -1589,6 +1613,12 @@ version = "0.1.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" +[[package]] +name = "unicode-segmentation" +version = "1.11.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202" + [[package]] name = "unicode-width" version = "0.1.12" diff --git a/Cargo.toml b/Cargo.toml index a33b0cc..792b212 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nu_plugin_dbus" -version = "0.7.0" +version = "0.8.0" edition = "2021" description = "Nushell plugin for communicating with D-Bus" @@ -14,7 +14,7 @@ repository = "https://github.com/devyn/nu_plugin_dbus" [dependencies] dbus = "0.9.7" -nu-plugin = "0.94.0" -nu-protocol = { version = "0.94.0", features = ["plugin"] } +nu-plugin = "0.95.0" +nu-protocol = { version = "0.95.0", features = ["plugin"] } serde = { version = "1.0.196", features = ["derive"] } serde-xml-rs = "0.6.0" diff --git a/src/main.rs b/src/main.rs index 7a5a2c8..cdd38b7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -17,6 +17,10 @@ fn main() { pub struct NuPluginDbus; impl Plugin for NuPluginDbus { + fn version(&self) -> String { + env!("CARGO_PKG_VERSION").into() + } + fn commands(&self) -> Vec>> { vec![ Box::new(commands::Main),