11 releases

✓ Uses Rust 2018 edition

0.4.0 Mar 13, 2020
0.3.5 Sep 17, 2019
0.3.4 May 21, 2019
0.2.3 Dec 3, 2018
0.0.0 Aug 21, 2017

#6 in Hardware support

Download history 150/week @ 2019-12-10 118/week @ 2019-12-17 58/week @ 2019-12-24 292/week @ 2019-12-31 176/week @ 2020-01-07 235/week @ 2020-01-14 121/week @ 2020-01-21 244/week @ 2020-01-28 163/week @ 2020-02-04 312/week @ 2020-02-11 300/week @ 2020-02-18 452/week @ 2020-02-25 362/week @ 2020-03-03 349/week @ 2020-03-10 112/week @ 2020-03-17 81/week @ 2020-03-24

1,030 downloads per month
Used in 2 crates

MIT/Apache and maybe MPL-2.0

130KB
3K SLoC

tokio-modbus

A tokio-based modbus library.

Crates.io version Docs Build Status Build status Coverage Status

Features

  • pure Rust library
  • async (non-blocking)
  • sync (blocking)
  • Modbus TCP
  • Modbus RTU
  • Client & Server
  • Open Source (MIT/Apache-2.0)

Installation

Add this to your Cargo.toml:

[dependencies]
tokio-modbus = "*"

If you like to use Modbus TCP only:

[dependencies]
tokio-modbus = { version = "*", default-features = false, features = ["tcp"] }

If you like to use Modbus RTU only:

[dependencies]
tokio-modbus = { version = "*", default-features = false, features = ["rtu"] }

If you like to build a TCP server:

[dependencies]
tokio-modbus = { version = "*", default-features = false, features = ["tcp", "server"] }

Examples

Various examples for Modbus RTU and TCP using either the asynchronous or synchronous API can be found in the examples folder.

Protocol-Specification

License

Copyright 2017 - 2020 slowtec GmbH

MIT/Apache-2.0

Dependencies

~3MB
~59K SLoC