- Install rustup.
- Install
GTK 3dev packages:- macOS:
$ brew install gtk+3 $ brew install gnome-icon-theme - Debian / Ubuntu:
$ sudo apt install libgtk-3-dev build-essential - Windows:
- Install MSYS2.
- Install dev packages from
MSYS2shell:$ pacman -S --needed base-devel mingw-w64-x86_64-toolchain $ pacman -S mingw-w64-x86_64-gtk3 - Edit environment variable:
- add
C:\msys64\mingw64\bintoPath. - add
C:\msys64\mingw64\libtoGTK_LIB_DIR.
- add
- Add toolchain target, open a
PowerShell, and run:PS C:\> rustup target add x86_64-pc-windows-gnu - Change toolchain target:
PS C:\> rustup default stable-x86_64-pc-windows-gnu - Check default toolchain target:
PS C:\> rustup show ... stable-x86_64-pc-windows-gnu (default) stable-x86_64-pc-windows-msvc ...
- macOS:
- On Linux, also need to install
pkg-configandlibudev:$ sudo apt install pkg-config $ sudo apt install libudev-dev - Clone this repo, and
cdto repo directory. - Build app:
$ cargo build --release - Run app:
- On Windows, open
target\releasedirectory, double clickserial-tool.exe. - On Linux or macOS, run
./target/release/serial-toolfromTerminal.
- On Windows, open
MIT License
