# 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.76" name = "sunspec" version = "0.8.0" authors = ["Michael P. Jung "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "SunSpec 1.1 compliant library with tokio support" readme = "README.md" keywords = [ "sunspec", "models", "generated", ] license = "MIT OR Apache-2.0" repository = "https://github.com/bikeshedder/sunspec" [lib] name = "sunspec" path = "src/lib.rs" [[test]] name = "test_serde" path = "tests/test_serde.rs" [dependencies.bitflags] version = "2.6.0" [dependencies.serde] version = "1.0" features = ["derive"] optional = true [dependencies.strum] version = "0.26.0" features = ["derive"] [dependencies.thiserror] version = "2.0.6" [dependencies.tokio] version = "1.40.0" optional = true default-features = false [dependencies.tokio-modbus] version = "0.16" optional = true [dev-dependencies.serde_json] version = "1.0.114" [features] default = ["tokio-modbus"] serde = [ "dep:serde", "bitflags/serde", ] tokio-modbus = [ "dep:tokio-modbus", "tokio/time", ]