-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathCargo.toml
More file actions
98 lines (84 loc) · 2.11 KB
/
Cargo.toml
File metadata and controls
98 lines (84 loc) · 2.11 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 = "cdshealpix"
version = "0.9.1"
authors = ["F.-X. Pineau <francois-xavier.pineau@astro.unistra.fr>"]
edition = "2024"
rust-version = "1.87"
license = "Apache-2.0 OR MIT"
readme = "README.md"
categories = ["algorithms", "science"]
repository = "https://github.com/cds-astro/cds-healpix-rust/"
description = """
Rust implementation of the HEALPix tesselation.
"""
exclude = [
"makeDoc.bash",
"resources/4doc",
]
# Use:
# > cargo rustdoc --open -- --html-in-header katex.html
# to look at the doc locally
[package.metadata.docs.rs]
rustdoc-args = ["--html-in-header", "katex.html"]
[lib]
name = "cdshealpix"
path = "src/lib.rs"
test = true
doctest = true
bench = true
doc = true
[workspace]
members = [
"crates/cli",
"crates/wasm"
]
[workspace.dependencies]
log = "0.4"
rayon = "1.10"
mapproj = "0.4"
memmap2 = "0.9"
thiserror = "2.0"
colorous = "1.0"
[dependencies]
log = { workspace = true }
mapproj = { workspace = true } # Projection to wiew skymaps/MOMs
memmap2 = { workspace = true } # Skymaps/MOMs
rayon = { workspace = true } # Parallelism (sort)
thiserror = { workspace = true } # Error handling
colorous = { workspace = true } # Color map for PNG skymap/MOM
katex-doc = "0.1.0"
# MOC specific
base64 = "0.22" # Added for Compressed MOC
num = "0.4" # Added for MOC
num-traits = "0.2" # Added for MOC
# Skymaps
byteorder = "1.5"
png = "0.17"
# Compression/decompression
flate2 = "1.0"
# Serialization/Deserialization
serde = { version = "1.0", features = ["derive"] } # MOM serialization/deserialization
bincode = "1.3.3"
toml = "0.8"
# MOM specific
itertools = "0.14"
# For date in FITS written files
chrono = "0.4"
[dev-dependencies]
criterion = "0.4"
rand = "0.8"
env_logger = "0.11"
[[bench]]
name = "nested_hash"
harness = false
[[bench]]
name = "zordercurve"
harness = false
[features]
# See opti here: https://github.com/johnthagen/min-sized-rust
[profile.release]
strip = true # Automatically strip symbols from the binary.
opt-level = 3 # 1,2,3,s,z Optimize for size instead of speed
lto = true # Optimize at the link stage (may remove dead code)
codegen-units = 1
panic = "abort"