[package] name = "d3xs-protocol" version = "0.1.0" description = "Physical access control (protocol)" authors = ["kpcyrd "] license = "GPL-3.0-or-later" repository = "https://github.com/kpcyrd/d3xs" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [lib] crate-type = ["cdylib", "rlib"] [features] ipc = ["serde"] [dependencies] crypto_box = { version = "0.9.1", default-features = false, features = ["salsa20"] } data-encoding = "2.4.0" serde = { version = "1.0.192", features = ["derive"], optional = true } sha3 = { version = "0.10.8", default-features = false } thiserror-no-std = "2.0.2" [target.'cfg(not(target_os = "espidf"))'.dependencies] getrandom = "0.2" [target.'cfg(target_arch = "wasm32")'.dependencies] getrandom = { version = "0.2", features = ["js"] } wasm-bindgen = "0.2" web-sys = { version = "0.3.65", default-features = false, features = ["Location", "Document", "Window", "Element", "HtmlElement", "HtmlInputElement"] }