cloned from commit 8ece0d4bec4553934aa5883c15efdc3ccc49515f

then change crate-type to add "rlib" type so it can be used directly from Rust

then apply diff:

diff --git a/Cargo.toml b/Cargo.toml
index 516f4d0..b1b2727 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -65,7 +65,7 @@ itoa = { version = "1", default-features = false }
 itoap = { version = "1", default-features = false, features = ["std", "simd"] }
 jiff = { version = "^0.1", default-features = false, features = ["alloc"] }
 once_cell = { version = "1", default-features = false, features = ["alloc", "race"] }
-pyo3-ffi = { path = "include/pyo3/pyo3-ffi", default-features = false, features = ["extension-module"]}
+pyo3-ffi = { path = "../pyo3/pyo3-ffi", default-features = false, features = ["extension-module"]}
 ryu = { version = "1", default-features = false }
 serde = { version = "1", default-features = false }
 serde_json = { version = "1", default-features = false, features = ["std", "float_roundtrip"] }
@@ -77,7 +77,7 @@ xxhash-rust = { version = "^0.8", default-features = false, features = ["xxh3"]

 [build-dependencies]
 cc = { version = "1" }
-pyo3-build-config = { path = "include/pyo3/pyo3-build-config" }
+pyo3-build-config = { path = "../pyo3/pyo3-build-config" }
 version_check = { version = "0.9" }

 [profile.dev]
