diff --git a/Cargo.lock b/Cargo.lock index dde51aa..a71cfca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -73,6 +73,42 @@ version = "0.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" +[[package]] +name = "async-channel" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f28243a43d821d11341ab73c80bed182dc015c514b951616cf79bd4af39af0c3" +dependencies = [ + "concurrent-queue", + "event-listener 5.3.0", + "event-listener-strategy 0.5.1", + "futures-core", + "pin-project-lite", +] + +[[package]] +name = "async-lock" +version = "3.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d034b430882f8381900d3fe6f0aaa3ad94f2cb4ac519b429692a1bc2dda4ae7b" +dependencies = [ + "event-listener 4.0.3", + "event-listener-strategy 0.4.0", + "pin-project-lite", +] + +[[package]] +name = "async-task" +version = "4.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fbb36e985947064623dbd357f727af08ffd077f93d696782f3c56365fa2e2799" + +[[package]] +name = "atomic-waker" +version = "1.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0" + [[package]] name = "autocfg" version = "1.1.0" @@ -147,6 +183,22 @@ dependencies = [ "wyz", ] +[[package]] +name = "blocking" +version = "1.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6a37913e8dc4ddcc604f0c6d3bf2887c995153af3611de9e23c352b44c1b9118" +dependencies = [ + "async-channel", + "async-lock", + "async-task", + "fastrand", + "futures-io", + "futures-lite", + "piper", + "tracing", +] + [[package]] name = "borsh" version = "1.3.1" @@ -311,6 +363,15 @@ dependencies = [ "static_assertions", ] +[[package]] +name = "concurrent-queue" +version = "2.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d16048cd947b08fa32c24458a22f5dc5e835264f689f4f5653210c69fd107363" +dependencies = [ + "crossbeam-utils", +] + [[package]] name = "console" version = "0.15.8" @@ -447,6 +508,48 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +name = "event-listener" +version = "4.0.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "67b215c49b2b248c855fb73579eb1f4f26c38ffdc12973e20e07b91d78d5646e" +dependencies = [ + "concurrent-queue", + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener" +version = "5.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6d9944b8ca13534cdfb2800775f8dd4902ff3fc75a50101466decadfdf322a24" +dependencies = [ + "concurrent-queue", + "parking", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "958e4d70b6d5e81971bebec42271ec641e7ff4e170a6fa605f2b8a8b65cb97d3" +dependencies = [ + "event-listener 4.0.3", + "pin-project-lite", +] + +[[package]] +name = "event-listener-strategy" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "332f51cb23d20b0de8458b86580878211da09bcd4503cb579c225b3d124cabb3" +dependencies = [ + "event-listener 5.3.0", + "pin-project-lite", +] + [[package]] name = "fancy-regex" version = "0.13.0" @@ -458,6 +561,12 @@ dependencies = [ "regex-syntax", ] +[[package]] +name = "fastrand" +version = "2.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "658bd65b1cf4c852a3cc96f18a8ce7b5640f6b703f905c7d74532294c2a63984" + [[package]] name = "flate2" version = "1.0.28" @@ -483,6 +592,28 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c" +[[package]] +name = "futures-core" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" + +[[package]] +name = "futures-io" +version = "0.3.30" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" + +[[package]] +name = "futures-lite" +version = "2.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "52527eb5074e35e9339c6b4e8d12600c7128b68fb25dcb9fa9dec18f7c25f3a5" +dependencies = [ + "futures-core", + "pin-project-lite", +] + [[package]] name = "getrandom" version = "0.2.12" @@ -580,6 +711,32 @@ version = "2.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1e186cfbae8084e513daff4240b4797e342f988cecda4fb6c939150f96315fd8" +[[package]] +name = "interprocess" +version = "1.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "81f2533f3be42fffe3b5e63b71aeca416c1c3bc33e4e27be018521e76b1f38fb" +dependencies = [ + "blocking", + "cfg-if", + "futures-core", + "futures-io", + "intmap", + "libc", + "once_cell", + "rustc_version", + "spinning", + "thiserror", + "to_method", + "winapi", +] + +[[package]] +name = "intmap" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae52f28f45ac2bc96edb7714de995cffc174a395fb0abf5bff453587c980d7b9" + [[package]] name = "inventory" version = "0.3.15" @@ -819,9 +976,8 @@ dependencies = [ [[package]] name = "nu-engine" -version = "0.92.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1511a07815cb4fa2edc078352825a36b4b17936ed7d4899e2830e94f924ada20" +version = "0.92.3" +source = "git+https://github.com/devyn/nushell?branch=plugin-local-socket#888cbc52bcac0d379485403fa46fa185c6f7a8ee" dependencies = [ "nu-glob", "nu-path", @@ -831,15 +987,13 @@ dependencies = [ [[package]] name = "nu-glob" -version = "0.92.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9aa220af182872403c8c3d7d39fadaf3a7e599857611bd740c0bde64340df62" +version = "0.92.3" +source = "git+https://github.com/devyn/nushell?branch=plugin-local-socket#888cbc52bcac0d379485403fa46fa185c6f7a8ee" [[package]] name = "nu-path" -version = "0.92.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b70f3cdbb83d0d19d09b9d1999ca511265e0c52bbb89fc9e03376ab03fb582ae" +version = "0.92.3" +source = "git+https://github.com/devyn/nushell?branch=plugin-local-socket#888cbc52bcac0d379485403fa46fa185c6f7a8ee" dependencies = [ "dirs-next", "omnipath", @@ -848,15 +1002,17 @@ dependencies = [ [[package]] name = "nu-plugin" -version = "0.92.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "180e1be4db666dfffa1fba778084cf701aa093cbdc5b92790ed2a6657cb8c4e4" +version = "0.92.3" +source = "git+https://github.com/devyn/nushell?branch=plugin-local-socket#888cbc52bcac0d379485403fa46fa185c6f7a8ee" dependencies = [ "bincode", + "interprocess", "log", "miette", + "nix", "nu-engine", "nu-protocol", + "nu-system", "rmp-serde", "semver", "serde", @@ -868,9 +1024,8 @@ dependencies = [ [[package]] name = "nu-protocol" -version = "0.92.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd3188dabdfcb0bfd271fc0f1fb8957f6ae23c08585da53e93e69bf2ba9c5d27" +version = "0.92.3" +source = "git+https://github.com/devyn/nushell?branch=plugin-local-socket#888cbc52bcac0d379485403fa46fa185c6f7a8ee" dependencies = [ "byte-unit", "chrono", @@ -891,9 +1046,8 @@ dependencies = [ [[package]] name = "nu-system" -version = "0.92.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecdc349e6f4ef25b227dead8edd7788491a413c65c8340774813884c612c90de" +version = "0.92.3" +source = "git+https://github.com/devyn/nushell?branch=plugin-local-socket#888cbc52bcac0d379485403fa46fa185c6f7a8ee" dependencies = [ "chrono", "libc", @@ -910,13 +1064,13 @@ dependencies = [ [[package]] name = "nu-utils" -version = "0.92.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9f2a5bb38b5947d8d98d8934c654d9844dce5196224d6475fa335efe3c74a5b5" +version = "0.92.3" +source = "git+https://github.com/devyn/nushell?branch=plugin-local-socket#888cbc52bcac0d379485403fa46fa185c6f7a8ee" dependencies = [ "crossterm_winapi", "log", "lscolors", + "nix", "num-format", "strip-ansi-escapes", "sys-locale", @@ -925,7 +1079,7 @@ dependencies = [ [[package]] name = "nu_plugin_explore" -version = "0.92.0" +version = "0.92.3" dependencies = [ "anyhow", "console", @@ -973,6 +1127,12 @@ version = "4.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "caff54706df99d2a78a5a4e3455ff45448d81ef1bb63c22cd14052ca0e993a3f" +[[package]] +name = "parking" +version = "2.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb813b8af86854136c6922af0598d719255ecb2179515e6e7730d468f05c9cae" + [[package]] name = "parking_lot" version = "0.12.1" @@ -1014,6 +1174,23 @@ version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" +[[package]] +name = "pin-project-lite" +version = "0.2.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" + +[[package]] +name = "piper" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "668d31b1c4eba19242f2088b2bf3316b82ca31082a8335764db4e083db7485d4" +dependencies = [ + "atomic-waker", + "fastrand", + "futures-io", +] + [[package]] name = "ppv-lite86" version = "0.2.17" @@ -1339,6 +1516,15 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" +[[package]] +name = "rustc_version" +version = "0.4.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366" +dependencies = [ + "semver", +] + [[package]] name = "rustix" version = "0.38.31" @@ -1467,6 +1653,15 @@ version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b7c388c1b5e93756d0c740965c41e8822f866621d41acbdf6336a6a168f8840c" +[[package]] +name = "spinning" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2d4f0e86297cad2658d92a707320d87bf4e6ae1050287f51d19b67ef3f153a7b" +dependencies = [ + "lock_api", +] + [[package]] name = "stability" version = "0.1.1" @@ -1655,6 +1850,12 @@ version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" +[[package]] +name = "to_method" +version = "1.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c7c4ceeeca15c8384bbc3e011dbd8fccb7f068a440b752b7d9b32ceb0ca0e2e8" + [[package]] name = "toml_datetime" version = "0.6.5" @@ -1672,6 +1873,22 @@ dependencies = [ "winnow", ] +[[package]] +name = "tracing" +version = "0.1.40" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" +dependencies = [ + "pin-project-lite", + "tracing-core", +] + +[[package]] +name = "tracing-core" +version = "0.1.32" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" + [[package]] name = "typetag" version = "0.2.16"