[package] name = "ssp-server" version = "0.4.0" edition = "2021" authors = ["SSP Rust Developers"] description = "Reference server implementation for the SSP/eSSP serial communication protocol" keywords = ["serial", "ssp", "bill-acceptor", "bill-validator"] categories = ["network-programming"] repository = "https://github.com/ssp-rs/ssp-server" license = "MIT" [package.metadata.docs.rs] all-features = true rustdoc-args = ["--cfg", "doc_cfg"] [dependencies] bus = "2.4" env_logger = "0.10" log = "0.4" parking_lot = "0.12" serialport = { version = "4.2", default-features = false } signal-hook = "0.3" [dependencies.ssp] version = "0.5" features = ["std"] [dependencies.serde_json] version = "1.0" features = ["std"] optional = true [dependencies.smol-jsonrpc] version = "0.2" features = ["std"] optional = true [dependencies.crossbeam] version = "0.8" [features] default = ["jsonrpc"] test-crypto = [] test-e2e = [] test-rainbow = [] jsonrpc = ["serde_json", "smol-jsonrpc", "ssp/jsonrpc"] mock = [] [lib] name = "ssp_server" path = "src/lib.rs" [[bin]] name = "auto_ssp_server" path = "src/bin/auto_server.rs" [[bin]] name = "jsonrpc_ssp_server" path = "src/bin/jsonrpc_server.rs" required-features = ["jsonrpc"]