Skip to content

Commit 9f6ab5c

Browse files
committed
pyo3, cargo update
1 parent e5cba8a commit 9f6ab5c

3 files changed

Lines changed: 80 additions & 35 deletions

File tree

Cargo.lock

Lines changed: 76 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ repository = "https://github.com/ijl/orjson"
99
homepage = "https://github.com/ijl/orjson"
1010
readme = "README.md"
1111
keywords = ["fast", "json", "datetime", "rfc", "3339"]
12+
include = ["Cargo.toml", "src/*"]
1213

1314
[lib]
1415
name = "orjson"
@@ -33,7 +34,7 @@ classifier = [
3334
[dependencies]
3435
encoding_rs = { version = "0.8", default_features = false }
3536
itoa = { version = "0.4", default_features = false }
36-
pyo3 = { git = "https://github.com/PyO3/pyo3.git", rev = "f9baa700d873cf04b70429b5d847275fad693e8d", features = ["extension-module", "python3"]}
37+
pyo3 = { git = "https://github.com/PyO3/pyo3.git", rev = "9e53418aadfd9d4f443fbf3c0b7e2d3823f7b260", features = ["extension-module", "python3"]}
3738
serde = { version = "1", default_features = false }
3839
serde_json = { version = "1", default_features = false }
3940
smallvec = { version = "0.6", default_features = false, features = ["union"] }

src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ mod typeref;
2525
fn orjson(py: Python, m: &PyModule) -> PyResult<()> {
2626
typeref::init_typerefs();
2727
m.add("__version__", env!("CARGO_PKG_VERSION"))?;
28-
m.add_wrapped(wrap_function!(dumps))?;
29-
m.add_wrapped(wrap_function!(loads))?;
28+
m.add_wrapped(wrap_pyfunction!(dumps))?;
29+
m.add_wrapped(wrap_pyfunction!(loads))?;
3030
m.add("JSONDecodeError", py.get_type::<exc::JSONDecodeError>())?;
3131
m.add("JSONEncodeError", py.get_type::<exc::JSONEncodeError>())?;
3232
m.add("OPT_STRICT_INTEGER", encode::STRICT_INTEGER.into_object(py))?;

0 commit comments

Comments
 (0)