Skip to content

Commit 38ae6db

Browse files
committed
Project reload
1 parent 80687ef commit 38ae6db

81 files changed

Lines changed: 3831 additions & 8729 deletions

Some content is hidden

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

.dockerignore

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# These are supported funding model platforms
22

3-
github: [dr-orlovsky]
3+
github: [ LNP-BP, indcs-org, dr-orlovsky ]

.github/workflows/build.yml

Lines changed: 35 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ name: Build
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches:
6+
- master
7+
tags:
8+
- 'v[0-9]+.*'
69
pull_request:
7-
branches: [ master ]
10+
branches:
11+
- master
12+
- develop
13+
- 'v[0-9]+.?*'
814

915
env:
1016
CARGO_TERM_COLOR: always
@@ -13,70 +19,49 @@ jobs:
1319
default:
1420
runs-on: ubuntu-latest
1521
steps:
16-
- uses: actions/checkout@v2
17-
- name: Install rust stable
18-
uses: actions-rs/toolchain@v1
19-
with:
20-
toolchain: stable
21-
override: true
22-
- name: Default build
23-
uses: actions-rs/cargo@v1
24-
with:
25-
command: check
26-
args: --workspace
22+
- uses: actions/checkout@v4
23+
- uses: dtolnay/rust-toolchain@stable
24+
- run: cargo check --workspace
25+
no-default:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: dtolnay/rust-toolchain@stable
30+
- run: cargo check --workspace --no-default-features
2731
features:
2832
runs-on: ubuntu-latest
2933
strategy:
3034
fail-fast: false
3135
matrix:
32-
feature:
33-
- server
34-
- embedded
36+
feature: [ server, cli, log, serde ]
3537
steps:
36-
- uses: actions/checkout@v2
37-
- name: Install rust stable
38-
uses: actions-rs/toolchain@v1
39-
with:
40-
toolchain: stable
41-
override: true
42-
- name: Feature ${{ matrix.feature }}
43-
uses: actions-rs/cargo@v1
44-
with:
45-
command: check
46-
args: --no-default-features --features=${{ matrix.feature }}
38+
- uses: actions/checkout@v4
39+
- uses: dtolnay/rust-toolchain@stable
40+
- name: Feature ${{matrix.feature}}
41+
run: cargo check --workspace --no-default-features --features=${{matrix.feature}}
42+
- name: Feature ${{matrix.feature}}
43+
run: cargo check --workspace --features=${{matrix.feature}}
4744
platforms:
4845
runs-on: ${{ matrix.os }}
4946
strategy:
5047
fail-fast: false
5148
matrix:
52-
os: [ ubuntu-20.04, ubuntu-22.04, macos-11, macos-12, windows-2019, windows-2022 ]
49+
os: [ ubuntu-22.04, ubuntu-latest, macos-13, macos-latest ]
5350
steps:
54-
- uses: actions/checkout@v2
55-
- name: Install rust stable
56-
uses: actions-rs/toolchain@v1
57-
with:
58-
toolchain: stable
59-
override: true
60-
- name: Build with all features
61-
uses: actions-rs/cargo@v1
62-
with:
63-
command: check
64-
args: --workspace --all-targets --all-features
51+
- uses: actions/checkout@v4
52+
- uses: dtolnay/rust-toolchain@stable
53+
- name: Platform ${{matrix.os}}
54+
run: cargo check --workspace --all-features # we skip test targets here to be sure that the main library can be built
6555
toolchains:
6656
runs-on: ubuntu-latest
6757
strategy:
6858
fail-fast: false
6959
matrix:
70-
toolchain: [ nightly, beta, stable, 1.59.0 ]
60+
toolchain: [ nightly, beta, stable, 1.85.0 ]
7161
steps:
72-
- uses: actions/checkout@v2
73-
- name: Install rust ${{ matrix.toolchain }}
74-
uses: actions-rs/toolchain@v1
75-
with:
76-
toolchain: ${{ matrix.toolchain }}
77-
override: true
78-
- name: All features
79-
uses: actions-rs/cargo@v1
62+
- uses: actions/checkout@v4
63+
- uses: dtolnay/rust-toolchain@master
8064
with:
81-
command: check
82-
args: --workspace --all-targets --all-features
65+
toolchain: ${{matrix.toolchain}}
66+
- name: Toolchain ${{matrix.toolchain}}
67+
run: cargo +${{matrix.toolchain}} check --workspace --all-targets --all-features

.github/workflows/codecov.yml

Lines changed: 25 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@ name: Codecov
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches:
6+
- master
7+
tags:
8+
- 'v[0-9]+.*'
69
pull_request:
7-
branches: [ master ]
10+
branches:
11+
- master
12+
- develop
13+
- 'v[0-9]+.?*'
814

915
env:
1016
CARGO_TERM_COLOR: always
@@ -13,34 +19,22 @@ jobs:
1319
codecov:
1420
runs-on: ubuntu-latest
1521
steps:
16-
- uses: actions/checkout@v2
17-
- name: Install latest nightly
18-
uses: actions-rs/toolchain@v1
22+
- uses: actions/checkout@v4
23+
- uses: dtolnay/rust-toolchain@nightly
1924
with:
20-
toolchain: nightly
21-
override: true
22-
- name: Build & test
23-
uses: actions-rs/cargo@v1
25+
components: llvm-tools-preview
26+
- uses: taiki-e/install-action@cargo-llvm-cov
27+
- uses: taiki-e/install-action@nextest
28+
- name: Collect coverage data (including doctests)
29+
run: |
30+
cargo +nightly llvm-cov --no-report nextest --workspace --all-features
31+
cargo +nightly llvm-cov --no-report --doc --workspace --all-features
32+
cargo +nightly llvm-cov report --doctests --lcov --output-path lcov.info
33+
- name: Upload coverage data to codecov
34+
uses: codecov/codecov-action@v4
2435
with:
25-
command: test
26-
args: --workspace --all-features --no-fail-fast
27-
env:
28-
CARGO_INCREMENTAL: '0'
29-
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off'
30-
RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off'
31-
- id: coverage
32-
name: Generate coverage
33-
uses: actions-rs/grcov@0.2-proto
34-
with:
35-
args: >
36-
-t lcov
37-
--llvm
38-
--ignore-not-existing
39-
--ignore "/*"
40-
-o ./target/lcov.info
41-
./target/debug/
42-
- name: Upload coverage to Codecov
43-
uses: codecov/codecov-action@v1
44-
with:
45-
file: ${{ steps.coverage.outputs.report }}
46-
directory: ./coverage/reports/
36+
flags: rust
37+
files: lcov.info
38+
fail_ci_if_error: true
39+
token: ${{ secrets.CODECOV_TOKEN }}
40+
verbose: true

.github/workflows/docker-image.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 21 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
name: Lints
22

33
on:
4-
push:
5-
branches: [ master ]
64
pull_request:
7-
branches: [ master ]
5+
branches:
6+
- master
7+
- develop
8+
- 'v[0-9]+.?*'
89

910
env:
1011
CARGO_TERM_COLOR: always
@@ -13,45 +14,32 @@ jobs:
1314
fmt:
1415
runs-on: ubuntu-latest
1516
steps:
16-
- uses: actions/checkout@v2
17-
- name: Install rustc nightly
18-
uses: actions-rs/toolchain@v1
17+
- uses: actions/checkout@v4
18+
- uses: dtolnay/rust-toolchain@nightly
1919
with:
20-
toolchain: nightly
21-
override: true
2220
components: rustfmt
23-
- uses: actions-rs/cargo@v1
24-
name: Formatting
25-
with:
26-
command: fmt
27-
args: --all -- --check
21+
- name: Formatting
22+
run: cargo +nightly fmt --all -- --check
2823
clippy:
2924
runs-on: ubuntu-latest
3025
steps:
31-
- uses: actions/checkout@v2
32-
- name: Install rustc stable
33-
uses: actions-rs/toolchain@v1
26+
- uses: actions/checkout@v4
27+
- uses: dtolnay/rust-toolchain@stable
3428
with:
35-
toolchain: stable
36-
override: true
3729
components: clippy
38-
- uses: actions-rs/cargo@v1
39-
name: Clippy
40-
with:
41-
command: clippy
42-
args: --workspace --all-features
30+
- name: Formatting
31+
run: cargo clippy --workspace --all-features --all-targets -- -D warnings
4332
doc:
4433
runs-on: ubuntu-latest
4534
steps:
46-
- uses: actions/checkout@v2
47-
- name: Install rustc nightly
48-
uses: actions-rs/toolchain@v1
35+
- uses: actions/checkout@v4
36+
- uses: dtolnay/rust-toolchain@nightly
4937
with:
50-
toolchain: nightly
51-
override: true
5238
components: rust-docs
53-
- uses: actions-rs/cargo@v1
54-
name: Clippy
55-
with:
56-
command: doc
57-
args: --workspace --all-features
39+
- name: Formatting
40+
run: cargo +nightly doc --workspace --all-features
41+
typos:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v4
45+
- uses: crate-ci/typos@master

.github/workflows/test.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.gitignore

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
/target
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
target/
24

35
# These are backup files generated by rustfmt
46
**/*.rs.bk
57

6-
.idea
7-
.vscode
8+
/.idea
89

9-
# Temporary directory for debug data storage
10-
/data
11-
/dep_test
10+
*.swp
11+
12+
/dep_test

0 commit comments

Comments
 (0)