# 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.0" name = "rsiot" version = "0.0.82" description = "Метакрейт, импортирующий все другие крейты через флаги feature" readme = "README.md" keywords = [ "iot", "scada", ] categories = [ "api-bindings", "gui", "network-programming", ] license = "MIT OR Apache-2.0" repository = "https://github.com/Konstantin-Dudersky/rsiot" [package.metadata.docs.rs] all-features = true cargo-args = [ "-Zunstable-options", "-Zrustdoc-scrape-examples", ] rustdoc-args = [ "--cfg", "docsrs", ] targets = [ "x86_64-unknown-linux-gnu", "wasm32-unknown-unknown", ] [profile.dev] opt-level = "z" debug = 2 [profile.release] opt-level = "s" [[example]] name = "cmp_derive" path = "examples/cmp_derive/cmp_derive.rs" [[example]] name = "cmp_external_fn_process" path = "examples/cmp_external_fn_process/cmp_external_fn_process.rs" [[example]] name = "cmp_esp" path = "examples/cmp_esp/cmp_esp.rs" doc-scrape-examples = true [[example]] name = "cmp_esp_i2c_master_ads1115" path = "./examples/cmp_esp/cmp_esp_i2c_master_ads1115.rs" [[example]] name = "cmp_esp_i2c_master_bmp180" path = "./examples/cmp_esp/cmp_esp_i2c_master_bmp180.rs" [[example]] name = "cmp_esp_i2c_master_ds3231" path = "./examples/cmp_esp/cmp_esp_i2c_master_ds3231.rs" [[example]] name = "cmp_esp_i2c_master_pca9555" path = "./examples/cmp_esp/cmp_esp_i2c_master_pca9555.rs" [[example]] name = "cmp_esp_i2c_master_pcf8575" path = "./examples/cmp_esp/cmp_esp_i2c_master_pcf8575.rs" [[example]] name = "cmp_esp_i2c_master_ssd1306" path = "./examples/cmp_esp/cmp_esp_i2c_master_ssd1306.rs" [[example]] name = "cmp_esp_nvs" path = "examples/cmp_esp_nvs/cmp_esp_nvs.rs" [[example]] name = "cmp_filesystem" path = "./examples/cmp_filesystem/cmp_filesystem.rs" [[example]] name = "cmp_http_client" path = "examples/cmp_http_client/cmp_http_client.rs" [[example]] name = "cmp_raspberry_i2c_master_ads1115" path = "./examples/cmp_raspberrypi/cmp_raspberry_i2c_master_ads1115.rs" [[example]] name = "cmp_raspberry_i2c_master_bmp180" path = "./examples/cmp_raspberrypi/cmp_raspberry_i2c_master_bmp180.rs" [[example]] name = "cmp_raspberry_i2c_master_pcf8575" path = "./examples/cmp_raspberrypi/cmp_raspberry_i2c_master_pcf8575.rs" [[example]] name = "cmp_http_server" path = "examples/cmp_http_server/cmp_http_server.rs" [[example]] name = "cmp_influxdb" path = "examples/cmp_influxdb/cmp_influxdb.rs" [[example]] name = "cmp_inject_periodic" path = "examples/cmp_inject_periodic/cmp_inject_periodic.rs" [[example]] name = "create_signal_from_msg" path = "examples/cmp_leptos/create_signal_from_msg.rs" [[example]] name = "cmp_plc" path = "examples/cmp_plc/cmp_plc/main.rs" [[example]] name = "cmp_redis_client_publication" path = "examples/cmp_redis_client/publication.rs" [[example]] name = "cmp_redis_client_subscription" path = "examples/cmp_redis_client/subscription.rs" [[example]] name = "cmp_system_info" path = "examples/cmp_system_info/cmp_system_info.rs" [[example]] name = "cmp_surrealdb" path = "examples/cmp_surrealdb/cmp_surrealdb.rs" [[example]] name = "cmp_telegram" path = "./examples/cmp_telegram/cmp_telegram.rs" [[example]] name = "cmp_timescaledb" path = "examples/cmp_timescaledb/cmp_timescaledb.rs" [[example]] name = "cmp_websocket_client" path = "examples/cmp_websocket_client/cmp_websocket_client.rs" [[example]] name = "cmp_websocket_client_wasm" path = "examples/cmp_websocket_client_wasm/cmp_websocket_client_wasm.rs" [[example]] name = "executor_multi_thread" path = "examples/executor/executor-multi-thread/main.rs" [[example]] name = "executor_single_thread" path = "examples/executor/executor-single-thread/main.rs" [[example]] name = "env_vars" path = "examples/env_vars/env_vars.rs" [[example]] name = "message_new_macro" path = "examples/message/message_new_macro.rs" [dependencies.anyhow] version = "1.0.80" [dependencies.async-trait] version = "0.1.77" optional = true [dependencies.axum] version = "0.7.4" optional = true [dependencies.bincode] version = "1.3.3" [dependencies.bitvec] version = "1.0.1" [dependencies.byteorder] version = "1.5.0" [dependencies.chrono] version = "0.4.35" features = ["serde"] [dependencies.clap] version = "^4.4.18" features = ["derive"] optional = true [dependencies.document-features] version = "0.2.8" [dependencies.dotenvy] version = "0.15.7" optional = true [dependencies.embedded-svc] version = "0.27.1" optional = true [dependencies.envy] version = "0.4.2" optional = true [dependencies.futures] version = "0.3.30" optional = true [dependencies.getrandom] version = "0.2" features = ["js"] [dependencies.heapless] version = "0.8.0" optional = true [dependencies.hmac] version = "0.12.1" optional = true [dependencies.http] version = "1.0.0" optional = true [dependencies.instant] version = "0.1.12" features = ["wasm-bindgen"] optional = true [dependencies.jwt] version = "0.16.0" optional = true [dependencies.leptos] version = "0.6.12" features = ["csr"] optional = true [dependencies.leptos_router] version = "0.6.12" features = ["csr"] optional = true [dependencies.log] version = "0.4.21" optional = true [dependencies.palette] version = "0.7.4" features = ["named"] optional = true [dependencies.postcard] version = "1.0.8" features = ["use-std"] optional = true [dependencies.redis] version = "0.25.0" features = ["tokio-comp"] optional = true [dependencies.reqwest] version = "0.12.0" features = ["json"] optional = true [dependencies.rppal] version = "0.17.1" optional = true [dependencies.rsiot-macros] version = "0.0.72" [dependencies.rumqttc] version = "0.24.0" optional = true [dependencies.serde] version = "1.0.197" features = ["derive"] [dependencies.serde_json] version = "1.0.113" optional = true [dependencies.sha2] version = "0.10.8" optional = true [dependencies.slint] version = "1.4.1" optional = true [dependencies.sqlx] version = "0.7.3" features = [ "chrono", "macros", "postgres", "runtime-tokio", ] optional = true [dependencies.surrealdb] version = "1.2.0" optional = true [dependencies.sysinfo] version = "0.30.7" optional = true [dependencies.teloxide] version = "0.12.2" features = ["macros"] optional = true [dependencies.thiserror] version = "1.0.57" [dependencies.tokio] version = "^1.37.0" features = [ "macros", "sync", "rt", "time", ] optional = true [dependencies.tokio-modbus] version = "0.11.0" features = ["tcp"] optional = true default-features = false [dependencies.tokio-tungstenite] version = "0.21.0" optional = true [dependencies.tokio-util] version = "0.7.10" optional = true [dependencies.toml] version = "0.8.9" optional = true [dependencies.tower-http] version = "0.5.1" features = [ "cors", "trace", ] optional = true [dependencies.tracing] version = "0.1.40" features = ["log"] [dependencies.tracing-subscriber] version = "0.3.18" features = [ "env-filter", "chrono", ] optional = true [dependencies.url] version = "2.5.0" optional = true [dependencies.uuid] version = "1.7.0" features = [ "serde", "v4", ] [dependencies.web-sys] version = "0.3.68" features = [ "Location", "Window", ] optional = true [dev-dependencies.serde_json] version = "1.0.114" [dev-dependencies.tracing-subscriber] version = "0.3.18" features = [ "env-filter", "chrono", ] [build-dependencies.cfg_aliases] version = "0.2.0" [build-dependencies.embuild] version = "0.31.3" features = ["espidf"] [features] cmp_auth = [ "executor", "dep:jwt", "dep:hmac", "dep:sha2", ] cmp_esp = [ "executor", "single-thread", "dep:embedded-svc", "dep:heapless", "dep:postcard", "tokio?/time", ] cmp_filesystem = [ "executor", "tokio?/fs", ] cmp_http_client = [ "executor", "dep:http", "dep:openssl", "dep:reqwest", "dep:url", ] cmp_http_client_wasm = [ "executor", "dep:http", "dep:instant", "dep:gloo", "dep:url", ] cmp_http_server = [ "executor", "dep:axum", "dep:tower-http", ] cmp_influxdb = [ "executor", "dep:openssl", "dep:reqwest", ] cmp_leptos = [ "executor", "dep:gloo", "dep:leptos", "dep:palette", "dep:url", "dep:web-sys", ] cmp_modbus_client = [ "executor", "dep:tokio-modbus", ] cmp_mqtt_client = [ "executor", "dep:rumqttc", ] cmp_plc = [ "executor", "dep:instant", "dep:gloo", ] cmp_raspberrypi = [ "executor", "dep:rppal", ] cmp_redis_client = [ "executor", "dep:futures", "dep:redis", "dep:url", ] cmp_slint = [ "executor", "dep:slint", ] cmp_surrealdb = [ "executor", "dep:surrealdb", ] cmp_system_info = [ "executor", "dep:sysinfo", ] cmp_telegram = [ "executor", "dep:teloxide", ] cmp_timescaledb = [ "executor", "dep:sqlx", "dep:url", ] cmp_websocket_client = [ "executor", "dep:futures", "dep:tokio-tungstenite", "dep:url", ] cmp_websocket_client_wasm = [ "executor", "dep:futures", "dep:gloo", "dep:url", ] cmp_websocket_server = [ "executor", "dep:futures", "dep:tokio-tungstenite", "dep:tokio-util", ] cmp_webstorage = [ "executor", "dep:gloo", ] default = ["serde-json"] env_vars = [ "dep:clap", "dep:dotenvy", "dep:envy", "dep:toml", "dep:url", ] executor = [ "dep:async-trait", "dep:futures", "dep:tokio", ] logging = [ "dep:log", "dep:openssl", "dep:tokio", "dep:tracing-loki", "dep:tracing-subscriber", "dep:tracing-web", "dep:url", ] serde-json = ["dep:serde_json"] single-thread = [] [target."cfg(all(target_arch = \"riscv32\", target_vendor = \"espressif\", target_os = \"espidf\"))".dependencies.embedded-svc] version = "0.27.1" optional = true [target."cfg(all(target_arch = \"riscv32\", target_vendor = \"espressif\", target_os = \"espidf\"))".dependencies.esp-idf-svc] version = "0.48.1" features = ["std"] [target."cfg(any(target_arch = \"x86_64\", target_arch = \"aarch64\"))".dependencies.tracing-loki] version = "0.2.4" optional = true [target."cfg(any(target_arch = \"x86_64\", target_arch = \"aarch64\"))".dev-dependencies.tokio] version = "^1.36.0" features = [ "macros", "sync", "rt", "time", "rt-multi-thread", ] [target."cfg(target_arch = \"aarch64\")".dependencies.openssl] version = "0.10" features = ["vendored"] optional = true [target."cfg(target_arch = \"wasm32\")".dependencies.gloo] version = "0.11.0" features = [ "dialogs", "futures", "net", "storage", "timers", "utils", ] optional = true [target."cfg(target_arch = \"wasm32\")".dependencies.tracing-web] version = "0.1.3" optional = true