prakash 1.2.0

Optics and light simulation — ray optics, wave optics, spectral math, lens geometry, atmospheric scattering, physically-based rendering
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.89"
name = "prakash"
version = "1.2.0"
build = false
exclude = [
    ".claude/",
    ".github/",
    "docs/",
    "scripts/",
    "bench-history.csv",
    "benchmarks.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Optics and light simulation — ray optics, wave optics, spectral math, lens geometry, atmospheric scattering, physically-based rendering"
homepage = "https://github.com/MacCracken/prakash"
documentation = "https://docs.rs/prakash"
readme = "README.md"
keywords = [
    "optics",
    "light",
    "ray-tracing",
    "pbr",
    "physics",
]
categories = [
    "science",
    "rendering",
    "simulation",
]
license = "GPL-3.0-only"
repository = "https://github.com/MacCracken/prakash"

[features]
ai = [
    "dep:reqwest",
    "dep:tokio",
    "dep:serde_json",
]
atmosphere = []
default = [
    "ray",
    "wave",
    "spectral",
    "lens",
]
full = [
    "ray",
    "wave",
    "spectral",
    "lens",
    "pbr",
    "atmosphere",
    "ai",
    "logging",
]
lens = []
logging = ["dep:tracing-subscriber"]
pbr = []
ray = []
spectral = []
wave = []

[lib]
name = "prakash"
path = "src/lib.rs"

[[example]]
name = "basic_optics"
path = "examples/basic_optics.rs"
required-features = [
    "ray",
    "spectral",
    "lens",
]

[[example]]
name = "camera_lens"
path = "examples/camera_lens.rs"
required-features = [
    "ray",
    "spectral",
    "lens",
]

[[example]]
name = "pbr_materials"
path = "examples/pbr_materials.rs"
required-features = ["pbr"]

[[example]]
name = "rainbow"
path = "examples/rainbow.rs"
required-features = [
    "ray",
    "spectral",
]

[[test]]
name = "integration"
path = "tests/integration.rs"
required-features = [
    "ray",
    "wave",
    "spectral",
    "lens",
    "pbr",
    "atmosphere",
]

[[bench]]
name = "benchmarks"
path = "benches/benchmarks.rs"
harness = false
required-features = [
    "ray",
    "wave",
    "spectral",
    "lens",
    "pbr",
    "atmosphere",
]

[dependencies.hisab]
version = "1.3"

[dependencies.reqwest]
version = "0.13"
features = ["json"]
optional = true

[dependencies.serde]
version = "1"
features = ["derive"]

[dependencies.serde_json]
version = "1"
optional = true

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["full"]
optional = true

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
]
optional = true

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

[dev-dependencies.proptest]
version = "1"

[dev-dependencies.serde_json]
version = "1"