This commit is contained in:
sangge-redmi 2024-09-04 11:32:54 +08:00
parent c629cd00c3
commit 0f289a728b
3 changed files with 8 additions and 4 deletions

View File

@ -11,4 +11,4 @@ crate-type = ["cdylib"]
[dependencies]
num-bigint = "0.4.6"
num-traits = "0.2.19"
pyo3 = "0.22.0"
pyo3 = { version = "0.22.2", features = ["extension-module"] }

4
ecc_rs.pyi Normal file
View File

@ -0,0 +1,4 @@
# ecc_rs.pyi
def add(p1: tuple[str, str], p2: tuple[str, str]) -> tuple[str, str]: ...
def multiply(point: tuple[str, str], n: str) -> tuple[str, str]: ...

View File

@ -6,10 +6,10 @@ build-backend = "maturin"
name = "ecc_rs"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
]
dynamic = ["version"]
[tool.maturin]
features = ["pyo3/extension-module"]
bindings = "pyo3"