The linear 380-1050 nm axis gives spectrum chromaticities 0.09-0.13 (xy) away from the instrument's own x, y, so TM-30 and spd.csv inherit an axis error until it is confirmed. tools/make_fixtures.py regenerates the golden data from the python-final driver. The release profile moves to the workspace that builds the binary.
37 lines
1.0 KiB
TOML
37 lines
1.0 KiB
TOML
[package]
|
|
name = "hpcs6500"
|
|
version = "0.2.0"
|
|
edition = "2024"
|
|
rust-version = "1.85"
|
|
description = "Open-source driver and CLI for the HPCS 6500 spectrophotometer / integrating sphere"
|
|
repository = "https://git.b4l.co.th/B4L/HPCS6500-py"
|
|
readme = "README.md"
|
|
publish = false
|
|
|
|
[features]
|
|
default = ["cli"]
|
|
# the `hpcs6500` command line tool; library users can turn it off
|
|
cli = ["dep:clap", "dep:serde_json", "dep:chrono", "dep:ctrlc"]
|
|
|
|
[lib]
|
|
name = "hpcs6500"
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
name = "hpcs6500"
|
|
path = "src/cli/main.rs"
|
|
required-features = ["cli"]
|
|
|
|
[dependencies]
|
|
serialport = "4.7"
|
|
serde = { version = "1", features = ["derive"] }
|
|
thiserror = "2"
|
|
clap = { version = "4.5", features = ["derive"], optional = true }
|
|
serde_json = { version = "1", features = ["preserve_order"], optional = true }
|
|
chrono = { version = "0.4", default-features = false, features = ["clock", "std"], optional = true }
|
|
ctrlc = { version = "3.4", optional = true }
|
|
|
|
[dev-dependencies]
|
|
serde_json = { version = "1", features = ["preserve_order"] }
|
|
|