Skip to content

Commit

Permalink
Release 0.1.0. (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
partim authored Mar 21, 2024
1 parent a9c522f commit b823da5
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [NLnetLabs]
custom: ['https://nlnetlabs.nl/funding/']
72 changes: 72 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: ci
on: [push, pull_request]
jobs:
test:
name: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [1.71, stable, beta]
steps:
- name: Checkout repository
uses: actions/checkout@v1
- name: Install Rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: ${{ matrix.rust }}

# Clippy.
#
# We run Clippy for stable and beta only, to minimize the possibility of a
# lint requiring something in the MSRV but the opposite thing in stable,
# or vice versa.
#
# For stable, error out on warnings.
- if: matrix.rust == 'stable'
run: |
rustup component add clippy
cargo clippy --all --all-features -- -D warnings -W clippy::cargo
- if: matrix.rust == 'beta'
run: rustup component add clippy

# For beta, turn warnings into GitHub annotations.
- if: matrix.rust == 'beta'
uses: mathiasvr/[email protected]
id: clippy_beta
with:
run: |
# We can warn on additional lints. cargo::nursery might make sense.
# XXX currently this only shows the first line of output. Also see
# https://github.com/actions/toolkit/issues/193
# Replacing '\n' with "%0A" might be a workaround.
cargo clippy --all --all-features -q --message-format short -- \
-W clippy::cargo # -W clippy::nursery
- if: ${{ steps.clippy_beta.outputs.stderr }}
env:
clippy_warnings: ${{ steps.clippy_beta.outputs.stderr }}
run: echo "::warning ::$clippy_warnings"


# Because of all the features, we run build and test twice -- once with
# full features and once without any features at all -- to make it more
# likely that everything works.

# Build
- run: cargo build --verbose --all --all-features
- run: cargo build --verbose --all

# Test
- run: cargo test --verbose --all --all-features
- run: cargo test --verbose --all

# Test using minimal dependency versions from Cargo.toml
- if: matrix.rust != 'beta'
run: |
rustup toolchain install nightly
cargo +nightly update -Z minimal-versions
cargo build --verbose --all --all-features
cargo test --verbose --all --all-features
name: Check and test with minimal-versions
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "inetnum"
version = "0.1.0-dev"
version = "0.1.0"
authors = ["NLnet Labs <[email protected]>"]
categories = ["network-programming"]
description = "Types for IP address prefixes and ASNs."
Expand All @@ -14,7 +14,7 @@ license = "BSD-3-Clause"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
arbitrary = { version = "1", optional = true, features = ["derive"] }
arbitrary = { version = "1.3", optional = true, features = ["derive"] }
serde = { version = "1.0.165", optional = true, features = ["derive"] }

[dev-dependencies]
Expand Down
8 changes: 8 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changelog

## 0.1.0

Released 2024-03-21.

Initial release.

0 comments on commit b823da5

Please sign in to comment.