Skip to content

Commit

Permalink
feat: add serial-monitor-rust (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
hacknus authored Jan 8, 2025
1 parent bc707b5 commit c86d8c9
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions recipes/serial-monitor-rust/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
context:
version: "0.3.3"

package:
name: serial-monitor-rust
version: ${{ version }}

source:
- url: https://github.com/hacknus/serial-monitor-rust/archive/refs/tags/v${{ version }}.tar.gz
sha256: 46f8a22100c504e9d7e5231a8e67cb7c1972e7105f61403475d98f3b9ec85abc

build:
number: 0
script:
# display the rust version
- rustc --version
- cargo --version
- if: osx
then:
- export MACOSX_DEPLOYMENT_TARGET=10.15 # minimum os version
# build and install serial-monitor-rust
- cargo-bundle-licenses --format yaml --output ${SRC_DIR}/THIRDPARTY.yml
- cargo install --locked --bins --root ${PREFIX} --path .

requirements:
build:
- if: win
then:
# at least rust 1.82 is required for serial-monitor-rust
- rust=1.82 # required on windows explicitly, on macOS and linux the latest version is already installed

host:
- cargo-bundle-licenses
- pkg-config
- if: linux
then:
- ${{ compiler('rust') }}
- ${{ compiler('c') }}
- ${{ compiler('cxx') }}
# on linux, egui requires additional dependencies
- conda-forge::libclang
- conda-forge::gtk3
- conda-forge::libxcb
- conda-forge::libxkbcommon
- conda-forge::openssl
- conda-forge::libudev

run:
- if: linux
then:
# on linux, egui requires additional dependencies
- conda-forge::libclang
- conda-forge::gtk3
- conda-forge::libxcb
- conda-forge::libxkbcommon
- conda-forge::openssl
- conda-forge::libudev

about:
repository: https://github.com/hacknus/serial-monitor-rust
license: GPL-3.0
summary: A cross-platform serial monitor/plotter written entirely in rust.
extra:
recipe-maintainers:
- hacknus

0 comments on commit c86d8c9

Please sign in to comment.