Skip to content

Commit b657990

Browse files
authored
Prepare 1.1.0 (#109)
* bump version * bump dependency patch versions * remove const_err lint as it is now deprecated * Turn default() method into impl of Default trait. This won't break semver b/c Default is always in scope * update patch version of tokio-ffi
1 parent a6b5f39 commit b657990

File tree

11 files changed

+63
-61
lines changed

11 files changed

+63
-61
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### 1.1.0-rc2 ###
1+
### 1.1.0 ###
22
* :star: Enable TCP_NODELAY for client and server sockets. See [#99](https://github.com/stepfunc/rodbus/pull/99).
33
* :star: Enable full link-time optimization (LTO) in release builds. See [#103](https://github.com/stepfunc/rodbus/pull/103).
44
* :star: Add support for 3 MUSL Linux targets to C/C++ and .NET. See [#104](https://github.com/stepfunc/rodbus/pull/104).

Cargo.lock

+48-47
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ffi/rodbus-bindings/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rodbus-bindings"
3-
version = "1.1.0-rc2"
3+
version = "1.1.0"
44
authors = ["Step Function I/O LLC <[email protected]>"]
55
edition = "2021"
66
description = "oobindgen schema for Rodbus"

ffi/rodbus-ffi-java/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rodbus-ffi-java"
3-
version = "1.1.0-rc2"
3+
version = "1.1.0"
44
authors = ["Step Function I/O LLC <[email protected]>"]
55
edition = "2021"
66
build = "build.rs"

ffi/rodbus-ffi/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rodbus-ffi"
3-
version = "1.1.0-rc2"
3+
version = "1.1.0"
44
authors = ["Step Function I/O LLC <[email protected]>"]
55
edition = "2021"
66
description = "FFI for Rodbus"

ffi/rodbus-schema/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "rodbus-schema"
33
# this is the version that all the FFI libraries get, since it's in their schema
4-
version = "1.1.0-rc2"
4+
version = "1.1.0"
55
authors = ["Step Function I/O LLC <[email protected]>"]
66
edition = "2021"
77
description = "oobindgen schema for Rodbus"

guide/sitedata.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"version": "1.1.0-rc2",
2+
"version": "1.1.0",
33
"github_url": "https://github.com/stepfunc/rodbus"
44
}

rodbus-client/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rodbus-client"
3-
version = "1.1.0-rc2"
3+
version = "1.1.0"
44
authors = ["Step Function I/O LLC <[email protected]>>"]
55
edition = "2021"
66
description = "A command line program for making Modbus client requests using the Rodbus crate"

rodbus/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rodbus"
3-
version = "1.1.0-rc2"
3+
version = "1.1.0"
44
authors = ["Step Function I/O LLC <[email protected]>"]
55
edition = "2021"
66
description = "A high-performance async implementation of the Modbus protocol using tokio"

rodbus/src/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,6 @@
120120
patterns_in_fns_without_body,
121121
pub_use_of_private_extern_crate,
122122
unknown_crate_types,
123-
const_err,
124123
order_dependent_trait_objects,
125124
illegal_floating_point_literal_pattern,
126125
improper_ctypes,

rodbus/src/types.rs

+7-5
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,6 @@ impl UnitId {
347347
Self { value }
348348
}
349349

350-
/// Create the default UnitId of `0xFF`
351-
pub fn default() -> Self {
352-
Self { value: 0xFF }
353-
}
354-
355350
/// Broadcast address (only in RTU)
356351
pub fn broadcast() -> Self {
357352
Self { value: 0x00 }
@@ -365,6 +360,13 @@ impl UnitId {
365360
}
366361
}
367362

363+
/// Create the default UnitId of `0xFF`
364+
impl Default for UnitId {
365+
fn default() -> Self {
366+
Self { value: 0xFF }
367+
}
368+
}
369+
368370
#[cfg(test)]
369371
mod tests {
370372
use crate::error::*;

0 commit comments

Comments
 (0)