Skip to content

Commit fe934ed

Browse files
committed
docs: Describe arbitrary_precision feature in readme. Update changelog. ci: Run tests for arbitrary_precision feature.
1 parent ca3cf02 commit fe934ed

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ jobs:
9494
- name: Test (abi3)
9595
run: cargo test --verbose --features pyo3/abi3-py37
9696

97+
- name: Test (arbitrary_precision)
98+
run: cargo test --verbose --features arbitrary_precision
99+
97100
env:
98101
RUST_BACKTRACE: 1
99102

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 0.28.0 - 2026-02-17
2+
- Add `arbitrary_precision` feature
3+
14
## 0.27.0 - 2025-11-07
25
- Update to PyO3 0.27
36

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Pythonize has two main public APIs: `pythonize` and `depythonize`.
1717
[Serde]: https://github.com/serde-rs/serde
1818
[PyO3]: https://github.com/PyO3/pyo3
1919

20-
# Examples
20+
## Examples
2121

2222
```rust
2323
use serde::{Serialize, Deserialize};
@@ -47,3 +47,14 @@ Python::attach(|py| {
4747
assert_eq!(new_sample, sample);
4848
})
4949
```
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"] }
60+
```

0 commit comments

Comments
 (0)