Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
815 changes: 337 additions & 478 deletions Cargo.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "nu_plugin_dbus"
version = "0.14.0"
edition = "2021"
version = "0.15.0"
edition = "2024"

description = "Nushell plugin for communicating with D-Bus"
authors = ["Devyn Cairns <[email protected]>"]
Expand All @@ -14,7 +14,7 @@ repository = "https://github.com/devyn/nu_plugin_dbus"

[dependencies]
dbus = "0.9.7"
nu-plugin = "0.101.0"
nu-protocol = { version = "0.101.0", features = ["plugin"] }
nu-plugin = "0.107.0"
nu-protocol = { version = "0.107.0", features = ["plugin"] }
serde = { version = "1.0.196", features = ["derive"] }
serde-xml-rs = "0.6.0"
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This should be in sync with nushell
[toolchain]
profile = "default"
channel = "1.81.0"
channel = "1.87.0"
2 changes: 1 addition & 1 deletion src/commands/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl SimplePluginCommand for Call {
vec!["dbus"]
}

fn examples(&self) -> Vec<Example> {
fn examples(&self) -> Vec<Example<'_>> {
vec![
Example {
example: "dbus call --dest=org.freedesktop.DBus \
Expand Down
2 changes: 1 addition & 1 deletion src/commands/get.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl SimplePluginCommand for Get {
vec!["dbus", "property", "read"]
}

fn examples(&self) -> Vec<Example> {
fn examples(&self) -> Vec<Example<'_>> {
vec![Example {
example: "dbus get --dest=org.mpris.MediaPlayer2.spotify \
/org/mpris/MediaPlayer2 \
Expand Down
2 changes: 1 addition & 1 deletion src/commands/get_all.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl SimplePluginCommand for GetAll {
vec!["dbus", "properties", "property", "get"]
}

fn examples(&self) -> Vec<Example> {
fn examples(&self) -> Vec<Example<'_>> {
vec![Example {
example: "dbus get-all --dest=org.mpris.MediaPlayer2.spotify \
/org/mpris/MediaPlayer2 \
Expand Down
2 changes: 1 addition & 1 deletion src/commands/introspect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ impl SimplePluginCommand for Introspect {
vec!["dbus", "help", "method"]
}

fn examples(&self) -> Vec<Example> {
fn examples(&self) -> Vec<Example<'_>> {
vec![
Example {
example: "dbus introspect --dest=org.mpris.MediaPlayer2.spotify \
Expand Down
2 changes: 1 addition & 1 deletion src/commands/list.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl SimplePluginCommand for List {
vec!["dbus", "list", "find", "search", "help"]
}

fn examples(&self) -> Vec<Example> {
fn examples(&self) -> Vec<Example<'_>> {
vec![
Example {
example: "dbus list",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ impl SimplePluginCommand for Set {
vec!["dbus", "property", "write", "put"]
}

fn examples(&self) -> Vec<Example> {
fn examples(&self) -> Vec<Example<'_>> {
vec![Example {
example: "dbus set --dest=org.mpris.MediaPlayer2.spotify \
/org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player \
Expand Down
2 changes: 1 addition & 1 deletion src/pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ impl Pattern {
}
'?' => tokens.push(PatternToken::AnyChar),
_ => match tokens.last_mut() {
Some(PatternToken::Exact(ref mut s)) => s.push(ch),
Some(PatternToken::Exact(s)) => s.push(ch),
_ => tokens.push(PatternToken::Exact(ch.into())),
},
}
Expand Down