Skip to content

Commit

Permalink
Merge pull request #64 from kevinheavey/pyo3-19
Browse files Browse the repository at this point in the history
Use PyO3 v0.19.2
  • Loading branch information
kevinheavey authored Aug 12, 2023
2 parents 27340c2 + 5dfcea0 commit 1c60503
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 30 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## Unreleased

### Changed

- Use PyO3 v0.19.2 [(#64)](https://github.com/kevinheavey/solders/pull/64)

## [0.19.0] - 2023-07-31

- Add Token Program ID (`solders.token.ID`)
Expand Down
39 changes: 15 additions & 24 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 @@ -62,7 +62,7 @@ license = "MIT"
edition = "2021"

[workspace.dependencies]
pyo3 = { version = "0.18.0", default-features = false }
pyo3 = { version = "0.19.2", default-features = false }
solders-macros = { path = "./crates/macros", version = "=0.18.1" }
solders-traits = { path = "./crates/traits", version = "=0.18.1" }
solders-traits-core = { path = "./crates/traits-core", version = "=0.18.1" }
Expand Down Expand Up @@ -131,7 +131,7 @@ serde_cbor = "^0.11.2"
derive_more = "0.99.17"
solana-program-test = "1.16.0"
solana-banks-client = "1.16.0"
pythonize = "0.18.0"
pythonize = "0.19.0"
bs58 = "0.4.0"
thiserror = "^1.0.31"
camelpaste = "0.1.0"
2 changes: 1 addition & 1 deletion crates/bankrun/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ solana-program-test = { workspace = true }
solana-banks-client = { workspace = true }
tarpc = { version = "0.29.0" }
toml = "0.7.3"
pyo3-asyncio = { version = "0.18.0", features = ["tokio-runtime"] }
pyo3-asyncio = { version = "0.19.0", features = ["tokio-runtime"] }
4 changes: 1 addition & 3 deletions crates/rpc-requests/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2808,9 +2808,7 @@ pub fn batch_to_json(reqs: Vec<Body>) -> String {
/// }]
///
#[pyfunction]
pub fn batch_from_json(raw: &str) -> PyResult<Vec<PyObject>> {
let gil = Python::acquire_gil();
let py = gil.python();
pub fn batch_from_json(py: Python<'_>, raw: &str) -> PyResult<Vec<PyObject>> {
let deser: Vec<Body> = serde_json::from_str(raw).unwrap();
Ok(deser.into_iter().map(|x| x.into_py(py)).collect())
}
Expand Down

0 comments on commit 1c60503

Please sign in to comment.