Nushell plugin for interacting with D-Bus
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

version 0.8.0: for nushell 0.95.0

+60 -26
+53 -23
Cargo.lock
··· 314 314 ] 315 315 316 316 [[package]] 317 + name = "convert_case" 318 + version = "0.6.0" 319 + source = "registry+https://github.com/rust-lang/crates.io-index" 320 + checksum = "ec182b0ca2f35d8fc196cf3404988fd8b8c739a4d270ff118a398feb0cbec1ca" 321 + dependencies = [ 322 + "unicode-segmentation", 323 + ] 324 + 325 + [[package]] 317 326 name = "core-foundation-sys" 318 327 version = "0.8.6" 319 328 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 536 545 537 546 [[package]] 538 547 name = "interprocess" 539 - version = "2.1.1" 548 + version = "2.2.0" 540 549 source = "registry+https://github.com/rust-lang/crates.io-index" 541 - checksum = "13f2533e1f1a70bec71ea7a85d1c0a4dab141c314035ce76e51a19a2f48be708" 550 + checksum = "67bafc2f5dbdad79a6d925649758d5472647b416028099f0b829d1b67fdd47d3" 542 551 dependencies = [ 543 552 "doctest-file", 544 553 "libc", ··· 771 780 ] 772 781 773 782 [[package]] 783 + name = "nu-derive-value" 784 + version = "0.95.0" 785 + source = "registry+https://github.com/rust-lang/crates.io-index" 786 + checksum = "9724b3754a25b2f8a2a7f1530e0a162fa57a3cadd0b5c3b52f75edcdb2070c09" 787 + dependencies = [ 788 + "convert_case", 789 + "proc-macro-error", 790 + "proc-macro2", 791 + "quote", 792 + "syn 2.0.66", 793 + ] 794 + 795 + [[package]] 774 796 name = "nu-engine" 775 - version = "0.94.2" 797 + version = "0.95.0" 776 798 source = "registry+https://github.com/rust-lang/crates.io-index" 777 - checksum = "c30d540e769f468448fe4f2ffe9833b3dd600ab196e02a8cbf9098e39804d4df" 799 + checksum = "f5ed7cd7d34dd3e58292eaaa658f4b7342da99e979da54babd50c08d5d6d59e5" 778 800 dependencies = [ 779 801 "nu-glob", 780 802 "nu-path", ··· 784 806 785 807 [[package]] 786 808 name = "nu-glob" 787 - version = "0.94.2" 809 + version = "0.95.0" 788 810 source = "registry+https://github.com/rust-lang/crates.io-index" 789 - checksum = "72d3681b6b6751322271e4c0d5764cc4f53fbd129e119aa74a3142ca8a725ed7" 811 + checksum = "acd2879444c53bbfb51a2ab060ae1257fe2c8446e6b2cd8a63c88a4d6a728a7a" 790 812 791 813 [[package]] 792 814 name = "nu-path" 793 - version = "0.94.2" 815 + version = "0.95.0" 794 816 source = "registry+https://github.com/rust-lang/crates.io-index" 795 - checksum = "cca82b7ebc3ffcc23c280d0a422e95789259ff918e02d996cb9301c26cb5b368" 817 + checksum = "6633f681c4c92d86198d91f3a4b212e64a33901ca492dd5529631c8ac7dd6ca9" 796 818 dependencies = [ 797 819 "dirs-next", 798 820 "omnipath", ··· 801 823 802 824 [[package]] 803 825 name = "nu-plugin" 804 - version = "0.94.2" 826 + version = "0.95.0" 805 827 source = "registry+https://github.com/rust-lang/crates.io-index" 806 - checksum = "bcba21feeff55e733c463b6f30872f65bce6f3e5b4e5f63a738490c010ca69ec" 828 + checksum = "b7844c84c9319c0dc831bc6d595990dee2ba66aab9d0a0d4d64ab414e6520b0f" 807 829 dependencies = [ 808 830 "log", 809 831 "nix", ··· 816 838 817 839 [[package]] 818 840 name = "nu-plugin-core" 819 - version = "0.94.2" 841 + version = "0.95.0" 820 842 source = "registry+https://github.com/rust-lang/crates.io-index" 821 - checksum = "b7537c2b5c85ac74199dfc7cbb7a54b4d2dbee5a8bda663eaea451012bf2266a" 843 + checksum = "b400723e072a53a1ddff07f530758b17df97cb8bf632414c547a1ad2c1225ddb" 822 844 dependencies = [ 823 845 "interprocess", 824 846 "log", ··· 832 854 833 855 [[package]] 834 856 name = "nu-plugin-protocol" 835 - version = "0.94.2" 857 + version = "0.95.0" 836 858 source = "registry+https://github.com/rust-lang/crates.io-index" 837 - checksum = "d710b0b9f8fa36f7d6b342fdd4d8613cc9af04b9252e3cb7ed37c95660902d39" 859 + checksum = "257069f3d77a7fbe47685deb3a53d2de4a4744f6869a7f977286dbadd8bdb2aa" 838 860 dependencies = [ 839 861 "bincode", 840 862 "nu-protocol", ··· 846 868 847 869 [[package]] 848 870 name = "nu-protocol" 849 - version = "0.94.2" 871 + version = "0.95.0" 850 872 source = "registry+https://github.com/rust-lang/crates.io-index" 851 - checksum = "e4e47fc3ee009e469c23fd0d7c2cce49474f4fcf5a330240b9bce5a7d4103ee5" 873 + checksum = "f83d22636a014d5db9f894db2e53fac656b686a35f1002ecc1b8b46b47474874" 852 874 dependencies = [ 853 875 "brotli", 854 876 "byte-unit", 855 877 "chrono", 856 878 "chrono-humanize", 879 + "convert_case", 857 880 "fancy-regex", 858 881 "indexmap", 859 882 "lru", 860 883 "miette", 861 884 "nix", 885 + "nu-derive-value", 862 886 "nu-path", 863 887 "nu-system", 864 888 "nu-utils", ··· 872 896 873 897 [[package]] 874 898 name = "nu-system" 875 - version = "0.94.2" 899 + version = "0.95.0" 876 900 source = "registry+https://github.com/rust-lang/crates.io-index" 877 - checksum = "97619456b3cde26ef4b346df475ffedaa79c9a04ffed32f9f9e9cb152b3be38b" 901 + checksum = "8c5e86b4e9ea84b4b12778a159adbbef5f4346213dcc4e9e58f3c40f5c9865af" 878 902 dependencies = [ 879 903 "chrono", 880 904 "itertools", ··· 892 916 893 917 [[package]] 894 918 name = "nu-utils" 895 - version = "0.94.2" 919 + version = "0.95.0" 896 920 source = "registry+https://github.com/rust-lang/crates.io-index" 897 - checksum = "a4a88fdc4783c773dbe7342d632e827cedb268957d040fb69a5432d87d4ba7b5" 921 + checksum = "bc747ba17d4762480a7569df44b49fb7f465b12b98aaa2a18aab2eeb585df79c" 898 922 dependencies = [ 899 923 "crossterm_winapi", 900 924 "log", ··· 909 933 910 934 [[package]] 911 935 name = "nu_plugin_dbus" 912 - version = "0.7.0" 936 + version = "0.8.0" 913 937 dependencies = [ 914 938 "dbus", 915 939 "nu-plugin", ··· 951 975 952 976 [[package]] 953 977 name = "os_pipe" 954 - version = "1.1.5" 978 + version = "1.2.0" 955 979 source = "registry+https://github.com/rust-lang/crates.io-index" 956 - checksum = "57119c3b893986491ec9aa85056780d3a0f3cf4da7cc09dd3650dbd6c6738fb9" 980 + checksum = "29d73ba8daf8fac13b0501d1abeddcfe21ba7401ada61a819144b6c2a4f32209" 957 981 dependencies = [ 958 982 "libc", 959 983 "windows-sys 0.52.0", ··· 1588 1612 version = "0.1.5" 1589 1613 source = "registry+https://github.com/rust-lang/crates.io-index" 1590 1614 checksum = "3b09c83c3c29d37506a3e260c08c03743a6bb66a9cd432c6934ab501a190571f" 1615 + 1616 + [[package]] 1617 + name = "unicode-segmentation" 1618 + version = "1.11.0" 1619 + source = "registry+https://github.com/rust-lang/crates.io-index" 1620 + checksum = "d4c87d22b6e3f4a18d4d40ef354e97c90fcb14dd91d7dc0aa9d8a1172ebf7202" 1591 1621 1592 1622 [[package]] 1593 1623 name = "unicode-width"
+3 -3
Cargo.toml
··· 1 1 [package] 2 2 name = "nu_plugin_dbus" 3 - version = "0.7.0" 3 + version = "0.8.0" 4 4 edition = "2021" 5 5 6 6 description = "Nushell plugin for communicating with D-Bus" ··· 14 14 15 15 [dependencies] 16 16 dbus = "0.9.7" 17 - nu-plugin = "0.94.0" 18 - nu-protocol = { version = "0.94.0", features = ["plugin"] } 17 + nu-plugin = "0.95.0" 18 + nu-protocol = { version = "0.95.0", features = ["plugin"] } 19 19 serde = { version = "1.0.196", features = ["derive"] } 20 20 serde-xml-rs = "0.6.0"
+4
src/main.rs
··· 17 17 pub struct NuPluginDbus; 18 18 19 19 impl Plugin for NuPluginDbus { 20 + fn version(&self) -> String { 21 + env!("CARGO_PKG_VERSION").into() 22 + } 23 + 20 24 fn commands(&self) -> Vec<Box<dyn PluginCommand<Plugin = Self>>> { 21 25 vec![ 22 26 Box::new(commands::Main),