Skip to content

Commit

Permalink
Initial Python bindings support
Browse files Browse the repository at this point in the history
  • Loading branch information
commial committed Jan 12, 2024
1 parent 414422b commit 01fff63
Show file tree
Hide file tree
Showing 5 changed files with 887 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ members = [
"mlar",
"mla-fuzz-afl",
"bindings/C",
"bindings/python",
]

[profile.release]
Expand Down
19 changes: 19 additions & 0 deletions bindings/python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[package]
name = "pymla"
version = "0.1.0"
edition = "2021"
authors = ["Camille Mougey <camille.mougey@ssi.gouv.fr>"]
license = "LGPL-3.0-only"
description = "Multi Layer Archive - A pure rust encrypted and compressed archive file format"
homepage = "https://github.com/ANSSI-FR/MLA"
repository = "https://github.com/ANSSI-FR/MLA"
readme = "../../README.md"

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

[dependencies]
pyo3 = "0.19.0"
mla = { version = "1", features = ["send"], path = "../../mla"}
24 changes: 24 additions & 0 deletions bindings/python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[build-system]
requires = ["maturin>=1.4,<2.0"]
build-backend = "maturin"

[project]
name = "mla"
description = "Bindings for MLA Archive manipulation"
requires-python = ">=3.8"
keywords = ["archive", "mla"]
license = {file = "../../LICENSE.md"}
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dynamic = ["version"]

[project.urls]
documentation = "https://github.com/ANSSI-FR/MLA"
repository = "https://github.com/ANSSI-FR/MLA"

[tool.maturin]
features = ["pyo3/extension-module"]
module-name = "mla"
Loading

0 comments on commit 01fff63

Please sign in to comment.