Cargo Features

[dependencies]
tokio-sunspec = { version = "0.2.2", default-features = false, features = ["tcp", "rtu"] }
default = rtu, tcp

These default features are set whenever tokio-sunspec is added without default-features = false somewhere in the dependency tree.

tcp default

Enables tokio-modbus ^0.7.1

Affects tokio-sunspec::connect_tcp

rtu default

Enables tokio-modbus ^0.7.1 and tokio-serial

Affects tokio-sunspec::connect_rtu

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.

tokio-modbus rtu tcp

Enables tokio-modbus ^0.7.1