Skip to content

Commit

Permalink
preparing for python binding migration
Browse files Browse the repository at this point in the history
  • Loading branch information
bnkc committed Jul 29, 2024
1 parent 80ccd5b commit 3832768
Show file tree
Hide file tree
Showing 6 changed files with 324 additions and 304 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[lib]
name = "emv"
name = "_emv"
crate-type = ["cdylib"]

[dependencies]
Expand Down
6 changes: 6 additions & 0 deletions emv/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# This is the public API of emv
# from .core import Encoding as Encoding
# from .model import encoding_for_model as encoding_for_model
# from .model import encoding_name_for_model as encoding_name_for_model
# from .registry import get_encoding as get_encoding
# from .registry import list_encoding_names as list_encoding_names
Empty file added emv/validator.py
Empty file.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ classifiers = [
]
dynamic = ["version"]
[tool.maturin]
module-name = "emv._emv"
features = ["pyo3/extension-module"]
Loading

0 comments on commit 3832768

Please sign in to comment.