From 92c15d32d12a21b2a908f36ec75f3f1a22a0bc3f Mon Sep 17 00:00:00 2001 From: carter Date: Tue, 10 Mar 2026 10:53:57 -0600 Subject: [PATCH 1/2] Setup CI, cause this repo doesn't have it --- .github/workflows/ci.yml | 60 ++++++++++++++++++++++++++++++++++++++++ Cargo.toml | 6 ++-- 2 files changed, 63 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..16b435f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,60 @@ +name: CI + +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +env: + CARGO_TERM_COLOR: always + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + - name: Run tests + run: cargo test --all-features + + clippy: + name: Clippy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + components: clippy + - uses: Swatinem/rust-cache@v2 + - name: Run clippy + run: cargo clippy --all-features -- -D warnings + + fmt: + name: Format + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt + - name: Check formatting + run: cargo fmt --all -- --check + + minimal-versions: + name: Minimal Versions + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@nightly + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + - name: Install cargo-hack + uses: taiki-e/install-action@cargo-hack + - name: Check minimal versions + run: | + cargo +nightly -Z minimal-versions update + cargo build --all-features + diff --git a/Cargo.toml b/Cargo.toml index 7ac51dd..43202c2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,14 +7,14 @@ keywords = ["ros", "rosmsg", "serde", "serialization"] license = "MIT" name = "roslibrust_serde_rosmsg" readme = "README.md" -repository = "https://github.com/adnanademovic/serde_rosmsg" +repository = "https://github.com/roslibrust/serde_rosmsg" version = "0.5.1" edition = "2021" [dependencies] byteorder = "1.5" -error-chain = "0.12" -serde = { version = "1.0", features = ["derive"] } +error-chain = "0.12.4" +serde = { version = "1.0.100", features = ["derive"] } [dev-dependencies] # Used as benchmarking framework From db9ea53f2b7794eae5cf51ccebd6bb833f239ca1 Mon Sep 17 00:00:00 2001 From: carter Date: Tue, 10 Mar 2026 10:56:53 -0600 Subject: [PATCH 2/2] Disable clippy checks for now --- .github/workflows/ci.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16b435f..b892d8d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,17 +20,18 @@ jobs: - name: Run tests run: cargo test --all-features - clippy: - name: Clippy - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: dtolnay/rust-toolchain@stable - with: - components: clippy - - uses: Swatinem/rust-cache@v2 - - name: Run clippy - run: cargo clippy --all-features -- -D warnings + # Would like to enable clippy, but lots of problems for now + # clippy: + # name: Clippy + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - uses: dtolnay/rust-toolchain@stable + # with: + # components: clippy + # - uses: Swatinem/rust-cache@v2 + # - name: Run clippy + # run: cargo clippy --all-features -- -D warnings fmt: name: Format