Skip to content

Commit 5b13d50

Browse files
committed
Merge remote-tracking branch 'origin/main' into bohdan/p2p-peerinfo
2 parents 351db0e + eb7fb2f commit 5b13d50

45 files changed

Lines changed: 95452 additions & 633 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-and-test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919
run: |
2020
sudo apt-get update
2121
sudo apt-get install -y protobuf-compiler
22+
- name: Install `oas3-gen`
23+
run: cargo install oas3-gen
2224
- name: Build
2325
run: cargo test --workspace --verbose --no-run
2426
- name: Run tests

.github/workflows/coverage-pr.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
sudo apt-get update
2525
sudo apt-get install -y protobuf-compiler
2626
27+
- name: Install `oas3-gen`
28+
run: cargo install oas3-gen
29+
2730
- run: cargo install cargo-llvm-cov
2831
- run: rustup component add llvm-tools-preview
2932
- run: cargo llvm-cov --workspace --lcov --output-path lcov.info --ignore-filename-regex '^examples/'
@@ -82,6 +85,10 @@ jobs:
8285
sudo apt-get update
8386
sudo apt-get install -y protobuf-compiler
8487
88+
- name: Install `oas3-gen`
89+
if: ${{ steps.base_art.outputs.found == 'false' }}
90+
run: cargo install oas3-gen
91+
8592
- name: Install cargo-llvm-cov (fallback path)
8693
if: ${{ steps.base_art.outputs.found == 'false' }}
8794
run: cargo install cargo-llvm-cov

.github/workflows/coverage.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
sudo apt-get update
2020
sudo apt-get install -y protobuf-compiler
2121
22+
- name: Install `oas3-gen`
23+
run: cargo install oas3-gen
24+
2225
- run: cargo install cargo-llvm-cov
2326
- run: rustup component add llvm-tools-preview
2427
- run: cargo llvm-cov --workspace --lcov --output-path lcov.info --ignore-filename-regex '^examples/'

.github/workflows/docs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
# TODO(template) remove docs publishing, when the crate is published to crates.io
1010
docs:
1111
permissions:
12-
contents: write
12+
contents: write
1313
name: Documentation
1414
runs-on: ubuntu-latest
1515
steps:
@@ -24,6 +24,9 @@ jobs:
2424
sudo apt-get update
2525
sudo apt-get install -y protobuf-compiler
2626
27+
- name: Install `oas3-gen`
28+
run: cargo install oas3-gen
29+
2730
- name: Setup pages
2831
id: pages
2932
uses: actions/configure-pages@v5
@@ -58,4 +61,4 @@ jobs:
5861
steps:
5962
- name: Deploy to GitHub Pages
6063
id: deployment
61-
uses: actions/deploy-pages@v4
64+
uses: actions/deploy-pages@v4

.github/workflows/linter.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
sudo apt-get update
2020
sudo apt-get install -y protobuf-compiler
2121
22+
- name: Install `oas3-gen`
23+
run: cargo install oas3-gen
24+
2225
- run: rustup +nightly component add rustfmt
2326
- name: Run Fmt
2427
run: cargo +nightly fmt --all -- --check

.github/workflows/semver-checks.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,15 @@ jobs:
2525
with:
2626
# cargo-semver-checks needs the full git history to compare versions
2727
fetch-depth: 0
28-
28+
2929
- name: Install protobuf compiler
3030
run: |
3131
sudo apt-get update
3232
sudo apt-get install -y protobuf-compiler
33-
33+
34+
- name: Install `oas3-gen`
35+
run: cargo install oas3-gen
36+
3437
- name: Cache cargo registry
3538
uses: actions/cache@v4
3639
with:
@@ -41,7 +44,7 @@ jobs:
4144
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
4245
restore-keys: |
4346
${{ runner.os }}-cargo-
44-
47+
4548
- name: Get latest version tag
4649
id: get-baseline
4750
run: |
@@ -54,7 +57,7 @@ jobs:
5457
else
5558
# Extract version without 'v' prefix for comparison
5659
version=${latest_tag#v}
57-
60+
5861
# Check if version is >= 0.1.0 (using semver comparison)
5962
if printf '%s\n%s\n' "0.1.0" "$version" | sort -V | head -n1 | grep -q "^0\.1\.0$"; then
6063
echo "Found suitable baseline tag: $latest_tag (>= v0.1.0)"
@@ -66,14 +69,14 @@ jobs:
6669
echo "skip=true" >> $GITHUB_OUTPUT
6770
fi
6871
fi
69-
72+
7073
- name: Check semver compatibility
7174
if: steps.get-baseline.outputs.skip == 'false'
7275
uses: obi1kenobi/cargo-semver-checks-action@v2
7376
with:
7477
baseline-rev: ${{ steps.get-baseline.outputs.baseline_rev }}
7578
verbose: true
76-
79+
7780
- name: Semver check skipped
7881
if: steps.get-baseline.outputs.skip == 'true'
7982
run: |
@@ -84,4 +87,4 @@ jobs:
8487
echo "3. Future changes will be checked against tagged versions"
8588
echo ""
8689
echo "Note: Semver checking starts from v0.1.0 as this indicates"
87-
echo "the beginning of API stability commitments in Rust projects"
90+
echo "the beginning of API stability commitments in Rust projects"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ target/
1717

1818
# Code coverage output
1919
lcov.info
20+
21+
.charon*

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ git config commit.gpgsign true
1313
* [Rust](https://www.rust-lang.org/tools/install)
1414
* [Protobuf](https://protobuf.dev/installation/)
1515
* [cargo deny](https://github.com/EmbarkStudios/cargo-deny)
16+
* [oas3-gen](https://github.com/eklipse2k8/oas3-gen)
1617

1718
## Code quality assurance
1819

0 commit comments

Comments
 (0)