Now build SimpleITK into static libs and use (auto)cxx.

This commit is contained in:
Wim Pomp
2025-09-12 18:03:24 +02:00
parent 0c6a38e4fa
commit 5750fd7f99
17 changed files with 8110 additions and 1426 deletions

View File

@@ -1,10 +1,10 @@
[package]
name = "sitk-registration-sys"
version = "2025.3.2"
version = "0.2.0"
edition = "2024"
license = "MIT OR Apache-2.0"
license = "Apache-2.0"
description = "register and interpolate images"
rust-version = "1.85.0"
rust-version = "1.85.1"
authors = ["Wim Pomp <w.pomp@nki.nl>"]
homepage = "https://github.com/wimpomp/sitk-registration-sys"
repository = "https://github.com/wimpomp/sitk-registration-sys"
@@ -12,23 +12,32 @@ documentation = "https://docs.rs/sitk-registration-sys"
readme = "README.md"
keywords = ["registration", "affine", "bspline", "transform"]
categories = ["multimedia::images", "science"]
exclude = ["SimpleITK/Testing/*", "SimpleITK/Examples/*", "SimpleITK/Wrapping/*"]
[lib]
name = "sitk_registration_sys"
crate-type = ["cdylib", "rlib"]
[dependencies]
anyhow = "1.0.97"
libc = "0.2.170"
anyhow = "1.0.99"
autocxx = "0.30.0"
cxx = "1.0.183"
link-cplusplus = "1.0.12"
ndarray = "0.16.1"
num = "0.4.3"
one_at_a_time_please = "1.0.1"
serde = { version = "1.0.218", features = ["derive"] }
serde = { version = "1.0.219", features = ["derive"] }
serde_yaml = "0.9.33"
tempfile = "3.22.0"
[build-dependencies]
autocxx-build = "0.30.0"
cc = "1.2.36"
cmake = "0.1.54"
git2 = "0.20.0"
regex = "1.11.2"
[dev-dependencies]
tempfile = "3.18.0"
[profile.dev]
lto = true
strip = "symbols"
[features]
sitk_no_build = [] # do not build all the C++ stuff, just use the rust code to make docs etc.