Skip to content

Commit

Permalink
build: add maturin
Browse files Browse the repository at this point in the history
  • Loading branch information
AshGw committed May 31, 2024
1 parent f267fae commit 93b150d
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@

[package]
name = "gcm"
name = "gcm_rs"
version = "1.0.0"
authors = ["ashgw [email protected]"]
edition = "2021"
description = "AES-256 GCM"
repository = "https://github.com/ashgw/gcm"
repository = "https://github.com/ashgw/gcm_rs"
license = "GPL-3.0"

[lib]
name = "ready_gcm"
path = "src/lib.rs"
name = "gcm_rs"
path = "rust/lib.rs"

[profile.dev]
opt-level = 0
Expand Down
2 changes: 2 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ alias cov:= coverage
# cargo install cargo-tarpaulin
rustup component add clippy-preview
pip install pre-commit
pip install maturin
maturin build
just h
cargo build

Expand Down
18 changes: 18 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[build-system]
requires = ["maturin>=1.4,<2.0"]
build-backend = "maturin"

[project]
name = "gcm_rs"
requires-python = ">=3.8"
classifiers = [
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dynamic = ["version"]

[tool.maturin]
python-source = "python"
module-name = "ready_gcm._lib_name"
features = ["pyo3/extension-module"]
Empty file added python/gcm_rs/main.py
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 93b150d

Please sign in to comment.