disable marshal.rs on Py_LIMITED_API

This commit is contained in:
David Hewitt 2023-10-02 21:36:17 +01:00
parent f335f42197
commit c80a61ee30
2 changed files with 4 additions and 1 deletions

View file

@ -0,0 +1 @@
Disable `PyMarshal_WriteObjectToString` from `PyMarshal_ReadObjectFromString` with the `abi3` feature.

View file

@ -281,6 +281,7 @@ pub use self::intrcheck::*;
pub use self::iterobject::*; pub use self::iterobject::*;
pub use self::listobject::*; pub use self::listobject::*;
pub use self::longobject::*; pub use self::longobject::*;
#[cfg(not(Py_LIMITED_API))]
pub use self::marshal::*; pub use self::marshal::*;
pub use self::memoryobject::*; pub use self::memoryobject::*;
pub use self::methodobject::*; pub use self::methodobject::*;
@ -351,7 +352,8 @@ mod iterobject;
mod listobject; mod listobject;
// skipped longintrepr.h // skipped longintrepr.h
mod longobject; mod longobject;
pub(crate) mod marshal; #[cfg(not(Py_LIMITED_API))]
pub mod marshal;
mod memoryobject; mod memoryobject;
mod methodobject; mod methodobject;
mod modsupport; mod modsupport;