Skip to content

Commit 15fa831

Browse files
doc: note pyo3 libpython requirement
1 parent 00e1d91 commit 15fa831

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
- added crate-level examples for weak references and owner downcasting
1515
- expanded module introduction describing use cases
1616
- documented rationale for separating `ByteSource` and `ByteOwner`
17+
- note that the `pyo3` feature requires Python development libraries
1718

1819
## 0.19.3 - 2025-05-30
1920
- implemented `Error` for `ViewError`

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ Other optional features provide additional integrations:
7474
- `zerocopy` – exposes the [`view`](src/view.rs) module for typed zero-copy access and allows using `zerocopy` types as sources.
7575
- `pyo3` – builds the [`pybytes`](src/pybytes.rs) module to provide Python bindings for `Bytes`.
7676

77+
Enabling the `pyo3` feature requires the Python development headers and libraries
78+
(for example `libpython3.x`). Running `cargo test --all-features` therefore
79+
needs these libraries installed; otherwise disable the feature during testing.
80+
7781
## Examples
7882

7983
- [`examples/quick_start.rs`](examples/quick_start.rs) – the quick start shown above

0 commit comments

Comments
 (0)