diff --git a/Cargo.lock b/Cargo.lock index e24b7d415..523f446d3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3235,11 +3235,10 @@ dependencies = [ [[package]] name = "jiter" -version = "0.17.0" +version = "0.18.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bc2f2b4e673d798b3dbad0af24bc23b92013e680a6b9ad300b4e5e52fafe0586" +checksum = "49e31424b61d85292bd805dbf643c3ccc44f5f3871fb751209b889ee70585029" dependencies = [ - "ahash", "bitvec", "lexical-parse-float", "num-bigint 0.4.8", @@ -4891,9 +4890,9 @@ dependencies = [ [[package]] name = "pyo3" -version = "0.29.3" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "700d18fa267b73b9b521fd7e13580e2f446916f176cacee1ab63fcc8191f1655" +checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4" dependencies = [ "libc", "num-bigint 0.4.8", @@ -4907,9 +4906,9 @@ dependencies = [ [[package]] name = "pyo3-async-runtimes" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b3ef68daa7316a3fac65e5e18b2203f010346de1c1c53456811a2624673ab046" +checksum = "b877331c7817ccb6379e9d19a06993160141f1d0a386e55276128717df85e3fc" dependencies = [ "futures-channel", "futures-util", @@ -4921,18 +4920,18 @@ dependencies = [ [[package]] name = "pyo3-build-config" -version = "0.29.3" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b3fc0c4d08f6bb10e71fe39dfb9e2f59c6eb6854e22ec8092f50c69a4499adb" +checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700" dependencies = [ "target-lexicon", ] [[package]] name = "pyo3-ffi" -version = "0.29.3" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfc0b8e19df29aad7086cf977bb0c2a2f143e30567eb113e9cf72b62ca698330" +checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4" dependencies = [ "libc", "pyo3-build-config", @@ -4940,26 +4939,26 @@ dependencies = [ [[package]] name = "pyo3-macros" -version = "0.29.3" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6100e8a4b5eba53afaa5ed078364851a0b2499c553a44c31026b929049b49dc6" +checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60" dependencies = [ "proc-macro2", "pyo3-macros-backend", "quote", - "syn 2.0.119", + "syn 3.0.9", ] [[package]] name = "pyo3-macros-backend" -version = "0.29.3" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6143877a16e82b5a727b7127ff4cd86858a24a28d745d72f43e6f227c7b1bdb3" +checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b" dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.119", + "syn 3.0.9", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index d832d0e0b..3f7adb6a7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -174,8 +174,8 @@ serial_test = "4" # (42 native wheels/release, ~12 MB each) to 7, and future Python releases need # no rebuild. `generate-import-lib` kept for the Windows abi3 import lib. # See knowledge/runtimes/python-package.md ยง abi3. -pyo3 = { version = "0.29", features = ["extension-module", "generate-import-lib", "abi3-py39"] } -pyo3-async-runtimes = { version = "0.29", features = ["tokio-runtime"] } +pyo3 = { version = "0.30", features = ["extension-module", "generate-import-lib", "abi3-py39"] } +pyo3-async-runtimes = { version = "0.30", features = ["tokio-runtime"] } # JavaScript/Node.js bindings (NAPI-RS) napi = { version = "3.8.6", default-features = false, features = ["napi6", "compat-mode", "tokio_rt"] } diff --git a/crates/bashkit-monty/Cargo.toml b/crates/bashkit-monty/Cargo.toml index d90bc6487..4b83ed39c 100644 --- a/crates/bashkit-monty/Cargo.toml +++ b/crates/bashkit-monty/Cargo.toml @@ -53,7 +53,13 @@ hashbrown = { version = "0.16" } indexmap = { version = "2" } itertools = { version = "0.14.0" } itoa = { version = "1" } -jiter = { version = "0.17.0", features = ["num-bigint"] } +# bashkit fork: upstream pins 0.17, whose optional pyo3 is ^0.29.2. The +# Python binding is on pyo3 0.30, and the two collide on links=pyo3-python, +# so cargo cannot resolve the workspace at all. jiter 0.18 moves its pyo3 +# requirement to ^0.30.1, which unifies the graph on one major. Smallest +# step that does: 0.19 exists but is not needed. Drop the marker when +# upstream Monty reaches pyo3 0.30. +jiter = { version = "0.18.0", features = ["num-bigint"] } libm = { version = "0.2" } memchr = { version = "2.7" } minicbor-serde = { version = "0.7", features = ["alloc"], default-features = false } diff --git a/crates/bashkit-python/src/lib.rs b/crates/bashkit-python/src/lib.rs index 86433e453..ce751ba3c 100644 --- a/crates/bashkit-python/src/lib.rs +++ b/crates/bashkit-python/src/lib.rs @@ -1627,7 +1627,7 @@ fn policy_from_py(policy: &str) -> PyResult { } /// A commit plus the objects a host needs to persist. -#[pyclass(name = "PackedCommit", module = "bashkit", skip_from_py_object)] +#[pyclass(name = "PackedCommit", module = "bashkit")] #[derive(Clone)] pub struct PyPackedCommit { id: String, @@ -1694,7 +1694,7 @@ impl PyPackedCommit { } /// What changed between two commits. -#[pyclass(name = "SnapshotDiff", module = "bashkit", skip_from_py_object)] +#[pyclass(name = "SnapshotDiff", module = "bashkit")] #[derive(Clone)] pub struct PySnapshotDiff { #[pyo3(get)] @@ -1729,11 +1729,7 @@ impl PySnapshotDiff { } /// The environment that produced a commit. -#[pyclass( - name = "CapabilityFingerprint", - module = "bashkit", - skip_from_py_object -)] +#[pyclass(name = "CapabilityFingerprint", module = "bashkit")] #[derive(Clone)] pub struct PyCapabilityFingerprint { #[pyo3(get)] @@ -2395,7 +2391,7 @@ impl PyFileSystem { /// Transient fields like `last_exit_code` and `traps` reflect the captured /// snapshot, but the core interpreter clears them before each top-level /// `execute()` or `execute_sync()` call. -#[pyclass(skip_from_py_object)] +#[pyclass] pub struct ShellState { env: HashMap, variables: HashMap, @@ -2985,7 +2981,7 @@ fn prepare_output_handler( /// `name`, `argv`, `stdin`, `env`, and `cwd` are snapshots of the shell state at /// invocation time; `fs` is a live handle to the interpreter's virtual /// filesystem. -#[pyclass(name = "BuiltinContext", skip_from_py_object)] +#[pyclass(name = "BuiltinContext")] struct PyBuiltinContext { #[pyo3(get)] name: String, diff --git a/crates/bashkit-python/src/streaming.rs b/crates/bashkit-python/src/streaming.rs index 3ffff6bff..545478d1f 100644 --- a/crates/bashkit-python/src/streaming.rs +++ b/crates/bashkit-python/src/streaming.rs @@ -20,7 +20,7 @@ impl PyCommandStatus { } } -#[pyclass(name = "CommandInput", module = "bashkit", skip_from_py_object)] +#[pyclass(name = "CommandInput", module = "bashkit")] pub(crate) struct PyCommandInput { input: CommandInput, } @@ -59,7 +59,7 @@ impl PyCommandInput { } } -#[pyclass(name = "CommandOutput", module = "bashkit", skip_from_py_object)] +#[pyclass(name = "CommandOutput", module = "bashkit")] pub(crate) struct PyCommandOutput { output: CommandOutput, } @@ -80,12 +80,7 @@ impl PyCommandOutput { } } -#[pyclass( - name = "CommandContext", - module = "bashkit", - get_all, - skip_from_py_object -)] +#[pyclass(name = "CommandContext", module = "bashkit", get_all)] pub(crate) struct PyCommandContext { name: String, argv: Vec, diff --git a/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock b/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock index 6c833bcaf..4cb8dba79 100644 --- a/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock +++ b/crates/bashkit-python/test-fixtures/random-fs/Cargo.lock @@ -738,9 +738,9 @@ dependencies = [ [[package]] name = "pyo3" -version = "0.29.3" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "700d18fa267b73b9b521fd7e13580e2f446916f176cacee1ab63fcc8191f1655" +checksum = "229ca13b8a15bb0d1487b81ab975bfcd97513416499a8312011b6036e42e0de4" dependencies = [ "libc", "once_cell", @@ -752,18 +752,18 @@ dependencies = [ [[package]] name = "pyo3-build-config" -version = "0.29.3" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b3fc0c4d08f6bb10e71fe39dfb9e2f59c6eb6854e22ec8092f50c69a4499adb" +checksum = "70130e2b6dd1ee589a8788026a429561ca5c40fa7a2fa7914c2282eddae24700" dependencies = [ "target-lexicon", ] [[package]] name = "pyo3-ffi" -version = "0.29.3" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfc0b8e19df29aad7086cf977bb0c2a2f143e30567eb113e9cf72b62ca698330" +checksum = "5e7ff73c555c286d212d4ce7e5fbda845a973c4f61bd5f160f5f2c3c2a04d1c4" dependencies = [ "libc", "pyo3-build-config", @@ -771,26 +771,26 @@ dependencies = [ [[package]] name = "pyo3-macros" -version = "0.29.3" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6100e8a4b5eba53afaa5ed078364851a0b2499c553a44c31026b929049b49dc6" +checksum = "c46d2e5862c7bb8207e3b639f713dda3c499933444784154c11d013c5a691b60" dependencies = [ "proc-macro2", "pyo3-macros-backend", "quote", - "syn 2.0.119", + "syn 3.0.9", ] [[package]] name = "pyo3-macros-backend" -version = "0.29.3" +version = "0.30.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6143877a16e82b5a727b7127ff4cd86858a24a28d745d72f43e6f227c7b1bdb3" +checksum = "38b89f066f2ae72a2aef52d1537ca2fcd104440ebfadee06e97aa90738a25b9b" dependencies = [ "heck", "proc-macro2", "quote", - "syn 2.0.119", + "syn 3.0.9", ] [[package]] diff --git a/crates/bashkit-python/test-fixtures/random-fs/Cargo.toml b/crates/bashkit-python/test-fixtures/random-fs/Cargo.toml index 1f77c8be2..1f620da75 100644 --- a/crates/bashkit-python/test-fixtures/random-fs/Cargo.toml +++ b/crates/bashkit-python/test-fixtures/random-fs/Cargo.toml @@ -12,4 +12,4 @@ crate-type = ["cdylib"] [dependencies] bashkit = { path = "../../../bashkit", features = ["interop"] } -pyo3 = { version = "0.29.0", features = ["extension-module"] } +pyo3 = { version = "0.30.1", features = ["extension-module"] } diff --git a/examples/hyperlight/Cargo.lock b/examples/hyperlight/Cargo.lock index cb6993a06..c8cb21b06 100644 --- a/examples/hyperlight/Cargo.lock +++ b/examples/hyperlight/Cargo.lock @@ -1344,9 +1344,9 @@ dependencies = [ [[package]] name = "wasm-encoder" -version = "0.259.0" +version = "0.262.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1d0246511d901aacf25d2dc9111f0054947de5e093fe662099e709ff7530dc3" +checksum = "4495a6f85dd94c411c749303efcbc5defade0b0cbdbc0541495241ab917a9b5a" dependencies = [ "leb128fmt", "wasmparser", @@ -1354,9 +1354,9 @@ dependencies = [ [[package]] name = "wasm-metadata" -version = "0.259.0" +version = "0.262.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e7bf119eb01f4a246864c10bd87c8f26c566350abb25aa4d5273c415bbab338" +checksum = "c86ff6668190d9fb70372b306b4f9fe8930f0e2f57ce72e4922bf2f117900949" dependencies = [ "anyhow", "indexmap", @@ -1366,9 +1366,9 @@ dependencies = [ [[package]] name = "wasmparser" -version = "0.259.0" +version = "0.262.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f7c12eac7bb587801590f6a67ff0bc84d0748513864b71108e4b311cc3df694" +checksum = "974d643b125b272607e2fff8012ea14a8328acd7621e4bafa7afb32500052b1b" dependencies = [ "bitflags 2.13.2", "hashbrown", @@ -1446,9 +1446,9 @@ dependencies = [ [[package]] name = "wit-bindgen" -version = "0.62.0" +version = "0.63.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53cb4b5556c3a791e86838ea287782bdafa704d55b0e68b5b81a3a16b9ea5f4b" +checksum = "b85a987ab61d365382d25c7d47e26edd48941b3bf6e3fbf76eff918bc71dab06" dependencies = [ "bitflags 2.13.2", "wit-bindgen-rust-macro", @@ -1456,9 +1456,9 @@ dependencies = [ [[package]] name = "wit-bindgen-core" -version = "0.62.0" +version = "0.63.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "72ad22a37ecbc0e1fdca34d2b670ba41368cb0920735643e00fdf39a16ee5431" +checksum = "775e122e390603abfacd548027016cd0113a6e2bf2f8ce6bdd3658b013456ea8" dependencies = [ "anyhow", "heck", @@ -1467,9 +1467,9 @@ dependencies = [ [[package]] name = "wit-bindgen-rust" -version = "0.62.0" +version = "0.63.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84ba5213d4332c260a0d4e69e34b0f7e4b85ddae10b6ebfbac00d9c185ba628a" +checksum = "84e26e13b9d972026778d2ffb7985736de116026fdc8d9464f966e12df2eb240" dependencies = [ "anyhow", "heck", @@ -1483,9 +1483,9 @@ dependencies = [ [[package]] name = "wit-bindgen-rust-macro" -version = "0.62.0" +version = "0.63.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f19d63da8e478a370ef8192d90ccb517965b7747d6b46cd2d831dd0ef4d2541" +checksum = "16a008a0d6b4840677326beb4edbeb210a2f1b7d0183fb7cc33f466b90fd7fb6" dependencies = [ "anyhow", "macro-string", @@ -1499,9 +1499,9 @@ dependencies = [ [[package]] name = "wit-component" -version = "0.259.0" +version = "0.262.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "092f783dee3253265fcde131475055f8c275ac0176a9c0396db1dc7b5544bfb4" +checksum = "078def49fdb49cab405c3006e05793b3fdaf7069126ba6b9c97d01ec8c98fe4c" dependencies = [ "anyhow", "bitflags 2.13.2", @@ -1518,9 +1518,9 @@ dependencies = [ [[package]] name = "wit-parser" -version = "0.259.0" +version = "0.262.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6390f4f02493ce678d509c859cf1698e38929fb75c8012a6ee2f7d6b6cb66cd7" +checksum = "00f0dc051466ffe46787721fca3d088536f158ae400be044f1b1c386ba9397ad" dependencies = [ "anyhow", "hashbrown", diff --git a/examples/hyperlight/Cargo.toml b/examples/hyperlight/Cargo.toml index b085c4803..1fbbf7b8c 100644 --- a/examples/hyperlight/Cargo.toml +++ b/examples/hyperlight/Cargo.toml @@ -17,7 +17,7 @@ crate-type = ["cdylib"] [dependencies] bashkit = { path = "../../crates/bashkit", default-features = false, features = ["jq"] } -wit-bindgen = "0.62" +wit-bindgen = "0.63" futures-util = { version = "0.3", default-features = false } getrandom = "0.4" diff --git a/supply-chain/config.toml b/supply-chain/config.toml index 8e77b63ba..0173ad609 100644 --- a/supply-chain/config.toml +++ b/supply-chain/config.toml @@ -1114,7 +1114,7 @@ version = "0.1.3" criteria = "safe-to-deploy" [[exemptions.jiter]] -version = "0.17.0" +version = "0.18.0" criteria = "safe-to-deploy" [[exemptions.jni]] @@ -1702,27 +1702,27 @@ version = "0.13.6" criteria = "safe-to-deploy" [[exemptions.pyo3]] -version = "0.29.2" +version = "0.30.1" criteria = "safe-to-deploy" [[exemptions.pyo3-async-runtimes]] -version = "0.29.0" +version = "0.30.0" criteria = "safe-to-deploy" [[exemptions.pyo3-build-config]] -version = "0.29.2" +version = "0.30.1" criteria = "safe-to-deploy" [[exemptions.pyo3-ffi]] -version = "0.29.2" +version = "0.30.1" criteria = "safe-to-deploy" [[exemptions.pyo3-macros]] -version = "0.29.2" +version = "0.30.1" criteria = "safe-to-deploy" [[exemptions.pyo3-macros-backend]] -version = "0.29.2" +version = "0.30.1" criteria = "safe-to-deploy" [[exemptions.quick-error]]