forked from NSoiffer/MathCATForPython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
39 lines (30 loc) · 1.15 KB
/
Cargo.toml
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
28
29
30
31
32
33
34
35
36
37
38
39
# This will build for the target platform
# The python must match that (i.e., 64 bit platforms need 64 bit pythons by default)
# You can specify which python to use by setting the environment variable PYO3_PYTHON to point to that python
# For example
# env PYO3_PYTHON=C:/usr/bin/python32-3.8 cargo build --target i686-pc-windows-msvc --release
[package]
name = "MathCatForPython"
version = "0.3.3"
authors = ["Neil Soiffer <[email protected]>"]
edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
# [dependencies]
[lib]
name = "libmathcat_py"
crate-type = ["cdylib"]
[dependencies.mathcat]
version = "0.3.3"
# for testing MathCAT without having to publish a new version (change two occurences)
# path = "../MathCAT/"
[dependencies.pyo3]
version = "0.15.1"
features = ["extension-module", "abi3"]
[build-dependencies]
zip = { version = "0.6.2", default-features = false, features = ["deflate"] }
mathcat = "0.3.3"
# for testing MathCAT without having to publish a new version (change two occurences)
# mathcat = {path = "../MathCAT/"}
[profile.release]
lto = true
# opt-level = "z" # Optimize for size.