Skip to content

Commit e8a0f3c

Browse files
committed
update cargo deps. bump to 2.6.0
1 parent 0fd203e commit e8a0f3c

4 files changed

Lines changed: 10 additions & 13 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ jobs:
2525
- name: Rust Cache
2626
uses: Swatinem/rust-cache@v2
2727

28-
# DLLs für 32-Bit (x86) bauen
28+
# DLLs for 32-Bit (x86)
2929
- name: Build DLLs
3030
run: |
3131
cargo build --release --target i686-pc-windows-msvc
3232
cargo build --release --target i686-pc-windows-msvc --example omsilogger
3333
34-
# Paketstruktur vorbereiten (Inklusive .opl Dateien)
3534
- name: Prepare Package Folder
3635
run: |
3736
mkdir release_pkg
@@ -42,12 +41,10 @@ jobs:
4241
cp omsi2komsi.opl release_pkg/
4342
cp omsilogger.opl release_pkg/
4443
45-
# ZIP erstellen
4644
- name: Create ZIP Archive
4745
run: |
4846
Compress-Archive -Path release_pkg/* -DestinationPath "omsi_2_komsi_${{ github.ref_name }}_x86.zip"
4947
50-
# Release erstellen
5148
- name: Create Release
5249
uses: softprops/action-gh-release@v2
5350
with:

Cargo.lock

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

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[package]
22
name = "omsi_2_komsi"
3-
version = "2.5.0"
3+
version = "2.6.0"
44
edition = "2024"
5-
rust-version = "1.92"
5+
rust-version = "1.93.1"
66
authors = ["ThatZok <af@komplix.de>"]
77
license = "GPL-3.0-or-later"
88

@@ -24,7 +24,7 @@ serialport = "4.8"
2424
configparser = "3.1"
2525
chrono = "0.4"
2626
atomic_float = "1.1"
27-
komsi="1.2"
27+
komsi="1.5"
2828

2929
[dependencies.windows]
3030
version = "0.*"

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use std::time::Duration;
1313

1414
use atomic_float::AtomicF32;
1515

16-
use komsi::komsi::{build_komsi_command, build_komsi_command_eol, KomsiCommand};
16+
use komsi::komsi::{KomsiCommand};
1717
use komsi::vehicle::{VehicleLogger, VehicleState};
1818

1919
#[allow(non_camel_case_types)]
@@ -693,8 +693,8 @@ pub unsafe extern "stdcall" fn PluginStart(aOwner: uintptr_t) {
693693
// send SimulatorType:OMSI
694694
let mut init_buf = Vec::new();
695695
let simulator_type = KomsiCommand::SimulatorType(0);
696-
init_buf.extend_from_slice(&build_komsi_command(simulator_type));
697-
init_buf.extend_from_slice(&build_komsi_command_eol());
696+
init_buf.extend_from_slice(&KomsiCommand::build(&simulator_type));
697+
init_buf.extend_from_slice(&KomsiCommand::build_eol());
698698
if let Err(e) = p.write_all(&init_buf) {
699699
log_message(format!("Failed to send init string to {}: {}", portname_item, e));
700700
}

0 commit comments

Comments
 (0)