-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathCargo.toml
More file actions
98 lines (87 loc) · 2.73 KB
/
Cargo.toml
File metadata and controls
98 lines (87 loc) · 2.73 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
[package]
name = "splashsurf_lib"
version = "0.13.0"
description = "Library for surface reconstruction of SPH particle data"
keywords = ["sph", "particle", "surface", "reconstruction", "marching-cubes"]
categories = ["graphics", "science", "simulation", "visualization", "rendering"]
readme = "README.md"
edition = "2024"
rust-version = "1.88"
documentation = "https://docs.rs/splashsurf_lib"
authors.workspace = true
license.workspace = true
homepage.workspace = true
repository.workspace = true
[package.metadata.docs.rs]
# RUSTDOCFLAGS="--cfg docsrs" cargo +nightly doc --all-features --no-deps --open
# Build with all features to properly document everything
all-features = true
targets = [
"x86_64-unknown-linux-gnu",
"i686-unknown-linux-gnu",
"aarch64-unknown-linux-gnu",
"aarch64-apple-darwin",
"x86_64-apple-darwin",
"x86_64-pc-windows-msvc",
"i686-pc-windows-msvc"
]
# Ignore the tests (especially the test mesh files) for publishing
exclude = ["tests/*", "benches/*"]
[features]
default = []
vtk_extras = ["vtkio"]
profiling = []
io = ["vtk_extras", "vtkio", "ply-rs", "nom", "serde_json", "flate2"]
serde-serialize = ["serde", "serde_derive", "serde_json", "nalgebra/serde-serialize"]
[dependencies]
log = "0.4"
nalgebra = { version = "0.34", features = ["rand", "bytemuck"] }
simba = "0.9.0"
num-traits = "0.2"
num-integer = "0.1"
anyhow = "1.0"
thiserror = "2.0"
itertools = "0.14.0"
parking_lot = "0.12"
thread_local = "1.1.4"
rayon = "1.7"
dashmap = "6.1.0"
fxhash = "0.2"
bitflags = "2.4"
arrayvec = "0.7"
bytemuck = { version = "1.9", features = ["extern_crate_alloc"] }
bytemuck_derive = "1.3"
numeric_literals = "0.2"
rstar = "0.12"
# IO
vtkio = { version = "0.6", optional = true }
#vtkio = { git = "https://github.com/elrnv/vtkio", optional = true , rev = "e14c8ff3caf84ae5e21c2ee70aa18275d6e54051" }
ply-rs = { version = "0.1.3", optional = true }
flate2 = { version = "1.0", optional = true }
nom = { version = "8.0", optional = true }
serde_json = { version = "1.0", optional = true }
# Serialization
serde = { version = "1.0", optional = true }
serde_derive = { version = "1.0", optional = true }
[dev-dependencies]
criterion = "0.7"
ultraviolet = "0.10"
sdfu = { git = "https://github.com/w1th0utnam3/sdfu", features = [
"ultraviolet",
], rev = "74856c41aaace7cf12e21b41bd0007f1363fea45" }
clap = { version = "4.5", features = ["derive"] }
fern = "0.7"
chrono = "0.4.41"
[[example]]
name = "minimal_levelset"
path = "examples/minimal_levelset.rs"
required-features = ["io"]
[[example]]
name = "minimal_sph_levelset"
path = "examples/minimal_sph_levelset.rs"
required-features = ["profiling", "io"]
[[bench]]
name = "splashsurf_lib_benches"
path = "benches/splashsurf_lib_benches.rs"
harness = false
required-features = ["io", "serde-serialize"]