-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
47 lines (42 loc) · 1.52 KB
/
Cargo.toml
File metadata and controls
47 lines (42 loc) · 1.52 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
[workspace]
resolver = "2"
members = ["hdf5", "hdf5-types"]
default-members = ["hdf5", "hdf5-types"]
[workspace.package]
rust-version = "1.80.0"
authors = [
"Ivan Smirnov <aldanor@users.noreply.github.com>",
"Magnus Ulimoen <mulimoen@users.noreply.github.com>",
]
keywords = ["hdf5"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/tensor4all/hdf5-rt"
homepage = "https://github.com/tensor4all/hdf5-rt"
edition = "2021"
[workspace.dependencies]
# external
cfg-if = "1.0"
half = { version = "2.2", default-features = false }
libc = "0.2"
libloading = "0.9"
num-complex = { version = "0.4", default-features = false }
# internal
hdf5-rt = { path = "hdf5" }
hdf5-rt-types = { path = "hdf5-types" }
# alias for internal use (to avoid changing all source code)
hdf5-types = { path = "hdf5-types", package = "hdf5-rt-types" }
[profile.dev]
# Fast compile, reasonable runtime
opt-level = 0 # no optimizations = much faster compilation
debug = 1 # keep minimal debug info (0 is smaller, 1 is a nice compromise)
incremental = true # reuse previous compilation work
codegen-units = 16 # more parallel codegen units = faster compiles
lto = "off" # no link-time optimization
panic = "unwind" # default, keeps backtraces usable
overflow-checks = true # keep checks for safety in dev
[profile.test]
# Inherit dev as a baseline, then tweak for tests
inherits = "dev"
opt-level = 0 # keep tests compiling fast
debug = 1 # enough info for backtraces
overflow-checks = true