To build the serial_monitor.dll for use in llcom, you can use the provided PowerShell script or perform a manual build. The project requires the Rust toolchain (stable ≥ 1.75 or nightly) and the x86_64-pc-windows-msvc target.
Prerequisites
- Rust toolchain (stable ≥ 1.75 or nightly)
- MSVC target:
rustup target add x86_64-pc-windows-msvc - Visual Studio Build Tools (MSVC linker)
Option 1: Build and copy to llcom (Recommended)
Run the build script to compile the DLL and automatically copy it to the llcom/costura64/ directory.
cd serial_monitor_rs
.\build.ps1
Option 2: Manual build
If building manually, you must build the serial_monitor_hook crate first, as the serial_monitor crate embeds the hook DLL during its build process.
cd serial_monitor_rs
# 1. Build the Hook DLL
cargo build --release -p serial_monitor_hook --target x86_64-pc-windows-msvc
# 2. Build the main DLL
cargo build --release -p serial_monitor --target x86_64-pc-windows-msvc
Output location: target/x86_64-pc-windows-msvc/release/serial_monitor.dll
.
cd serial_monitor_rs
.\build.ps1