Skip to content

Commit 6396608

Browse files
authored
Prepare for 1.1.0 (#105)
1 parent b28e36a commit 6396608

File tree

13 files changed

+170
-78
lines changed

13 files changed

+170
-78
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ jobs:
139139
toolchain: stable
140140
override: true
141141
- name: Caching
142+
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
142143
uses: Swatinem/rust-cache@v2
143144
- name: Create the FFI modules dir
144145
run: mkdir ffi-modules\${{ matrix.target }}
@@ -184,6 +185,7 @@ jobs:
184185
toolchain: stable
185186
override: true
186187
- name: Caching
188+
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
187189
uses: Swatinem/rust-cache@v2
188190
- name: Create FFI modules dir
189191
run: mkdir -p ffi-modules/${{ matrix.target }}
@@ -234,6 +236,9 @@ jobs:
234236
toolchain: stable
235237
target: ${{ matrix.target }}
236238
override: true
239+
- name: Caching
240+
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
241+
uses: Swatinem/rust-cache@v2
237242
- name: Install Rust Cross
238243
run: cargo install cross
239244
- name: Create ffi-modules dir
@@ -282,6 +287,7 @@ jobs:
282287
toolchain: stable
283288
override: true
284289
- name: Caching
290+
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
285291
uses: Swatinem/rust-cache@v2
286292
- name: Checkout BOM tools repo
287293
uses: actions/checkout@v3
@@ -332,6 +338,10 @@ jobs:
332338
uses: actions/download-artifact@v3
333339
with:
334340
path: artifacts
341+
- name: Package C Bindings
342+
run: |
343+
mkdir release
344+
zip -r release/rodbus-${GITHUB_REF##*/}.zip artifacts/c-bindings
335345
- name: Checkout stepfunc/docs
336346
uses: actions/checkout@v3
337347
with:

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
### Next (1.0.0) ###
1+
### 1.1.0-rc1 ###
2+
* :star: Enable TCP_NODELAY for client and server sockets. See [#99](https://github.com/stepfunc/rodbus/pull/99).
3+
* :star: Enable full link-time optimization (LTO) in release builds. See [#103](https://github.com/stepfunc/rodbus/pull/103).
4+
* :star: Add support for 3 MUSL Linux targets to C/C++ and .NET. See [#104](https://github.com/stepfunc/rodbus/pull/104).
5+
* :star: Internal refactoring to promote code reuse with DNP3. See: [#100](https://github.com/stepfunc/rodbus/pull/100), [#101](https://github.com/stepfunc/rodbus/pull/101), [#102](https://github.com/stepfunc/rodbus/pull/102).
6+
7+
### 1.0.0 ###
28
* :star: Add Modbus Security (TLS) support. See [#52](https://github.com/stepfunc/rodbus/pull/52).
39
* :star: Add RTU support. See [#56](https://github.com/stepfunc/rodbus/pull/56).
410
* :star: Dynamic protocol decoding. See [#61](https://github.com/stepfunc/rodbus/pull/66).

Cargo.lock

Lines changed: 44 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ffi/bindings/c/CMakeLists.txt

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,32 @@ cmake_minimum_required(VERSION 3.12)
22

33
project(rodbus_c LANGUAGES C CXX)
44

5-
set(RODBUS_VERSION "1.0.0")
5+
set(RODBUS_BACKUP_VERSION "1.0.0")
66

77
# Determine the architecture
88
if(WIN32 AND CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|amd64|AMD64" AND CMAKE_SIZEOF_VOID_P EQUAL 8)
9-
set(RODBUS_ARCH "x86_64-pc-windows-msvc")
9+
set(RODBUS_RUST_TARGET "x86_64-pc-windows-msvc")
1010
elseif(UNIX AND CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64|amd64|AMD64")
11-
set(RODBUS_ARCH "x86_64-unknown-linux-gnu")
11+
set(RODBUS_RUST_TARGET "x86_64-unknown-linux-gnu")
1212
elseif(UNIX AND CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
13-
set(RODBUS_ARCH "aarch64-unknown-linux-gnu")
13+
set(RODBUS_RUST_TARGET "aarch64-unknown-linux-gnu")
1414
else()
1515
message(FATAL_ERROR "target architecture not supported by this CMake file")
1616
endif()
1717

1818
# Find the Rodbus package
19-
if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/generated/${RODBUS_ARCH})
19+
if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/generated)
20+
message("Rodbus package is local")
2021
# Use the locally built library
21-
find_package(rodbus REQUIRED HINTS ${CMAKE_CURRENT_LIST_DIR}/generated/${RODBUS_ARCH}/cmake)
22+
find_package(rodbus REQUIRED HINTS ${CMAKE_CURRENT_LIST_DIR}/generated/cmake)
2223
else()
24+
message("No local rodbus, fetching remote library version ${RODBUS_BACKUP_VERSION}")
25+
2326
# Download the library from GitHub
2427
include(FetchContent)
2528
FetchContent_Declare(
2629
rodbus
27-
URL https://github.com/stepfunc/rodbus/releases/download/${RODBUS_VERSION}/rodbus-${RODBUS_VERSION}-${RODBUS_ARCH}.zip
30+
URL https://github.com/stepfunc/rodbus/releases/download/${RODBUS_BACKUP_VERSION}/rodbus-${RODBUS_BACKUP_VERSION}.zip
2831
)
2932

3033
FetchContent_GetProperties(rodbus)

ffi/rodbus-bindings/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rodbus-bindings"
3-
version = "1.0.0"
3+
version = "1.1.0-rc1"
44
authors = ["Step Function I/O LLC <[email protected]>"]
55
edition = "2021"
66
license = "GPL-3.0-only"
@@ -11,7 +11,7 @@ repository = "https://github.com/stepfunc/rodbus"
1111
readme = "../README.md"
1212

1313
[dependencies]
14-
ci-script = { git = "https://github.com/stepfunc/oo_bindgen.git", tag = "0.5.0" }
14+
ci-script = { git = "https://github.com/stepfunc/oo_bindgen.git", tag = "0.5.1" }
1515
rodbus-schema = { path = "../rodbus-schema" }
1616
tracing = "^0.1"
1717
tracing-subscriber = "^0.3"

ffi/rodbus-ffi-java/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rodbus-ffi-java"
3-
version = "1.0.0"
3+
version = "1.1.0-rc1"
44
authors = ["Step Function I/O LLC <[email protected]>"]
55
edition = "2021"
66
build = "build.rs"
@@ -19,4 +19,4 @@ tls = ["rodbus-ffi/tls"]
1919

2020
[build-dependencies]
2121
rodbus-schema = { path = "../rodbus-schema" }
22-
java-oo-bindgen = { git = "https://github.com/stepfunc/oo_bindgen.git", tag = "0.5.0" }
22+
java-oo-bindgen = { git = "https://github.com/stepfunc/oo_bindgen.git", tag = "0.5.1" }

0 commit comments

Comments
 (0)