You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ Pythonize has two main public APIs: `pythonize` and `depythonize`.
17
17
[Serde]: https://github.com/serde-rs/serde
18
18
[PyO3]: https://github.com/PyO3/pyo3
19
19
20
-
# Examples
20
+
##Examples
21
21
22
22
```rust
23
23
useserde::{Serialize, Deserialize};
@@ -47,3 +47,14 @@ Python::attach(|py| {
47
47
assert_eq!(new_sample, sample);
48
48
})
49
49
```
50
+
51
+
## Features
52
+
53
+
### `arbitrary_precision`
54
+
55
+
Enable support for `serde_json`'s `arbitrary_precision` feature, which allows handling numbers that exceed the range of `i128`/`u128` when converting `serde_json::Value` to and from Python.
56
+
57
+
```toml
58
+
[dependencies]
59
+
pythonize = { version = "0.28", features = ["arbitrary_precision"] }
0 commit comments