Nushell plugin for interacting with D-Bus
0
fork

Configure Feed

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

release 0.6.0: support for nushell 0.93.0

+312 -25
+303 -20
Cargo.lock
··· 41 41 ] 42 42 43 43 [[package]] 44 + name = "alloc-no-stdlib" 45 + version = "2.0.4" 46 + source = "registry+https://github.com/rust-lang/crates.io-index" 47 + checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3" 48 + 49 + [[package]] 50 + name = "alloc-stdlib" 51 + version = "0.2.2" 52 + source = "registry+https://github.com/rust-lang/crates.io-index" 53 + checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece" 54 + dependencies = [ 55 + "alloc-no-stdlib", 56 + ] 57 + 58 + [[package]] 44 59 name = "allocator-api2" 45 60 version = "0.2.18" 46 61 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 68 83 checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" 69 84 70 85 [[package]] 86 + name = "async-channel" 87 + version = "2.2.1" 88 + source = "registry+https://github.com/rust-lang/crates.io-index" 89 + checksum = "136d4d23bcc79e27423727b36823d86233aad06dfea531837b038394d11e9928" 90 + dependencies = [ 91 + "concurrent-queue", 92 + "event-listener 5.3.0", 93 + "event-listener-strategy 0.5.2", 94 + "futures-core", 95 + "pin-project-lite", 96 + ] 97 + 98 + [[package]] 99 + name = "async-lock" 100 + version = "3.3.0" 101 + source = "registry+https://github.com/rust-lang/crates.io-index" 102 + checksum = "d034b430882f8381900d3fe6f0aaa3ad94f2cb4ac519b429692a1bc2dda4ae7b" 103 + dependencies = [ 104 + "event-listener 4.0.3", 105 + "event-listener-strategy 0.4.0", 106 + "pin-project-lite", 107 + ] 108 + 109 + [[package]] 110 + name = "async-task" 111 + version = "4.7.1" 112 + source = "registry+https://github.com/rust-lang/crates.io-index" 113 + checksum = "8b75356056920673b02621b35afd0f7dda9306d03c79a30f5c56c44cf256e3de" 114 + 115 + [[package]] 116 + name = "atomic-waker" 117 + version = "1.1.2" 118 + source = "registry+https://github.com/rust-lang/crates.io-index" 119 + checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" 120 + 121 + [[package]] 71 122 name = "autocfg" 72 123 version = "1.2.0" 73 124 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 136 187 ] 137 188 138 189 [[package]] 190 + name = "blocking" 191 + version = "1.6.0" 192 + source = "registry+https://github.com/rust-lang/crates.io-index" 193 + checksum = "495f7104e962b7356f0aeb34247aca1fe7d2e783b346582db7f2904cb5717e88" 194 + dependencies = [ 195 + "async-channel", 196 + "async-lock", 197 + "async-task", 198 + "futures-io", 199 + "futures-lite", 200 + "piper", 201 + ] 202 + 203 + [[package]] 139 204 name = "borsh" 140 205 version = "1.4.0" 141 206 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 160 225 ] 161 226 162 227 [[package]] 228 + name = "brotli" 229 + version = "5.0.0" 230 + source = "registry+https://github.com/rust-lang/crates.io-index" 231 + checksum = "19483b140a7ac7174d34b5a581b406c64f84da5409d3e09cf4fff604f9270e67" 232 + dependencies = [ 233 + "alloc-no-stdlib", 234 + "alloc-stdlib", 235 + "brotli-decompressor", 236 + ] 237 + 238 + [[package]] 239 + name = "brotli-decompressor" 240 + version = "4.0.0" 241 + source = "registry+https://github.com/rust-lang/crates.io-index" 242 + checksum = "e6221fe77a248b9117d431ad93761222e1cf8ff282d9d1d5d9f53d6299a1cf76" 243 + dependencies = [ 244 + "alloc-no-stdlib", 245 + "alloc-stdlib", 246 + ] 247 + 248 + [[package]] 163 249 name = "bumpalo" 164 250 version = "3.16.0" 165 251 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 272 358 ] 273 359 274 360 [[package]] 361 + name = "concurrent-queue" 362 + version = "2.5.0" 363 + source = "registry+https://github.com/rust-lang/crates.io-index" 364 + checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973" 365 + dependencies = [ 366 + "crossbeam-utils", 367 + ] 368 + 369 + [[package]] 275 370 name = "core-foundation-sys" 276 371 version = "0.8.6" 277 372 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 384 479 ] 385 480 386 481 [[package]] 482 + name = "event-listener" 483 + version = "4.0.3" 484 + source = "registry+https://github.com/rust-lang/crates.io-index" 485 + checksum = "67b215c49b2b248c855fb73579eb1f4f26c38ffdc12973e20e07b91d78d5646e" 486 + dependencies = [ 487 + "concurrent-queue", 488 + "parking", 489 + "pin-project-lite", 490 + ] 491 + 492 + [[package]] 493 + name = "event-listener" 494 + version = "5.3.0" 495 + source = "registry+https://github.com/rust-lang/crates.io-index" 496 + checksum = "6d9944b8ca13534cdfb2800775f8dd4902ff3fc75a50101466decadfdf322a24" 497 + dependencies = [ 498 + "concurrent-queue", 499 + "parking", 500 + "pin-project-lite", 501 + ] 502 + 503 + [[package]] 504 + name = "event-listener-strategy" 505 + version = "0.4.0" 506 + source = "registry+https://github.com/rust-lang/crates.io-index" 507 + checksum = "958e4d70b6d5e81971bebec42271ec641e7ff4e170a6fa605f2b8a8b65cb97d3" 508 + dependencies = [ 509 + "event-listener 4.0.3", 510 + "pin-project-lite", 511 + ] 512 + 513 + [[package]] 514 + name = "event-listener-strategy" 515 + version = "0.5.2" 516 + source = "registry+https://github.com/rust-lang/crates.io-index" 517 + checksum = "0f214dc438f977e6d4e3500aaa277f5ad94ca83fbbd9b1a15713ce2344ccc5a1" 518 + dependencies = [ 519 + "event-listener 5.3.0", 520 + "pin-project-lite", 521 + ] 522 + 523 + [[package]] 387 524 name = "fancy-regex" 388 525 version = "0.13.0" 389 526 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 395 532 ] 396 533 397 534 [[package]] 535 + name = "fastrand" 536 + version = "2.1.0" 537 + source = "registry+https://github.com/rust-lang/crates.io-index" 538 + checksum = "9fc0510504f03c51ada170672ac806f1f105a88aa97a5281117e1ddc3368e51a" 539 + 540 + [[package]] 398 541 name = "flate2" 399 542 version = "1.0.29" 400 543 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 411 554 checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" 412 555 413 556 [[package]] 557 + name = "futures-core" 558 + version = "0.3.30" 559 + source = "registry+https://github.com/rust-lang/crates.io-index" 560 + checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" 561 + 562 + [[package]] 563 + name = "futures-io" 564 + version = "0.3.30" 565 + source = "registry+https://github.com/rust-lang/crates.io-index" 566 + checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" 567 + 568 + [[package]] 569 + name = "futures-lite" 570 + version = "2.3.0" 571 + source = "registry+https://github.com/rust-lang/crates.io-index" 572 + checksum = "52527eb5074e35e9339c6b4e8d12600c7128b68fb25dcb9fa9dec18f7c25f3a5" 573 + dependencies = [ 574 + "futures-core", 575 + "pin-project-lite", 576 + ] 577 + 578 + [[package]] 414 579 name = "getrandom" 415 580 version = "0.2.14" 416 581 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 486 651 ] 487 652 488 653 [[package]] 654 + name = "interprocess" 655 + version = "1.2.1" 656 + source = "registry+https://github.com/rust-lang/crates.io-index" 657 + checksum = "81f2533f3be42fffe3b5e63b71aeca416c1c3bc33e4e27be018521e76b1f38fb" 658 + dependencies = [ 659 + "blocking", 660 + "cfg-if", 661 + "futures-core", 662 + "futures-io", 663 + "intmap", 664 + "libc", 665 + "once_cell", 666 + "rustc_version", 667 + "spinning", 668 + "thiserror", 669 + "to_method", 670 + "winapi", 671 + ] 672 + 673 + [[package]] 674 + name = "intmap" 675 + version = "0.7.1" 676 + source = "registry+https://github.com/rust-lang/crates.io-index" 677 + checksum = "ae52f28f45ac2bc96edb7714de995cffc174a395fb0abf5bff453587c980d7b9" 678 + 679 + [[package]] 489 680 name = "inventory" 490 681 version = "0.3.15" 491 682 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 584 775 version = "0.4.13" 585 776 source = "registry+https://github.com/rust-lang/crates.io-index" 586 777 checksum = "01cda141df6706de531b6c46c3a33ecca755538219bd484262fa09410c13539c" 778 + 779 + [[package]] 780 + name = "lock_api" 781 + version = "0.4.12" 782 + source = "registry+https://github.com/rust-lang/crates.io-index" 783 + checksum = "07af8b9cdd281b7915f413fa73f29ebd5d55d0d3f0155584dade1ff18cea1b17" 784 + dependencies = [ 785 + "autocfg", 786 + "scopeguard", 787 + ] 587 788 588 789 [[package]] 589 790 name = "log" ··· 710 911 711 912 [[package]] 712 913 name = "nu-engine" 713 - version = "0.92.2" 914 + version = "0.93.0" 714 915 source = "registry+https://github.com/rust-lang/crates.io-index" 715 - checksum = "bd8c05bbc579270cc037ccea32553ea19aec0d355a659b39dc029174a38917c7" 916 + checksum = "fe4acc8037f975add7e0f7d5543af22594ae836d6b87c518f1faee4b5e1667b5" 716 917 dependencies = [ 717 918 "nu-glob", 718 919 "nu-path", ··· 722 923 723 924 [[package]] 724 925 name = "nu-glob" 725 - version = "0.92.2" 926 + version = "0.93.0" 726 927 source = "registry+https://github.com/rust-lang/crates.io-index" 727 - checksum = "f99c4b5313cee673237644ea8d5e60992306ee452325388e473e0ec28f4bea28" 928 + checksum = "1c3ce70012e0edbcffee9ed789c55082a0f981a9d64de3f3f44ea2ad364c634c" 728 929 729 930 [[package]] 730 931 name = "nu-path" 731 - version = "0.92.2" 932 + version = "0.93.0" 732 933 source = "registry+https://github.com/rust-lang/crates.io-index" 733 - checksum = "ec3d36a8cfb454e06fc191676bccc67c629373506ba188f9c11706956eb813ee" 934 + checksum = "79efe5ac6af42907fb7cc498f7c38c9ad4a7fa3168922bc4411f14459067a44f" 734 935 dependencies = [ 735 936 "dirs-next", 736 937 "omnipath", ··· 739 940 740 941 [[package]] 741 942 name = "nu-plugin" 742 - version = "0.92.2" 943 + version = "0.93.0" 743 944 source = "registry+https://github.com/rust-lang/crates.io-index" 744 - checksum = "229ab6cac7946774dd5c626ffe57b079897beb6ad43bc4e9bcfa5a55bcf307d9" 945 + checksum = "97553a124421684234379dbd7cdc9d97c71be03555d33d9fa3cf97e3fef9e5b7" 745 946 dependencies = [ 746 - "bincode", 747 947 "log", 748 - "miette", 948 + "nix", 749 949 "nu-engine", 950 + "nu-plugin-core", 951 + "nu-plugin-protocol", 952 + "nu-protocol", 953 + "thiserror", 954 + ] 955 + 956 + [[package]] 957 + name = "nu-plugin-core" 958 + version = "0.93.0" 959 + source = "registry+https://github.com/rust-lang/crates.io-index" 960 + checksum = "9ca62c471f46e3a573e3190a08e7913c385391965e2343c22fc0bb84c9678ab2" 961 + dependencies = [ 962 + "interprocess", 963 + "log", 964 + "nu-plugin-protocol", 750 965 "nu-protocol", 751 966 "rmp-serde", 967 + "serde", 968 + "serde_json", 969 + "windows 0.54.0", 970 + ] 971 + 972 + [[package]] 973 + name = "nu-plugin-protocol" 974 + version = "0.93.0" 975 + source = "registry+https://github.com/rust-lang/crates.io-index" 976 + checksum = "1c0e09413e5e8dca9d3c082dde54ea02d13a1f4424e8244284bba4e3e5db746f" 977 + dependencies = [ 978 + "bincode", 979 + "nu-protocol", 980 + "nu-utils", 752 981 "semver", 753 982 "serde", 754 - "serde_json", 755 - "thiserror", 756 983 "typetag", 757 - "windows 0.54.0", 758 984 ] 759 985 760 986 [[package]] 761 987 name = "nu-protocol" 762 - version = "0.92.2" 988 + version = "0.93.0" 763 989 source = "registry+https://github.com/rust-lang/crates.io-index" 764 - checksum = "8860469803075ffe108f74efbc57edf42f853800eb845ce29efb1d9c09d91ede" 990 + checksum = "e4de57dd87e27ffa98ad8b6d7f12608f07827ca1545731059dfa34e3362f4693" 765 991 dependencies = [ 992 + "brotli", 766 993 "byte-unit", 767 994 "chrono", 768 995 "chrono-humanize", ··· 774 1001 "nu-system", 775 1002 "nu-utils", 776 1003 "num-format", 1004 + "rmp-serde", 777 1005 "serde", 778 1006 "serde_json", 779 1007 "thiserror", ··· 782 1010 783 1011 [[package]] 784 1012 name = "nu-system" 785 - version = "0.92.2" 1013 + version = "0.93.0" 786 1014 source = "registry+https://github.com/rust-lang/crates.io-index" 787 - checksum = "80a3fc4b70530667f73622d5eee802684afaf9eefc39ce4fd1b078913c8fe9b7" 1015 + checksum = "5c17de2c65b6b10d503ce02ccbb7fb66de63bd2f24cf717c2aa6ad4a954459fc" 788 1016 dependencies = [ 789 1017 "chrono", 790 1018 "libc", ··· 801 1029 802 1030 [[package]] 803 1031 name = "nu-utils" 804 - version = "0.92.2" 1032 + version = "0.93.0" 805 1033 source = "registry+https://github.com/rust-lang/crates.io-index" 806 - checksum = "d30cd61d70368f7c197bc8d1edd894c4828a51e1c78e825f81bf5ff4de182d8b" 1034 + checksum = "7fcfe5ef7f89e30142fee34efeaecdcffa45666cffd17e894fe5d83c430e7fcc" 807 1035 dependencies = [ 808 1036 "crossterm_winapi", 809 1037 "log", 810 1038 "lscolors", 1039 + "nix", 811 1040 "num-format", 1041 + "serde", 812 1042 "strip-ansi-escapes", 813 1043 "sys-locale", 814 1044 "unicase", ··· 816 1046 817 1047 [[package]] 818 1048 name = "nu_plugin_dbus" 819 - version = "0.5.0" 1049 + version = "0.6.0" 820 1050 dependencies = [ 821 1051 "dbus", 822 1052 "nu-plugin", ··· 863 1093 checksum = "caff54706df99d2a78a5a4e3455ff45448d81ef1bb63c22cd14052ca0e993a3f" 864 1094 865 1095 [[package]] 1096 + name = "parking" 1097 + version = "2.2.0" 1098 + source = "registry+https://github.com/rust-lang/crates.io-index" 1099 + checksum = "bb813b8af86854136c6922af0598d719255ecb2179515e6e7730d468f05c9cae" 1100 + 1101 + [[package]] 866 1102 name = "paste" 867 1103 version = "1.0.14" 868 1104 source = "registry+https://github.com/rust-lang/crates.io-index" 869 1105 checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c" 870 1106 871 1107 [[package]] 1108 + name = "pin-project-lite" 1109 + version = "0.2.14" 1110 + source = "registry+https://github.com/rust-lang/crates.io-index" 1111 + checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" 1112 + 1113 + [[package]] 1114 + name = "piper" 1115 + version = "0.2.1" 1116 + source = "registry+https://github.com/rust-lang/crates.io-index" 1117 + checksum = "668d31b1c4eba19242f2088b2bf3316b82ca31082a8335764db4e083db7485d4" 1118 + dependencies = [ 1119 + "atomic-waker", 1120 + "fastrand", 1121 + "futures-io", 1122 + ] 1123 + 1124 + [[package]] 872 1125 name = "pkg-config" 873 1126 version = "0.3.30" 874 1127 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1171 1424 checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" 1172 1425 1173 1426 [[package]] 1427 + name = "rustc_version" 1428 + version = "0.4.0" 1429 + source = "registry+https://github.com/rust-lang/crates.io-index" 1430 + checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" 1431 + dependencies = [ 1432 + "semver", 1433 + ] 1434 + 1435 + [[package]] 1174 1436 name = "rustix" 1175 1437 version = "0.38.34" 1176 1438 source = "registry+https://github.com/rust-lang/crates.io-index" ··· 1188 1450 version = "1.0.17" 1189 1451 source = "registry+https://github.com/rust-lang/crates.io-index" 1190 1452 checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1" 1453 + 1454 + [[package]] 1455 + name = "scopeguard" 1456 + version = "1.2.0" 1457 + source = "registry+https://github.com/rust-lang/crates.io-index" 1458 + checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" 1191 1459 1192 1460 [[package]] 1193 1461 name = "seahash" ··· 1261 1529 version = "0.3.2" 1262 1530 source = "registry+https://github.com/rust-lang/crates.io-index" 1263 1531 checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c" 1532 + 1533 + [[package]] 1534 + name = "spinning" 1535 + version = "0.1.0" 1536 + source = "registry+https://github.com/rust-lang/crates.io-index" 1537 + checksum = "2d4f0e86297cad2658d92a707320d87bf4e6ae1050287f51d19b67ef3f153a7b" 1538 + dependencies = [ 1539 + "lock_api", 1540 + ] 1264 1541 1265 1542 [[package]] 1266 1543 name = "strip-ansi-escapes" ··· 1411 1688 version = "0.1.1" 1412 1689 source = "registry+https://github.com/rust-lang/crates.io-index" 1413 1690 checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" 1691 + 1692 + [[package]] 1693 + name = "to_method" 1694 + version = "1.1.0" 1695 + source = "registry+https://github.com/rust-lang/crates.io-index" 1696 + checksum = "c7c4ceeeca15c8384bbc3e011dbd8fccb7f068a440b752b7d9b32ceb0ca0e2e8" 1414 1697 1415 1698 [[package]] 1416 1699 name = "toml_datetime"
+3 -3
Cargo.toml
··· 1 1 [package] 2 2 name = "nu_plugin_dbus" 3 - version = "0.5.0" 3 + version = "0.6.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.92.0" 18 - nu-protocol = { version = "0.92.0", features = ["plugin"] } 17 + nu-plugin = "0.93.0" 18 + nu-protocol = { version = "0.93.0", features = ["plugin"] } 19 19 serde = { version = "1.0.196", features = ["derive"] } 20 20 serde-xml-rs = "0.6.0"
+4
rust-toolchain.toml
··· 1 + # This should be in sync with nushell 2 + [toolchain] 3 + profile = "default" 4 + channel = "1.77.2"
+1 -1
src/commands/get_all.rs
··· 17 17 .dbus_command() 18 18 .accepts_dbus_client_options() 19 19 .accepts_timeout() 20 - .input_output_type(Type::Nothing, Type::Record(vec![])) 20 + .input_output_type(Type::Nothing, Type::Record([].into())) 21 21 .required_named( 22 22 "dest", 23 23 SyntaxShape::String,
+1 -1
src/commands/introspect.rs
··· 17 17 .dbus_command() 18 18 .accepts_dbus_client_options() 19 19 .accepts_timeout() 20 - .input_output_type(Type::Nothing, Type::Record(vec![])) 20 + .input_output_type(Type::Nothing, Type::Record([].into())) 21 21 .required_named( 22 22 "dest", 23 23 SyntaxShape::String,