Add `convert.rs`: a SIMD nearest-color search and a rayon-parallel `nordify_pixels` function. Add `error.rs` with the `NordifyError` type. Rewrite `lib.rs` to expose `NordifyOptions`, `nordify_image`, and `nordify_file` as the public API. Rewrite `main.rs` to parse CLI arguments with `argh` and call into `lib.rs`. Add `argh` and `thiserror` as dependencies.
28 lines
551 B
TOML
28 lines
551 B
TOML
[package]
|
|
name = "nordify-rs"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
authors = ["Lucien Cartier-Tilet <lucien@phundrak.com>"]
|
|
license = "GPL-3.0-or-later"
|
|
homepage = "https://labs.phundrak.com/phundrak/nordify-rs"
|
|
repository = "https://labs.phundrak.com/phundrak/nordify-rs"
|
|
|
|
[lib]
|
|
path = "src/lib.rs"
|
|
|
|
[[bin]]
|
|
path = "src/main.rs"
|
|
name = "nordify"
|
|
|
|
[dependencies]
|
|
argh = "0.1.19"
|
|
image = "0.25.10"
|
|
ndarray = { version = "0.17.2", features = ["rayon"] }
|
|
rayon = "1.12.0"
|
|
thiserror = "2.0.20"
|
|
wide = "1.6.1"
|
|
|
|
[profile.release]
|
|
lto = true
|
|
codegen-units = 1
|