Skip to content

riddleling/serial-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A simple GUI serial port tool.

Screenshot

Compile & Run

  1. Install rustup.
  2. Install GTK 3 dev packages:
    • macOS:
      $ brew install gtk+3
      $ brew install gnome-icon-theme
      
    • Debian / Ubuntu:
      $ sudo apt install libgtk-3-dev build-essential
      
    • Windows:
      1. Install MSYS2.
      2. Install dev packages from MSYS2 shell:
        $ pacman -S --needed base-devel mingw-w64-x86_64-toolchain
        $ pacman -S mingw-w64-x86_64-gtk3
        
      3. Edit environment variable:
        • add C:\msys64\mingw64\bin to Path.
        • add C:\msys64\mingw64\lib to GTK_LIB_DIR.
      4. Add toolchain target, open a PowerShell, and run:
        PS C:\> rustup target add x86_64-pc-windows-gnu
        
      5. Change toolchain target:
        PS C:\> rustup default stable-x86_64-pc-windows-gnu
        
      6. Check default toolchain target:
        PS C:\> rustup show
        ...
        stable-x86_64-pc-windows-gnu (default)
        stable-x86_64-pc-windows-msvc 
        ...
        
  3. On Linux, also need to install pkg-config and libudev:
    $ sudo apt install pkg-config
    $ sudo apt install libudev-dev
    
  4. Clone this repo, and cd to repo directory.
  5. Build app:
    $ cargo build --release
    
  6. Run app:
    • On Windows, open target\release directory, double click serial-tool.exe.
    • On Linux or macOS, run ./target/release/serial-tool from Terminal.

License

MIT License

Releases

No releases published

Packages

No packages published