Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 16 additions & 17 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
Expand Down
8 changes: 7 additions & 1 deletion crates/bashkit-monty/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[P2] Knowledge now stale: knowledge/operations/dependencies.md:90-91 still says "Monty 1.4 uses published jiter 0.17 with pyo3 0.29", but this PR moves the tree to jiter 0.18 / pyo3 0.30 (this file's jiter = "0.18.0" line is the evidence). Per AGENTS.md (update knowledge in the same change when durable facts change), update that sentence to jiter 0.18 with pyo3 0.30 in this PR.

libm = { version = "0.2" }
memchr = { version = "2.7" }
minicbor-serde = { version = "0.7", features = ["alloc"], default-features = false }
Expand Down
14 changes: 5 additions & 9 deletions crates/bashkit-python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1627,7 +1627,7 @@ fn policy_from_py(policy: &str) -> PyResult<RustCheckoutPolicy> {
}

/// 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,
Expand Down Expand Up @@ -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)]
Expand Down Expand Up @@ -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)]
Expand Down Expand Up @@ -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<String, String>,
variables: HashMap<String, String>,
Expand Down Expand Up @@ -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,
Expand Down
11 changes: 3 additions & 8 deletions crates/bashkit-python/src/streaming.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down Expand Up @@ -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,
}
Expand All @@ -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<String>,
Expand Down
24 changes: 12 additions & 12 deletions crates/bashkit-python/test-fixtures/random-fs/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/bashkit-python/test-fixtures/random-fs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"] }
36 changes: 18 additions & 18 deletions examples/hyperlight/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/hyperlight/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Loading
Loading