# 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 = "2021"
rust-version = "1.75"
name = "ascom-alpaca-core"
version = "0.1.1"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Framework-agnostic ASCOM Alpaca protocol types and traits for Rust — all 10 device types, no HTTP framework required"
documentation = "https://docs.rs/ascom-alpaca-core"
readme = "README.md"
keywords = [
    "ascom",
    "alpaca",
    "astronomy",
    "astrophotography",
    "telescope",
]
categories = [
    "science",
    "encoding",
]
license = "Apache-2.0"
repository = "https://github.com/nightwatch-astro/ascom-alpaca-core"

[features]
all-devices = [
    "camera",
    "cover_calibrator",
    "dome",
    "filter_wheel",
    "focuser",
    "observing_conditions",
    "rotator",
    "safety_monitor",
    "switch",
    "telescope",
]
camera = []
conformu = [
    "dep:tiny_http",
    "all-devices",
]
cover_calibrator = []
default = ["all-devices"]
dome = []
filter_wheel = []
focuser = []
observing_conditions = []
rotator = []
safety_monitor = []
switch = []
telescope = []

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.serde_json]
version = "1"

[dependencies.serde_repr]
version = "0.1"

[dependencies.thiserror]
version = "2"

[dependencies.tiny_http]
version = "0.12"
optional = true

[dev-dependencies.serde_yaml]
version = "0.9"
