-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* simplify how the FfiChannel works * Use workspace-level lints and other inherited attributes * missing docs * fix lint
- Loading branch information
1 parent
432d048
commit 7453f72
Showing
17 changed files
with
217 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,24 @@ tokio = "1.37.0" | |
tracing = "0.1.40" | ||
tracing-subscriber = { version = "0.3.18" } | ||
|
||
[workspace.package] | ||
authors = ["Step Function I/O LLC <[email protected]>>"] | ||
rust-version = "1.75" | ||
edition = "2021" | ||
license-file = "LICENSE.txt" | ||
homepage = "https://stepfunc.io/products/libraries/modbus/" | ||
repository = "https://github.com/stepfunc/rodbus" | ||
keywords = ["dnp3", "ics", "scada", "security"] | ||
categories = ["network-programming"] | ||
|
||
[workspace.lints.rust] | ||
unsafe_code = "forbid" | ||
non_ascii_idents = "deny" | ||
unreachable_pub = "deny" | ||
trivial_casts = "deny" | ||
missing_docs = "deny" | ||
unused = "deny" | ||
missing_copy_implementations = "deny" | ||
|
||
[profile.release] | ||
lto=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
[package] | ||
name = "rodbus-bindings" | ||
version = "1.4.0-M1" | ||
authors = ["Step Function I/O LLC <[email protected]>"] | ||
edition = "2021" | ||
description = "oobindgen schema for Rodbus" | ||
keywords = ["ffi", "c", "modbus", "industrial", "plc"] | ||
categories = ["network-programming"] | ||
repository = "https://github.com/stepfunc/rodbus" | ||
description = "application to generate bindings for Rodbus" | ||
readme = "../README.md" | ||
|
||
# inherit from workspace | ||
authors.workspace = true | ||
rust-version.workspace = true | ||
edition.workspace = true | ||
license-file.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
keywords.workspace = true | ||
categories.workspace = true | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[dependencies] | ||
oo-bindgen = { workspace = true } | ||
rodbus-schema = { path = "../rodbus-schema" } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,14 +2,22 @@ | |
name = "rodbus-schema" | ||
# this is the version that all the FFI libraries get, since it's in their schema | ||
version = "1.4.0-M1" | ||
authors = ["Step Function I/O LLC <[email protected]>"] | ||
edition = "2021" | ||
description = "oobindgen schema for Rodbus" | ||
keywords = ["ffi", "c", "modbus", "industrial", "plc"] | ||
categories = ["network-programming"] | ||
repository = "https://github.com/stepfunc/rodbus" | ||
readme = "../README.md" | ||
|
||
# inherit from workspace | ||
authors.workspace = true | ||
rust-version.workspace = true | ||
edition.workspace = true | ||
license-file.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
keywords.workspace = true | ||
categories.workspace = true | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[dependencies] | ||
oo-bindgen = { workspace = true } | ||
sfio-tokio-ffi = { workspace = true } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,22 @@ | ||
[package] | ||
name = "rodbus-client" | ||
version = "1.4.0-M1" | ||
authors = ["Step Function I/O LLC <[email protected]>>"] | ||
edition = "2021" | ||
description = "A command line program for making Modbus client requests using the Rodbus crate" | ||
keywords = ["modbus", "ics", "industrial", "plc", "security"] | ||
categories = ["network-programming"] | ||
repository = "https://github.com/stepfunc/rodbus" | ||
readme = "README.md" | ||
|
||
# inherit from workspace | ||
authors.workspace = true | ||
rust-version.workspace = true | ||
edition.workspace = true | ||
license-file.workspace = true | ||
homepage.workspace = true | ||
repository.workspace = true | ||
keywords.workspace = true | ||
categories.workspace = true | ||
|
||
[lints] | ||
workspace = true | ||
|
||
[[bin]] | ||
name = "rodbus-client" | ||
path = "src/main.rs" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.