Skip to content

Commit ce5fed0

Browse files
authored
Update copyright headers to year 2025 (#318)
1 parent 42b5928 commit ce5fed0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+126
-57
lines changed

.codespellignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
# SPDX-License-Identifier: CC0-1.0
33

44
crate

.commitlintrc.json.license

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
SPDX-License-Identifier: CC0-1.0

.deny.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
# SPDX-License-Identifier: CC0-1.0
33

44
[graph]

.github/dependabot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
# SPDX-License-Identifier: CC0-1.0
33

44
version: 2

.github/workflows/build-and-test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
# SPDX-License-Identifier: CC0-1.0
33

44
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

.github/workflows/check-crate-features.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
# SPDX-License-Identifier: CC0-1.0
33

44
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

.github/workflows/dependency-audit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
# SPDX-License-Identifier: CC0-1.0
33

44
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

.github/workflows/pre-commit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
# SPDX-License-Identifier: CC0-1.0
33

44
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

.github/workflows/publish-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
# SPDX-License-Identifier: CC0-1.0
33

44
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
# SPDX-License-Identifier: CC0-1.0
33

44
# Don't add any custom patterns for platform-specific files like .DS_Store

.markdownlint-cli2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
# SPDX-License-Identifier: CC0-1.0
33

44
# Disable some built-in rules

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
# SPDX-License-Identifier: CC0-1.0
33

44
default_stages:

.prettierrc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
# SPDX-License-Identifier: CC0-1.0
33

44
overrides:

.rustfmt.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
# SPDX-License-Identifier: CC0-1.0
33

44
# Only add deviations from the default settings!

.taplo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
# SPDX-License-Identifier: CC0-1.0
33

44
[formatting]

CHANGELOG.md

Lines changed: 1 addition & 1 deletion

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
# SPDX-License-Identifier: MIT OR Apache-2.0
33

44
[package]

LICENSES/MIT.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
3+
Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 1 addition & 1 deletion

examples/rtu-client-sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! Synchronous RTU client example

examples/rtu-client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! Asynchronous RTU client example

examples/rtu-server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! RTU server example

examples/tcp-client-custom-fn.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! Custom function client example

examples/tcp-client-sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! Synchronous TCP client example

examples/tcp-client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! Asynchronous TCP client example

examples/tcp-server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! # TCP server example

examples/tls-client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
// load_certs() and particially load_keys() functions were copied from an example of the tokio tls library, available at:

examples/tls-server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
// load_certs() and particially load_keys() functions were copied from an example of the tokio tls library, available at:

run_cargo-tests.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
3+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
4+
# SPDX-License-Identifier: CC0-1.0
5+
6+
set -euo pipefail
7+
8+
# Change into directory where this shell script is located
9+
SCRIPT_ROOT=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
10+
cd "${SCRIPT_ROOT}"
11+
12+
cargo test --no-default-features
13+
cargo test --no-default-features --all-targets --features rtu
14+
cargo test --no-default-features --all-targets --features tcp
15+
cargo test --no-default-features --all-targets --features rtu-sync
16+
cargo test --no-default-features --all-targets --features tcp-sync
17+
cargo test --no-default-features --all-targets --features rtu-server
18+
cargo test --no-default-features --all-targets --features tcp-server
19+
cargo test --no-default-features --all-targets --features rtu-over-tcp-server
20+
cargo test --all-features --all-targets

run_cargo-udeps.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/usr/bin/env bash
2+
3+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
4+
# SPDX-License-Identifier: CC0-1.0
5+
6+
set -euo pipefail
7+
8+
# Change into directory where this shell script is located
9+
SCRIPT_ROOT=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
10+
cd "${SCRIPT_ROOT}"
11+
12+
NIGHTLY_TOOLCHAIN=nightly
13+
14+
cargo +${NIGHTLY_TOOLCHAIN} udeps --all-targets --backend depinfo

run_pre-commit.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env bash
2+
3+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
4+
# SPDX-License-Identifier: CC0-1.0
5+
6+
set -euo pipefail
7+
8+
# Change into directory where this shell script is located
9+
SCRIPT_ROOT=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
10+
cd "${SCRIPT_ROOT}"
11+
12+
#pip install -U pre-commit
13+
#pre-commit autoupdate
14+
15+
reset
16+
17+
pre-commit run --all-files

run_socat.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env bash
2+
3+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
4+
# SPDX-License-Identifier: CC0-1.0
5+
6+
set -euo pipefail
7+
8+
# Change into directory where this shell script is located
9+
SCRIPT_ROOT=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
10+
cd "${SCRIPT_ROOT}"
11+
12+
#pip install -U pre-commit
13+
#pre-commit autoupdate
14+
15+
reset
16+
17+
# https://github.com/slowtec/tokio-modbus/issues/185#issuecomment-1830646138
18+
socat -d -d pty,raw,echo=0 pty,raw,echo=0

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
# SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
# SPDX-License-Identifier: CC0-1.0
33

44
[toolchain]

src/client/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! Modbus clients

src/client/rtu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! RTU client connections

src/client/sync/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! Synchronous Modbus client

src/client/sync/rtu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
use std::{io, time::Duration};

src/client/sync/tcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! TCP client connections

src/client/tcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! TCP client connections

src/codec/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
use std::{

src/codec/rtu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
use std::io::{Cursor, Error, ErrorKind, Result};

src/codec/tcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
use std::io::{Error, ErrorKind, Result};

src/error.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! Error types.

src/frame/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
#[cfg(feature = "rtu")]

src/frame/rtu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
use super::*;

src/frame/tcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
use super::*;

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
#![doc = include_str!("../README.md")]

src/prelude.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! Common types and traits

src/server/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! Modbus server skeletons

src/server/rtu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! Modbus RTU server skeleton

src/server/service.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
use std::{future::Future, ops::Deref};

src/server/tcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! Modbus TCP server skeleton

src/service/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
#[cfg(feature = "rtu")]

src/service/rtu.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
use std::{fmt, io};

src/service/tcp.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
use std::{fmt, io};

src/slave.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! Modbus devices

tests/exception/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
use std::future;

tests/rtu_all_exceptions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// SPDX-FileCopyrightText: Copyright (c) 2017-2024 slowtec GmbH <[email protected]>
1+
// SPDX-FileCopyrightText: Copyright (c) 2017-2025 slowtec GmbH <[email protected]>
22
// SPDX-License-Identifier: MIT OR Apache-2.0
33

44
//! Execute this test only if `rtu-server` feature is selected.

0 commit comments

Comments
 (0)