diff --git a/src/class/mod.rs b/src/class/mod.rs index 4b7543aa..29315a82 100644 --- a/src/class/mod.rs +++ b/src/class/mod.rs @@ -7,6 +7,7 @@ mod macros; pub mod basic; #[cfg(not(Py_LIMITED_API))] +#[cfg_attr(docsrs, doc(cfg(not(Py_LIMITED_API))))] pub mod buffer; pub mod context; pub mod descr; @@ -23,6 +24,7 @@ pub mod sequence; pub use self::basic::PyObjectProtocol; #[cfg(not(Py_LIMITED_API))] +#[cfg_attr(docsrs, doc(cfg(not(Py_LIMITED_API))))] pub use self::buffer::PyBufferProtocol; pub use self::context::PyContextProtocol; pub use self::descr::PyDescrProtocol;