diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..d7793d7 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +# Please see the documentation for all configuration options: +# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file + +version: 2 +updates: + - package-ecosystem: "cargo" + directory: "/" + schedule: + interval: "weekly" + + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..404a138 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,19 @@ +name: Publish to crates.io +on: + push: + tags: ['v*'] +jobs: + publish: + runs-on: ubuntu-latest + environment: release + permissions: + id-token: write # Required for OIDC token exchange + steps: + - uses: actions/checkout@v6 + with: + persist-credentials: false + - uses: rust-lang/crates-io-auth-action@b7e9a28eded4986ec6b1fa40eeee8f8f165559ec # v1.0.3 + id: auth + - run: cargo publish + env: + CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }} diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a0c603c..0b6152d 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [ "main" ] +permissions: + contents: read + env: CARGO_TERM_COLOR: always @@ -13,8 +16,10 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: sensorfu/setup-rust-action@85940738c5db112e81788a1903deb48f51a8f8c5 + - uses: actions/checkout@v6 + with: + persist-credentials: false + - uses: sensorfu/setup-rust-action@v1 with: components: rustfmt - run: cargo fmt --verbose --check @@ -22,8 +27,10 @@ jobs: clippy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: sensorfu/setup-rust-action@85940738c5db112e81788a1903deb48f51a8f8c5 + - uses: actions/checkout@v6 + with: + persist-credentials: false + - uses: sensorfu/setup-rust-action@v1 with: components: clippy - run: cargo clippy --verbose @@ -31,6 +38,8 @@ jobs: test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: sensorfu/setup-rust-action@85940738c5db112e81788a1903deb48f51a8f8c5 + - uses: actions/checkout@v6 + with: + persist-credentials: false + - uses: sensorfu/setup-rust-action@v1 - run: cargo test --verbose diff --git a/CHANGELOG.md b/CHANGELOG.md index 61de4eb..0293417 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.1.2] — 2026-02-09 + +### Added + +- Add support for 48, 64 and 128 bit integers ([#3](https://github.com/sensorfu/pktbuilder/pull/3)) + ## [0.1.1] — 2025-04-15 ### Added diff --git a/Cargo.toml b/Cargo.toml index 8268ab8..8649438 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "pktbuilder" -version = "0.1.1" +version = "0.1.2" authors = [ "Jukka Taimisto ", "Ossi Herrala " ] edition = "2021" license = "MIT" diff --git a/LICENSE b/LICENSE index 03ace72..8a78d26 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright 2025 SensorFu Ltd. +Copyright 2025–2026 SensorFu Ltd. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in