# 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.92"
name = "sidm"
version = "0.3.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "PyDM-style EPICS display widgets and data engine, built on siplot"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/physwkim/siplot"

[features]
ca = [
    "dep:epics-ca-rs",
    "dep:epics-base-rs",
]
calc = ["dep:evalexpr"]
default = [
    "ca",
    "pva",
    "calc",
]
pva = ["dep:epics-pva-rs"]

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

[[example]]
name = "sidm_ca_panel"
path = "examples/sidm_ca_panel.rs"
required-features = ["ca"]

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

[[example]]
name = "sidm_mini_beamline"
path = "examples/sidm_mini_beamline.rs"
required-features = ["ca"]

[[test]]
name = "ca_ioc"
path = "tests/ca_ioc.rs"

[[test]]
name = "calc_derived"
path = "tests/calc_derived.rs"

[[test]]
name = "composite_z_order_render"
path = "tests/composite_z_order_render.rs"

[[test]]
name = "engine_fake"
path = "tests/engine_fake.rs"

[[test]]
name = "engine_local"
path = "tests/engine_local.rs"

[[test]]
name = "pva_ioc"
path = "tests/pva_ioc.rs"

[[test]]
name = "widget_array_plots_render"
path = "tests/widget_array_plots_render.rs"

[[test]]
name = "widget_base_render"
path = "tests/widget_base_render.rs"

[[test]]
name = "widget_byte_render"
path = "tests/widget_byte_render.rs"

[[test]]
name = "widget_drawing_render"
path = "tests/widget_drawing_render.rs"

[[test]]
name = "widget_event_plot_render"
path = "tests/widget_event_plot_render.rs"

[[test]]
name = "widget_image_view_render"
path = "tests/widget_image_view_render.rs"

[[test]]
name = "widget_justified_fill"
path = "tests/widget_justified_fill.rs"

[[test]]
name = "widget_middle_click_copy"
path = "tests/widget_middle_click_copy.rs"

[[test]]
name = "widget_plot_menu"
path = "tests/widget_plot_menu.rs"

[[test]]
name = "widget_plot_style_render"
path = "tests/widget_plot_style_render.rs"

[[test]]
name = "widget_scale_indicator_render"
path = "tests/widget_scale_indicator_render.rs"

[[test]]
name = "widget_symbol_render"
path = "tests/widget_symbol_render.rs"

[[test]]
name = "widget_time_plot_render"
path = "tests/widget_time_plot_render.rs"

[dependencies.epics-base-rs]
version = "0.18"
optional = true

[dependencies.epics-ca-rs]
version = "0.18"
optional = true

[dependencies.epics-pva-rs]
version = "0.18"
optional = true

[dependencies.evalexpr]
version = "13"
optional = true

[dependencies.image]
version = "0.25"
features = [
    "gif",
    "png",
    "tiff",
]
default-features = false

[dependencies.log]
version = "0.4"

[dependencies.siplot]
version = "0.3.0"

[dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "sync",
    "time",
    "macros",
    "net",
]

[dependencies.tokio-util]
version = "0.7"

[dev-dependencies.eframe]
version = "0.34"

[dev-dependencies.egui_kittest]
version = "0.34.3"
features = ["wgpu"]

[target.'cfg(target_os = "linux")'.dependencies.arboard]
version = "3.6"
default-features = false
