From db8b55a3fcbef34dd2e43c3cbcbfa734d1eed204 Mon Sep 17 00:00:00 2001 From: mejrs <> Date: Sun, 21 Aug 2022 17:51:11 +0200 Subject: [PATCH 1/2] pyproto is no longer enabled by default --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 13471c9c9c6..dfe6db20580 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -72,8 +72,6 @@ //! The following features are turned on by default: //! - `macros`: Enables various macros, including all the attribute macros excluding the deprecated //! `#[pyproto]` attribute. -//! - `pyproto`: Adds the deprecated `#[pyproto]` attribute macro. Likely to become optional and -//! then removed in the future. //! //! ## Optional feature flags //! @@ -89,6 +87,8 @@ //! - `multiple-pymethods`: Enables the use of multiple [`#[pymethods]`](macro@crate::pymethods) //! blocks per [`#[pyclass]`](macro@crate::pyclass). This adds a dependency on the [inventory] //! crate, which is not supported on all platforms. +//! - `pyproto`: Enables the deprecated `#[pyproto]` attribute macro. This will be removed in a +//! future release. //! //! The following features enable interactions with other crates in the Rust ecosystem: //! - [`anyhow`]: Enables a conversion from [anyhow]’s [`Error`][anyhow_error] type to [`PyErr`]. From ae50da1e3e246c66486e692303405426b9c7b9c7 Mon Sep 17 00:00:00 2001 From: mejrs <> Date: Mon, 22 Aug 2022 21:14:07 +0200 Subject: [PATCH 2/2] Mention a concrete pyo3 version --- src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index dfe6db20580..3b8ca478cb2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -87,8 +87,7 @@ //! - `multiple-pymethods`: Enables the use of multiple [`#[pymethods]`](macro@crate::pymethods) //! blocks per [`#[pyclass]`](macro@crate::pyclass). This adds a dependency on the [inventory] //! crate, which is not supported on all platforms. -//! - `pyproto`: Enables the deprecated `#[pyproto]` attribute macro. This will be removed in a -//! future release. +//! - `pyproto`: Enables the deprecated `#[pyproto]` attribute macro. This will be removed in PyO3 0.18. //! //! The following features enable interactions with other crates in the Rust ecosystem: //! - [`anyhow`]: Enables a conversion from [anyhow]’s [`Error`][anyhow_error] type to [`PyErr`].