Avatar for the PyO3 user
PyO3
pyo3
BlogDocsChangelog

Add native_enum: expose Rust enums as Python enum.Enum subclasses

#6020
Comparing
wakita181009:native-enum
(
c0f95ea
) with
main
(
f57bda7
)
CodSpeed Performance Gauge
+13%
Improvement
1
Untouched
104
New
6
Ignored
21
Skipped
1

Benchmarks

1 total
first_time_init
pyo3-benches/benches/bench_pyclass.rs::benches::criterion_benchmark
Skipped
40.5 µs*

Commits

Click on a commit to change the comparison range
Base
main
f57bda7
+12.89%
fix: use URL for NativeEnum doc link in proc-macro crate
ad12c50
22 hours ago
by wakita181009
0%
fix: add native_enums.pyi stub for introspection test
18dcacb
21 hours ago
by wakita181009
0%
fix: use String instead of &str in FromPyObject for abi3 compatibility
1dbd0c0
21 hours ago
by wakita181009
0%
refactor: use `name` instead of `rename` for native_enum attributes
c0f95ea
21 hours ago
by wakita181009
© 2026 CodSpeed Technology
Home Terms Privacy Docs