From 17a6887cbcd7535d1af6d65bf79f81cd4ea8a427 Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Wed, 20 Mar 2024 12:00:28 -0700 Subject: [PATCH] new: Support proto v0.32. (#20) --- CHANGELOG.md | 6 + Cargo.lock | 251 +++++++++++++++++++++-------------------- Cargo.toml | 8 +- tests/metadata_test.rs | 5 +- tests/versions_test.rs | 9 +- 5 files changed, 147 insertions(+), 132 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3428557..44d2e76 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 0.8.1 + +#### 🚀 Updates + +- Updated to support proto v0.32 release. + ## 0.8.0 #### 💥 Breaking diff --git a/Cargo.lock b/Cargo.lock index 83b8173..6fb38ed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -79,9 +79,9 @@ checksum = "7d5a26814d8dcb93b0e5a0ff3c6d80a8843bafb21b39e8e18a6f05471870e110" [[package]] name = "assert_cmd" -version = "2.0.13" +version = "2.0.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00ad3f3a942eee60335ab4342358c161ee296829e0d16ff42fc1d6cb07815467" +checksum = "ed72493ac66d5804837f480ab3766c72bdfab91a65e565fc54fa9e42db0073a8" dependencies = [ "anstyle", "bstr", @@ -115,7 +115,7 @@ checksum = "c980ee35e870bd1a4d2c8294d4c04d0499e67bca1e4b5cefcc693c2fa00caea9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", ] [[package]] @@ -145,6 +145,12 @@ version = "0.21.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "414dcefbc63d77c526a76b3afcf6fbb9b5e2791c19c3aa2297733208750c6e53" +[[package]] +name = "base64" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9475866fec1451be56a3c2400fd081ff546538961565ccb5b7142cbd22bc7a51" + [[package]] name = "bincode" version = "1.3.3" @@ -154,6 +160,17 @@ dependencies = [ "serde", ] +[[package]] +name = "binstall-tar" +version = "0.4.39" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "01db907e07c37309ea816c183ffe548daaa66ef640a291408f232d6ca4089dbb" +dependencies = [ + "filetime", + "libc", + "xattr", +] + [[package]] name = "bitflags" version = "1.3.2" @@ -683,7 +700,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 2.0.48", + "syn 2.0.53", ] [[package]] @@ -705,7 +722,7 @@ checksum = "a668eda54683121533a393014d8692171709ff57a7d61f187b6e782719f8933f" dependencies = [ "darling_core 0.20.8", "quote", - "syn 2.0.48", + "syn 2.0.53", ] [[package]] @@ -846,9 +863,9 @@ dependencies = [ [[package]] name = "extism" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7360c0823a0e303eb0b5bdb1125a5dae0867a77bfc533bd7e306b5989a53aab6" +checksum = "2687bfd28990a4725ddaf8a4374bff6d2debfd239d0fd6e55e2a7f476c5aec99" dependencies = [ "anyhow", "cbindgen", @@ -871,12 +888,12 @@ dependencies = [ [[package]] name = "extism-convert" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8e78a2317936c20806cb60fa98c15dcc5ccf43458e4cbddad3c6cce17a05b31c" +checksum = "a63bfc6d371d3b51d6094fd96c4c32a084ceefece3b4f4b328f30067d29da064" dependencies = [ "anyhow", - "base64", + "base64 0.22.0", "bytemuck", "extism-convert-macros", "prost", @@ -887,24 +904,24 @@ dependencies = [ [[package]] name = "extism-convert-macros" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d190cc0c058346b7750868de96dab17e047e7588ec91691a29b6db4eafd51a7e" +checksum = "519ccf960500c87244bef99caf8e58222ac95bf1abb06a32f5217b4788857aa6" dependencies = [ "manyhow", "proc-macro-crate", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", ] [[package]] name = "extism-manifest" -version = "1.1.0" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a08af46dc0633e0874e6c1a66ac1226bf2fad6fa67568538238af8b316569d06" +checksum = "05c7d16695dc6b72418e23b58c943411a08264332af403ae9870997b4d495c3d" dependencies = [ - "base64", + "base64 0.22.0", "serde", "serde_json", ] @@ -916,7 +933,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1f9a87d636d30b75e697642dd4f6cff2054db5a7a5d69d6601041a76265bb681" dependencies = [ "anyhow", - "base64", + "base64 0.21.3", "extism-convert", "extism-manifest", "extism-pdk-derive", @@ -932,7 +949,7 @@ checksum = "d83995c2023720a0fd5ef2a349c89c1670efb37a979228b0218705f5ddb50d4b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", ] [[package]] @@ -1017,12 +1034,12 @@ dependencies = [ [[package]] name = "fs4" -version = "0.7.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "29f9df8a11882c4e3335eb2d18a0137c505d9ca927470b0cac9c6f0ae07d28f7" +checksum = "57b1e34e369d7f0151309821497440bd0266b86c77ccd69717c3b67e5eaeffe4" dependencies = [ "rustix 0.38.28", - "windows-sys 0.48.0", + "windows-sys 0.52.0", ] [[package]] @@ -1069,7 +1086,7 @@ checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", ] [[package]] @@ -1143,7 +1160,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.48", + "syn 2.0.53", ] [[package]] @@ -1174,7 +1191,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6fb8d784f27acf97159b40fc4db5ecd8aa23b9ad5ef69cdd136d3bc80665f0c0" dependencies = [ "fallible-iterator", - "indexmap 2.2.3", + "indexmap 2.2.5", "stable_deref_trait", ] @@ -1416,9 +1433,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.2.3" +version = "2.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "233cf39063f058ea2caae4091bf4a3ef70a653afbc026f5c4a4135d114e3c177" +checksum = "7b0b929d511467233429c45a44ac1dcaa21ba0f5ba11e4879e6ed28ddb4f9df4" dependencies = [ "equivalent", "hashbrown 0.14.2", @@ -1427,9 +1444,9 @@ dependencies = [ [[package]] name = "insta" -version = "1.34.0" +version = "1.36.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5d64600be34b2fcfc267740a243fa7744441bb4947a619ac4e5bb6507f35fbfc" +checksum = "0a7c22c4d34ef4788c351e971c52bfdfe7ea2766f8c5466bc175dd46e52ac22e" dependencies = [ "console", "lazy_static", @@ -1635,7 +1652,7 @@ dependencies = [ "manyhow-macros", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", ] [[package]] @@ -1690,10 +1707,11 @@ dependencies = [ [[package]] name = "miette" -version = "7.1.0" +version = "7.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "baed61d13cc3723ee6dbed730a82bfacedc60a85d81da2d77e9c3e8ebc0b504a" +checksum = "4edc8853320c2a0dab800fbda86253c8938f6ea88510dc92c5f1ed20e794afc1" dependencies = [ + "cfg-if", "miette-derive", "thiserror", "unicode-width", @@ -1701,13 +1719,13 @@ dependencies = [ [[package]] name = "miette-derive" -version = "7.1.0" +version = "7.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f301c3f54f98abc6c212ee722f5e5c62e472a334415840669e356f04850051ec" +checksum = "dcf09caffaac8068c346b6df2a7fc27a177fd20b39421a39ce0a211bde679a6c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", ] [[package]] @@ -1812,7 +1830,7 @@ checksum = "9cf5f9dd3933bd50a9e1f149ec995f39ae2c496d31fd772c1fd45ebc27e902b0" dependencies = [ "crc32fast", "hashbrown 0.14.2", - "indexmap 2.2.3", + "indexmap 2.2.5", "memchr", ] @@ -2015,18 +2033,18 @@ dependencies = [ "itertools 0.11.0", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", ] [[package]] name = "proto_core" -version = "0.31.1" +version = "0.32.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1d0eb69f59e9fda3778594dac793c1d9af12b5c25b7839fd0d03ab8cd9d5adde" +checksum = "db090ec8043a89e8bd797cbe2abf562af31d03d684d81d44baf759036be9309e" dependencies = [ "cached", "human-sort", - "indexmap 2.2.3", + "indexmap 2.2.5", "miette", "minisign-verify", "once_cell", @@ -2049,15 +2067,16 @@ dependencies = [ "thiserror", "tracing", "url", + "uuid", "version_spec", "warpgate", ] [[package]] name = "proto_pdk" -version = "0.17.1" +version = "0.17.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ab0637276b87e193d0f9c87fbfa9266893815e4906a4440622e54fe17d4acce8" +checksum = "744304f2cd3dbf1928eeffaad5538f98d2ca84a8a8e3ab107418bb7b0b277ce0" dependencies = [ "extism-pdk", "proto_pdk_api", @@ -2068,9 +2087,9 @@ dependencies = [ [[package]] name = "proto_pdk_api" -version = "0.17.0" +version = "0.17.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "69f83811b44f118b2ae5a13438a25e225ad56000b1fa6f2621a4a1ccb7770fd5" +checksum = "e73499b8448495fa0021a7c2ebdcdc6b680d1faec2be35cfb6d3de9176a2ea41" dependencies = [ "rustc-hash", "semver", @@ -2084,15 +2103,16 @@ dependencies = [ [[package]] name = "proto_pdk_test_utils" -version = "0.19.1" +version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d25bdf0ba4c12766eef811a51d090b67748f5f8cf02aa9ccd7bf304b0b43bea7" +checksum = "1f61bbb94802afc75e36e8836e45b28d5c848dfd3a00fe012e60032534f6f590" dependencies = [ "extism", "proto_core", "proto_pdk_api", "serde", "serde_json", + "starbase_sandbox", "warpgate", ] @@ -2117,7 +2137,7 @@ dependencies = [ [[package]] name = "python_plugin" -version = "0.8.0" +version = "0.8.1" dependencies = [ "extism-pdk", "proto_pdk", @@ -2289,11 +2309,11 @@ checksum = "e898588f33fdd5b9420719948f9f2a32c922a246964576f71ba7f24f80610fbc" [[package]] name = "reqwest" -version = "0.11.24" +version = "0.11.27" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c6920094eb85afde5e4a138be3f2de8bbdf28000f0029e72c45025a56b042251" +checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62" dependencies = [ - "base64", + "base64 0.21.3", "bytes", "encoding_rs", "futures-core", @@ -2436,7 +2456,7 @@ version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2d3987094b1d07b653b7dfdc3f70ce9a1da9c51ac18c1b06b662e4f9a0e9f4b2" dependencies = [ - "base64", + "base64 0.21.3", ] [[package]] @@ -2491,12 +2511,12 @@ dependencies = [ [[package]] name = "schematic" -version = "0.14.3" +version = "0.14.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "709e1f0b0a3db267a98da09c89a7818e307cc8daea841e1079eb5f5a02591d54" +checksum = "ac09b4b9c9fe5068fb44ac5cdc6b282acb175ab39e8b0d1eef737df2aeec3a91" dependencies = [ "garde", - "indexmap 2.2.3", + "indexmap 2.2.5", "miette", "schematic_macros", "schematic_types", @@ -2510,15 +2530,15 @@ dependencies = [ [[package]] name = "schematic_macros" -version = "0.14.1" +version = "0.14.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31af7347544d97d00870a5865d2077dac07c069a5290c26215ddd1138b302590" +checksum = "910c561ff783c09af4e4a7a4f7d6d733aed0a0374333de7f0b39f474568ba937" dependencies = [ "convert_case", "darling 0.20.8", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", ] [[package]] @@ -2527,7 +2547,7 @@ version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f3adfbe1c90a6a9643433e490ef1605c6a99f93be37e4c83fe5149fca9698c6" dependencies = [ - "indexmap 2.2.3", + "indexmap 2.2.5", "serde_json", "toml 0.8.10", ] @@ -2597,7 +2617,7 @@ checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", ] [[package]] @@ -2753,16 +2773,16 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "starbase_archive" -version = "0.5.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a99a24e91bf823d46d04d520fb87c02ab0c3cac75bfdcf3c7671505681fd9f29" +checksum = "56bf4ff22495fe4c8384f124f4955373ed9d5c50c0e9bca53d202975c820687f" dependencies = [ + "binstall-tar", "flate2", "miette", "rustc-hash", "starbase_styles", "starbase_utils", - "tar", "thiserror", "tracing", "xz2", @@ -2772,9 +2792,9 @@ dependencies = [ [[package]] name = "starbase_events" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b98298edb3a2630bf96c6d422f91c617abda687e8a564f36fb4bc38cecbb7155" +checksum = "2473c84f57e1ac245f28fbdcc833ec4ab658330e70f06f5eae39fda251741441" dependencies = [ "async-trait", "miette", @@ -2784,21 +2804,21 @@ dependencies = [ [[package]] name = "starbase_macros" -version = "0.5.0" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb40eb09c82a8ddffa48a13d53bec72300b5626cb17f216d1fb4cf1b8a14f118" +checksum = "0af7b389564c25fe60e6883343c0413899e252797bab5c8d4664c9dfa8e453c6" dependencies = [ "darling 0.20.8", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", ] [[package]] name = "starbase_sandbox" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46c13185a91009f058c1649eb9692957e3e78398d98a89ed5fc9c3e24844e9c7" +checksum = "46eb2113d05c21fea19742d5df590641a44373eaa75c9178e6c8888d9ab31286" dependencies = [ "assert_cmd", "assert_fs", @@ -2812,9 +2832,9 @@ dependencies = [ [[package]] name = "starbase_styles" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e06fa37c027e48ef341787d8c3d26cfbe8507aa4e2e8c61fcba82fe931bb598" +checksum = "a9e21769f0b11c591f655f8563217d92f55176f53c6e9224854b1f14801c6cee" dependencies = [ "dirs 5.0.1", "owo-colors", @@ -2823,9 +2843,9 @@ dependencies = [ [[package]] name = "starbase_utils" -version = "0.5.0" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f23570a8fa500ad7ccb3bbfed7d9dc759b657ed536fb9b10eec729ad9de1b60e" +checksum = "602b821bd1b020210432bdc5152056defca02dab1f601e86093cb12e842d0fa5" dependencies = [ "dirs 5.0.1", "fs4", @@ -2833,6 +2853,7 @@ dependencies = [ "miette", "once_cell", "relative-path", + "reqwest", "serde", "serde_json", "starbase_styles", @@ -2840,6 +2861,7 @@ dependencies = [ "tokio", "toml 0.8.10", "tracing", + "url", "wax", ] @@ -2877,9 +2899,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.48" +version = "2.0.53" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f" +checksum = "7383cd0e49fff4b6b90ca5670bfd3e9d6a733b3f90c686605aa7eec8c4996032" dependencies = [ "proc-macro2", "quote", @@ -2931,9 +2953,9 @@ dependencies = [ [[package]] name = "system_env" -version = "0.2.2" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9cc6e061f286e270fa78c10406c3146455906149b684ae2dc15a3a758da16fda" +checksum = "967511d0f22b9de600ec03e25d9dacc5627f36d69e780d5d0b306903de88b714" dependencies = [ "schematic", "serde", @@ -2942,17 +2964,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "tar" -version = "0.4.40" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b16afcea1f22891c49a00c751c7b63b2233284064f11a200fc624137c51e2ddb" -dependencies = [ - "filetime", - "libc", - "xattr", -] - [[package]] name = "target-lexicon" version = "0.12.13" @@ -2980,22 +2991,22 @@ checksum = "3369f5ac52d5eb6ab48c6b4ffdc8efbcad6b89c765749064ba298f2c68a16a76" [[package]] name = "thiserror" -version = "1.0.57" +version = "1.0.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e45bcbe8ed29775f228095caf2cd67af7a4ccf756ebff23a306bf3e8b47b24b" +checksum = "03468839009160513471e86a034bb2c5c0e4baae3b43f79ffc55c4a5427b3297" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.57" +version = "1.0.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a953cb265bef375dae3de6663da4d3804eee9682ea80d8e2542529b73c531c81" +checksum = "c61f3ba182994efc43764a46c018c347bc492c79f024e705f46567b418f6d4f7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", ] [[package]] @@ -3050,7 +3061,7 @@ checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", ] [[package]] @@ -3113,7 +3124,7 @@ version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d34d383cd00a163b4a5b85053df514d45bc330f6de7737edfe0a93311d1eaa03" dependencies = [ - "indexmap 2.2.3", + "indexmap 2.2.5", "toml_datetime", "winnow 0.5.15", ] @@ -3124,7 +3135,7 @@ version = "0.22.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2c1b5fd4128cc8d3e0cb74d4ed9a9cc7c7284becd4df68f5f940e1ad123606f6" dependencies = [ - "indexmap 2.2.3", + "indexmap 2.2.5", "serde", "serde_spanned", "toml_datetime", @@ -3157,7 +3168,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", ] [[package]] @@ -3262,7 +3273,7 @@ version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b11c96ac7ee530603dcdf68ed1557050f374ce55a5a07193ebf8cbc9f8927e9" dependencies = [ - "base64", + "base64 0.21.3", "flate2", "log", "once_cell", @@ -3285,9 +3296,9 @@ dependencies = [ [[package]] name = "uuid" -version = "1.4.1" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "79daa5ed5740825c40b389c5e50312b9c86df53fccd33f281df655642b43869d" +checksum = "a183cf7feeba97b4dd1c0d46788634f6221d87fa961b305bed08c851829efcc0" dependencies = [ "getrandom", ] @@ -3347,9 +3358,9 @@ dependencies = [ [[package]] name = "warpgate" -version = "0.11.2" +version = "0.11.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b945ab3247376a2117ae4a0a33a5956d0e5522df8e17a456a4a46efa314eefc4" +checksum = "f9f3a291841f84d077c092db81a0bdeb144f39865c6bff65ef3c6734959d7260" dependencies = [ "extism", "miette", @@ -3373,9 +3384,9 @@ dependencies = [ [[package]] name = "warpgate_api" -version = "0.4.2" +version = "0.4.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0dd67684d947815a66886af056713e392c48bd8f4f5fa4c22c4a7f38f85eb2ca" +checksum = "fb71be920bfea7dce93965ece5f79ed15222a2900a97b4b1039427d2641bf11e" dependencies = [ "anyhow", "rustc-hash", @@ -3388,9 +3399,9 @@ dependencies = [ [[package]] name = "warpgate_pdk" -version = "0.2.1" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "14dc35a3ada370c65a41dffd5b685dd758253d537762e1d2e047264bec8cba5e" +checksum = "1286c9c43a051463251deb81404b639a5bae5b6918fde781d75609d65a67520b" dependencies = [ "extism-pdk", "serde", @@ -3467,7 +3478,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", "wasm-bindgen-shared", ] @@ -3501,7 +3512,7 @@ checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", "wasm-bindgen-backend", "wasm-bindgen-shared", ] @@ -3527,7 +3538,7 @@ version = "0.118.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "95ee9723b928e735d53000dec9eae7b07a60e490c85ab54abb66659fc61bfcd9" dependencies = [ - "indexmap 2.2.3", + "indexmap 2.2.5", "semver", ] @@ -3554,7 +3565,7 @@ dependencies = [ "cfg-if", "encoding_rs", "fxprof-processed-profile", - "indexmap 2.2.3", + "indexmap 2.2.5", "libc", "log", "object", @@ -3596,7 +3607,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a3ce373743892002f9391c6741ef0cb0335b55ec899d874f311222b7e36f4594" dependencies = [ "anyhow", - "base64", + "base64 0.21.3", "bincode", "directories-next", "log", @@ -3618,7 +3629,7 @@ dependencies = [ "anyhow", "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", "wasmtime-component-util", "wasmtime-wit-bindgen", "wit-parser", @@ -3680,7 +3691,7 @@ dependencies = [ "anyhow", "cranelift-entity", "gimli", - "indexmap 2.2.3", + "indexmap 2.2.5", "log", "object", "serde", @@ -3769,7 +3780,7 @@ dependencies = [ "cc", "cfg-if", "encoding_rs", - "indexmap 2.2.3", + "indexmap 2.2.5", "libc", "log", "mach", @@ -3810,7 +3821,7 @@ checksum = "f55c5565959287c21dd0f4277ae3518dd2ae62679f655ee2dbc4396e19d210db" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", ] [[package]] @@ -3873,7 +3884,7 @@ checksum = "f328b2d4a690270324756e886ed5be3a4da4c00be0eea48253f4595ad068062b" dependencies = [ "anyhow", "heck", - "indexmap 2.2.3", + "indexmap 2.2.5", "wit-parser", ] @@ -3973,7 +3984,7 @@ dependencies = [ "proc-macro2", "quote", "shellexpand", - "syn 2.0.48", + "syn 2.0.53", "witx", ] @@ -3985,7 +3996,7 @@ checksum = "31ae1ec11a17ea481539ee9a5719a278c9790d974060fbf71db4b2c05378780b" dependencies = [ "proc-macro2", "quote", - "syn 2.0.48", + "syn 2.0.53", "wiggle-generate", ] @@ -4289,7 +4300,7 @@ checksum = "15df6b7b28ce94b8be39d8df5cb21a08a4f3b9f33b631aedb4aa5776f785ead3" dependencies = [ "anyhow", "id-arena", - "indexmap 2.2.3", + "indexmap 2.2.5", "log", "semver", "serde", @@ -4312,9 +4323,9 @@ dependencies = [ [[package]] name = "xattr" -version = "1.0.1" +version = "0.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4686009f71ff3e5c4dbcf1a282d0a44db3f021ba69350cd42086b3e5f1c6985" +checksum = "6d1526bbe5aaeb5eb06885f4d987bcdfa5e23187055de9b83fe00156a821fabc" dependencies = [ "libc", ] diff --git a/Cargo.toml b/Cargo.toml index 9498eef..74794fd 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "python_plugin" -version = "0.8.0" +version = "0.8.1" edition = "2021" license = "MIT" publish = false @@ -10,13 +10,13 @@ crate-type = ['cdylib'] [dependencies] extism-pdk = { version = "1.1.0" } -proto_pdk = { version = "0.17.1" } #, path = "../../proto/crates/pdk" } +proto_pdk = { version = "0.17.5" } #, path = "../../proto/crates/pdk" } regex = { version = "1.10.3", default-features = false, features = ["std"] } serde = "1.0.197" [dev-dependencies] -proto_pdk_test_utils = { version = "0.19.1" } #, path = "../../proto/crates/pdk-test-utils" } -starbase_sandbox = "0.4.0" +proto_pdk_test_utils = { version = "0.20.1" } #, path = "../../proto/crates/pdk-test-utils" } +starbase_sandbox = "0.5.0" tokio = { version = "1.36.0", features = ["full"] } [features] diff --git a/tests/metadata_test.rs b/tests/metadata_test.rs index 87ae6c1..4e0f4d8 100644 --- a/tests/metadata_test.rs +++ b/tests/metadata_test.rs @@ -1,10 +1,9 @@ use proto_pdk_test_utils::*; -use starbase_sandbox::create_empty_sandbox; #[test] fn registers_metadata() { - let sandbox = create_empty_sandbox(); - let plugin = create_plugin("python-test", sandbox.path()); + let sandbox = create_empty_proto_sandbox(); + let plugin = sandbox.create_plugin("python-test"); assert_eq!( plugin.register_tool(ToolMetadataInput::default()), diff --git a/tests/versions_test.rs b/tests/versions_test.rs index 53a2d22..3230da4 100644 --- a/tests/versions_test.rs +++ b/tests/versions_test.rs @@ -1,5 +1,4 @@ use proto_pdk_test_utils::*; -use starbase_sandbox::create_empty_sandbox; generate_resolve_versions_tests!("python-test", { "2.3" => "2.3.7", @@ -10,8 +9,8 @@ generate_resolve_versions_tests!("python-test", { #[test] fn loads_versions_from_git() { - let sandbox = create_empty_sandbox(); - let plugin = create_plugin("python-test", sandbox.path()); + let sandbox = create_empty_proto_sandbox(); + let plugin = sandbox.create_plugin("python-test"); let output = plugin.load_versions(LoadVersionsInput::default()); @@ -20,8 +19,8 @@ fn loads_versions_from_git() { #[test] fn sets_latest_alias() { - let sandbox = create_empty_sandbox(); - let plugin = create_plugin("python-test", sandbox.path()); + let sandbox = create_empty_proto_sandbox(); + let plugin = sandbox.create_plugin("python-test"); let output = plugin.load_versions(LoadVersionsInput::default());