-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCargo.toml
More file actions
35 lines (29 loc) · 1.25 KB
/
Cargo.toml
File metadata and controls
35 lines (29 loc) · 1.25 KB
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
[package]
name = "mathcat_c"
version = "0.7.5"
authors = ["Neil Soiffer <soiffer@alum.mit.edu>"]
edition = "2021"
license = "MIT"
description = "C/C++ interface for MathCAT (for MathCAT info, see crates.io or nsoiffer.github.io/MathCAT)"
resolver = "2" # allows different build dependency features
[features]
"include-zip" = ["mathcat/include-zip"] # include the zip files in the build
[dependencies]
mathcat = {version = "0.7.5"}
# mathcat = {path= "../MathCAT/"} # for building, we want the zip files so we can include them separately
[lib]
name = "libmathcat_c"
crate-type = ["cdylib"] # Creates dynamic lib
[build-dependencies]
cfg-if = "1.0.1"
zip = { version = "6.0", default-features = false, features = ["bzip2"] }
cbindgen = "0.29"
# for testing MathCAT without having to publish a new version (change two occurrences)
mathcat = {version = "=0.7.5", features = ["include-zip"]} # for building, we want the zip files so we can include them separately
# mathcat = {path = "../MathCAT/" , features = ["include-zip"]} # for building, we want the zip files so we can include them separately
[target.'cfg(target_os = "windows")'.build-dependencies]
embed-resource = "2.5"
[profile.release]
debug = true
lto = true
# opt-level = "z" # Optimize for size.