-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
27 lines (24 loc) · 924 Bytes
/
Copy pathCargo.toml
File metadata and controls
27 lines (24 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[package]
name = "base85n-python"
version = "0.5.1"
edition = "2021"
description = "Python bindings for the Base85N reference implementation"
license = "MPL-2.0"
publish = false
[lib]
# Only a cdylib: nothing links this crate from Rust, and the encoder and
# decoder themselves live in the `base85n` crate one directory up. The target
# is named apart from that crate so the two do not collide in a shared build
# directory; maturin installs the artefact under the `module-name` set in
# pyproject.toml, which is what Python imports.
name = "base85n_python"
crate-type = ["cdylib"]
[dependencies]
base85n = { path = "../rust" }
# abi3-py39 builds one wheel that every CPython from 3.9 up can load, which is
# what lets `requires-python = ">=3.9"` in pyproject.toml stay honest without a
# wheel per interpreter version.
pyo3 = { version = "0.29", features = ["abi3-py39"] }
[profile.release]
lto = true
codegen-units = 1