diff --git a/README.md b/README.md index 0ad7325..5f266f5 100644 --- a/README.md +++ b/README.md @@ -95,14 +95,14 @@ Generating version-specific `python3y.dll` import libraries ----------------------------------------------------------- As an advanced feature, `python3-dll-a` can generate Python version -specific import libraries such as `python39.lib`. +specific import libraries such as `python39.lib` or `python313t.lib`. See the `ImportLibraryGenerator` builder API description for details. Maintenance ----------- -This crate embeds Module-Defitions based on the `stable_abi.toml` file from CPython. +This crate embeds Module-Definitions based on the `stable_abi.toml` file from CPython. The upstream version of this file is located in the [CPython project][cpython] repository under the path `Misc/stable_abi.toml`. diff --git a/src/lib.rs b/src/lib.rs index 15860f0..e04a157 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -91,7 +91,7 @@ //! ----------------------------------------------------------- //! //! As an advanced feature, `python3-dll-a` can generate Python version -//! specific import libraries such as `python39.lib`. +//! specific import libraries such as `python39.lib` or `python313t.lib`. //! //! See the [`ImportLibraryGenerator`] builder API description for details. @@ -137,6 +137,9 @@ pub enum PythonImplementation { /// Generates `python3.dll` or `pythonXY.dll` import library directly from the /// embedded Python ABI definitions data for the specified compile target. /// +/// ABI-tagged versioned Python DLLs such as `python313t.dll` are also supported +/// via an optional string tag parameter. +/// /// Example usage /// ------------- /// @@ -164,6 +167,13 @@ pub enum PythonImplementation { /// .version(Some((3, 8))) /// .generate(Path::new("target/python3-lib")) /// .unwrap(); +/// +/// // Generate `python313t.lib` in "target/python3-lib" +/// ImportLibraryGenerator::new("x86_64", "msvc") +/// .version(Some((3, 13))) +/// .abi_tag(Some("t")) +/// .generate(Path::new("target/python3-lib")) +/// .unwrap(); /// ``` #[derive(Debug, Clone)] pub struct ImportLibraryGenerator {