-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
67 lines (60 loc) · 2.04 KB
/
Copy pathCargo.toml
File metadata and controls
67 lines (60 loc) · 2.04 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
[package]
name = "pvlib-rust"
version = "0.1.6"
edition = "2024"
rust-version = "1.85"
description = "A Rust port of pvlib-python: solar energy modeling toolkit"
license = "Apache-2.0"
repository = "https://github.com/p-vbordei/pvlib-rust"
homepage = "https://github.com/p-vbordei/pvlib-rust"
documentation = "https://docs.rs/pvlib-rust"
readme = "README.md"
keywords = ["solar", "photovoltaic", "pvlib", "energy", "irradiance"]
categories = ["science", "simulation"]
exclude = [
"pvlib-python-ref/**",
"pvlib-python-ref/",
"docs/**",
"firebase-debug.log",
"clippy_output.txt",
]
[lib]
name = "pvlib"
[features]
default = ["pvgis"]
# Network I/O for PVGIS / NREL SAM helpers (pulls in reqwest + TLS stack).
# Disable to build the pure-compute parts of the library with fewer
# transitive dependencies (useful for wasm32-unknown-unknown).
pvgis = ["dep:reqwest"]
[dependencies]
chrono = { version = "0.4", features = ["serde"] }
chrono-tz = "0.10"
csv = "1.4"
rayon = "1.11"
reqwest = { version = "0.13", default-features = false, features = ["blocking", "rustls", "webpki-roots"], optional = true }
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# Pinned exactly (pre-1.0, single maintainer, 18 releases in 10 months) per
# docs/decisions/spa-solar-position.md. `default-features = false` +
# `libm` keeps the math backend no_std-clean (verified on wasm32-unknown-unknown,
# see Cargo CI note below); `chrono` is enabled for the `DateTime<Tz>` convenience
# API pvlib-rust already depends on chrono itself either way.
solar-positioning = { version = "=0.5.2", default-features = false, features = ["libm", "chrono"] }
thiserror = "2"
[dev-dependencies]
approx = "0.5"
criterion = { version = "0.5", default-features = false }
tempfile = "3"
# Gate-G1 golden parity tests (tests/golden_*.rs) read gzipped CSV fixtures.
flate2 = "1"
[[bench]]
name = "batch_tmy"
harness = false
[profile.release]
lto = "fat"
codegen-units = 1
panic = "abort"
strip = "debuginfo"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]