{"id":13436962,"url":"https://github.com/slowtec/tokio-modbus","last_synced_at":"2025-12-12T16:39:39.460Z","repository":{"id":37821191,"uuid":"107811090","full_name":"slowtec/tokio-modbus","owner":"slowtec","description":"A tokio-based modbus library","archived":false,"fork":false,"pushed_at":"2025-10-22T09:03:36.000Z","size":631,"stargazers_count":513,"open_issues_count":34,"forks_count":144,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-11-22T20:11:48.927Z","etag":null,"topics":["ascii","async","automation","client","fieldbus","library","modbus","non-blocking","rtu","rust","server","support","tcp","tokio"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slowtec.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSES/Apache-2.0.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-10-21T19:51:54.000Z","updated_at":"2025-11-20T12:33:52.000Z","dependencies_parsed_at":"2024-02-13T23:22:15.508Z","dependency_job_id":"26d0355a-d0ce-43d0-a3d4-1b59e6ab7118","html_url":"https://github.com/slowtec/tokio-modbus","commit_stats":{"total_commits":374,"total_committers":23,"mean_commits":16.26086956521739,"dds":0.4679144385026738,"last_synced_commit":"c23697eec287eeab699ebcd2d594bf7537f3c54c"},"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"purl":"pkg:github/slowtec/tokio-modbus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slowtec%2Ftokio-modbus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slowtec%2Ftokio-modbus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slowtec%2Ftokio-modbus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slowtec%2Ftokio-modbus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slowtec","download_url":"https://codeload.github.com/slowtec/tokio-modbus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slowtec%2Ftokio-modbus/sbom","scorecard":{"id":637465,"data":{"date":"2025-08-11","repo":{"name":"github.com/slowtec/tokio-modbus","commit":"a38f1f13e19fdb112a9fcb2e0411e4007a393fd1"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.4,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":4,"reason":"Found 14/29 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":4,"reason":"4 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: topLevel 'contents' permission set to 'read': .github/workflows/build-and-test.yaml:9","Info: topLevel 'contents' permission set to 'read': .github/workflows/check-crate-features.yaml:9","Info: topLevel 'contents' permission set to 'read': .github/workflows/dependency-audit.yaml:9","Info: topLevel 'contents' permission set to 'read': .github/workflows/pre-commit.yaml:9","Info: topLevel 'contents' permission set to 'read': .github/workflows/publish-release.yaml:9","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-and-test.yaml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/slowtec/tokio-modbus/build-and-test.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build-and-test.yaml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/slowtec/tokio-modbus/build-and-test.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/build-and-test.yaml:63: update your workflow using https://app.stepsecurity.io/secureworkflow/slowtec/tokio-modbus/build-and-test.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-crate-features.yaml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/slowtec/tokio-modbus/check-crate-features.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/check-crate-features.yaml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/slowtec/tokio-modbus/check-crate-features.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-crate-features.yaml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/slowtec/tokio-modbus/check-crate-features.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/dependency-audit.yaml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/slowtec/tokio-modbus/dependency-audit.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dependency-audit.yaml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/slowtec/tokio-modbus/dependency-audit.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-commit.yaml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/slowtec/tokio-modbus/pre-commit.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pre-commit.yaml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/slowtec/tokio-modbus/pre-commit.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pre-commit.yaml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/slowtec/tokio-modbus/pre-commit.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pre-commit.yaml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/slowtec/tokio-modbus/pre-commit.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pre-commit.yaml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/slowtec/tokio-modbus/pre-commit.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pre-commit.yaml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/slowtec/tokio-modbus/pre-commit.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/publish-release.yaml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/slowtec/tokio-modbus/publish-release.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/publish-release.yaml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/slowtec/tokio-modbus/publish-release.yaml/main?enable=pin","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of  10 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSES/Apache-2.0.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSES/Apache-2.0.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/publish-release.yaml:18"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 24 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-21T09:37:14.798Z","repository_id":37821191,"created_at":"2025-08-21T09:37:14.798Z","updated_at":"2025-08-21T09:37:14.798Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27686327,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ascii","async","automation","client","fieldbus","library","modbus","non-blocking","rtu","rust","server","support","tcp","tokio"],"created_at":"2024-07-31T03:00:53.366Z","updated_at":"2025-12-12T16:39:39.454Z","avatar_url":"https://github.com/slowtec.png","language":"Rust","funding_links":[],"categories":["Applications","应用","应用 Applications","应用程序 Applications"],"sub_categories":["Industrial automation","工业自动化","工业自动化 Industrial automation"],"readme":"\u003c!-- SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH \u003cpost@slowtec.de\u003e --\u003e\n\u003c!-- SPDX-License-Identifier: MIT OR Apache-2.0 --\u003e\n\n# tokio-modbus\n\nA pure [Rust](https://www.rust-lang.org)\n[Modbus](https://en.wikipedia.org/wiki/Modbus) library based on\n[tokio](https://tokio.rs).\n\n[![Crates.io](https://img.shields.io/crates/v/tokio-modbus.svg)](https://crates.io/crates/tokio-modbus)\n[![Docs.rs](https://docs.rs/tokio-modbus/badge.svg)](https://docs.rs/tokio-modbus/)\n[![Security audit](https://github.com/slowtec/tokio-modbus/actions/workflows/security-audit.yaml/badge.svg)](https://github.com/slowtec/tokio-modbus/actions/workflows/security-audit.yaml)\n[![Continuous integration](https://github.com/slowtec/tokio-modbus/actions/workflows/build-and-test.yaml/badge.svg)](https://github.com/slowtec/tokio-modbus/actions/workflows/build-and-test.yaml)\n[![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSES/MIT.txt)\n[![Apache 2.0 licensed](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](/LICENSES/Apache-2.0.txt)\n\nModbus is based on a\n[_master/slave_](\u003chttps://en.wikipedia.org/wiki/Master/slave_(technology)\u003e)\ncommunication pattern. To avoid confusion with the Tokio terminology the\n_master_ is called _client_ and the _slave_ is called _server_ in this library.\n\n## Features\n\n- Pure Rust library\n- Modbus TCP or RTU at your choice\n- Both `async` (non-blocking, default) and `sync` (blocking, optional)\n- Client API\n- Server implementations\n  - for _out-of-the-box_ usage or\n  - as a starting point for a customized implementation\n- Open source (MIT/Apache-2.0)\n\n## Installation\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\ntokio-modbus = \"*\"\n```\n\n### Cargo Features\n\n- `\"rtu\"`: Asynchronous RTU client (default)\n- `\"tcp\"`: Asynchronous TCP client (default)\n- `\"rtu-sync`: Synchronous RTU client\n- `\"tcp-sync\"`: Synchronous TCP client\n- `\"rtu-server\"`: (Asynchronous) RTU server\n- `\"tcp-server\"`: (Asynchronous) TCP server\n- `\"rtu-over-tcp-server\"`: (Asynchronous) RTU over TCP server\n\n#### Examples\n\nIf you only need an asynchronous TCP client add the following line to your\nCargo.toml file:\n\n```toml\n[dependencies]\ntokio-modbus = { version = \"*\", default-features = false, features = [\"tcp\"] }\n```\n\nFor an asynchronous RTU client:\n\n```toml\n[dependencies]\ntokio-modbus = { version = \"*\", default-features = false, features = [\"rtu\"] }\n```\n\nFor an RTU server:\n\n```toml\n[dependencies]\ntokio-modbus = { version = \"*\", default-features = false, features = [\"rtu-server\"] }\n```\n\nFor a TCP server:\n\n```toml\n[dependencies]\ntokio-modbus = { version = \"*\", default-features = false, features = [\"tcp-server\"] }\n```\n\n## Examples\n\nVarious examples for Modbus RTU and TCP using either the asynchronous or\nsynchronous API can be found in the\n[examples](https://github.com/slowtec/tokio-modbus/tree/main/examples) folder.\n\n## Testing\n\nThe workspace contains documentation, tests, and examples for all available\nfeatures.\n\n```sh\ncargo test --workspace\ncargo test --workspace --all-features\n```\n\n## Protocol-Specification\n\n- [Modbus Application Protocol Specification v1.1b3 (PDF)](http://modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf)\n- [Modbus over serial line specification and implementation guide v1.02 (PDF)](http://modbus.org/docs/Modbus_over_serial_line_V1_02.pdf)\n- [Modbus Messaging on TCP/IP Implementation Guide v1.0b (PDF)](http://modbus.org/docs/Modbus_Messaging_Implementation_Guide_V1_0b.pdf)\n\n## License\n\nCopyright (c) 2017-2024 [slowtec GmbH](https://www.slowtec.de)\n\n[MIT](LICENSES/MIT.txt)/[Apache-2.0](LICENSES/Apache-2.0.txt)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslowtec%2Ftokio-modbus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslowtec%2Ftokio-modbus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslowtec%2Ftokio-modbus/lists"}