forked from tokio-rs/prost
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This reverts commit b41ff14.
- Loading branch information
Showing
23 changed files
with
171 additions
and
800 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,11 @@ jobs: | |
with: | ||
submodules: recursive | ||
- name: install toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
default: true | ||
profile: minimal | ||
components: rustfmt | ||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v1 | ||
|
@@ -22,7 +25,10 @@ jobs: | |
- name: build b_tests | ||
run: cargo build --package b_tests | ||
- name: rustfmt | ||
run: cargo fmt --all --check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: fmt | ||
args: --all -- --check | ||
# Disabled because downstream crates don't check this as well | ||
# minversions: | ||
# runs-on: ubuntu-latest | ||
|
@@ -57,29 +63,13 @@ jobs: | |
# args: --workspace --all-targets | ||
# toolchain: stable | ||
|
||
machete: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: install toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Install cargo-machete | ||
uses: baptiste0928/cargo-install@v2 | ||
with: | ||
crate: cargo-machete | ||
- name: Check unused dependencies | ||
run: cargo machete | ||
|
||
test: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
toolchain: | ||
- stable | ||
- "1.60" | ||
- 1.56.1 | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
|
@@ -90,55 +80,29 @@ jobs: | |
with: | ||
submodules: recursive | ||
- name: install toolchain | ||
uses: dtolnay/rust-toolchain@master | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
default: true | ||
profile: minimal | ||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- name: install ninja | ||
uses: seanmiddleditch/gha-setup-ninja@v3 | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: Swatinem/rust-cache@v1 | ||
- name: test | ||
run: cargo test --workspace --all-targets | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: test | ||
args: --workspace --all-targets | ||
- name: test no-default-features | ||
run: cargo test -p prost-build -p prost-derive -p prost-types --all-targets --no-default-features | ||
# Run doc tests separately: https://github.com/rust-lang/cargo/issues/6669 | ||
- name: test doc | ||
run: cargo test --workspace --doc | ||
- name: test doc | ||
run: cargo test -p prost-build -p prost-derive -p prost-types --doc --no-default-features | ||
|
||
kani: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
- name: Verify with Kani | ||
uses: model-checking/[email protected] | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
enable-propproof: true | ||
args: | | ||
--tests -p prost-types --default-unwind 3 \ | ||
--harness "tests::check_timestamp_roundtrip_via_system_time" \ | ||
--harness "tests::check_duration_roundtrip_nanos" | ||
# --default-unwind N roughly corresponds to how much effort | ||
# Kani will spend trying to prove correctness of the | ||
# program. Higher the number, more programs can be proven | ||
# correct. However, Kani will require more time and memory. If | ||
# Kani fails with "Failed Checks: unwinding assertion," this | ||
# number may need to be raised for Kani to succeed. | ||
command: test | ||
args: --no-default-features | ||
|
||
no-std: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: install toolchain | ||
uses: dtolnay/rust-toolchain@nightly | ||
# no-std: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
|
@@ -156,22 +120,6 @@ jobs: | |
uses: arduino/setup-protoc@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: install cargo-no-std-check | ||
uses: baptiste0928/cargo-install@v2 | ||
with: | ||
crate: cargo-no-std-check | ||
- name: prost cargo-no-std-check | ||
run: cargo no-std-check --manifest-path Cargo.toml --no-default-features | ||
- name: prost-types cargo-no-std-check | ||
run: cargo no-std-check --manifest-path prost-types/Cargo.toml --no-default-features | ||
# prost-build depends on prost with --no-default-features, but when | ||
# prost-build is built through the workspace, prost typically has default | ||
# features enabled due to vagaries in Cargo workspace feature resolution. | ||
# This additional check ensures that prost-build does not rely on any of | ||
# prost's default features to compile. | ||
- name: prost-build check | ||
run: cargo check --manifest-path prost-build/Cargo.toml | ||
# - uses: Swatinem/rust-cache@v1 | ||
# - name: install cargo-no-std-check | ||
# uses: actions-rs/cargo@v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "prost" | ||
version = "0.11.8" | ||
version = "0.11.3" | ||
authors = [ | ||
"Dan Burkert <[email protected]>", | ||
"Lucio Franco <[email protected]", | ||
|
@@ -14,7 +14,7 @@ description = "A Protocol Buffers implementation for the Rust Language." | |
keywords = ["protobuf", "serialization"] | ||
categories = ["encoding"] | ||
edition = "2021" | ||
rust-version = "1.60" | ||
rust-version = "1.56" | ||
|
||
[workspace] | ||
members = [ | ||
|
@@ -49,11 +49,11 @@ std = [] | |
|
||
[dependencies] | ||
bytes = { version = "1", default-features = false } | ||
prost-derive = { version = "0.11.8", path = "prost-derive", optional = true } | ||
prost-derive = { version = "0.11.0", path = "prost-derive", optional = true } | ||
uuid = { version = "1", features = ["v4"] } | ||
|
||
[dev-dependencies] | ||
criterion = { version = "0.4", default-features = false } | ||
criterion = "0.3" | ||
env_logger = { version = "0.8", default-features = false } | ||
log = "0.4" | ||
proptest = "1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "prost-build" | ||
version = "0.11.8" | ||
version = "0.11.4" | ||
authors = [ | ||
"Dan Burkert <[email protected]>", | ||
"Lucio Franco <[email protected]>", | ||
|
@@ -12,7 +12,7 @@ documentation = "https://docs.rs/prost-build" | |
readme = "README.md" | ||
description = "A Protocol Buffers implementation for the Rust Language." | ||
edition = "2021" | ||
rust-version = "1.60" | ||
rust-version = "1.56" | ||
|
||
[features] | ||
default = ["format"] | ||
|
@@ -27,19 +27,20 @@ itertools = { version = "0.10", default-features = false, features = ["use_alloc | |
log = "0.4" | ||
multimap = { version = "0.8", default-features = false } | ||
petgraph = { version = "0.6", default-features = false } | ||
prost = { version = "0.11.8", path = "..", default-features = false } | ||
prost-types = { version = "0.11.8", path = "../prost-types", default-features = false } | ||
prost = { version = "0.11.0", path = "..", default-features = false } | ||
prost-types = { version = "0.11.0", path = "../prost-types", default-features = false } | ||
tempfile = "3" | ||
lazy_static = "1.4.0" | ||
regex = { version = "1.5.5", default-features = false, features = ["std", "unicode-bool"] } | ||
which = "4" | ||
|
||
prettyplease = { version = "0.2", optional = true } | ||
syn = { version = "2", features = ["full"], optional = true } | ||
prettyplease = { version = "0.1", optional = true } | ||
syn = { version = "1", features = ["full"], optional = true } | ||
|
||
# These two must be kept in sync, used for `cleanup-markdown` feature. | ||
pulldown-cmark = { version = "0.9.1", optional = true, default-features = false } | ||
pulldown-cmark-to-cmark = { version = "10.0.1", optional = true } | ||
|
||
[dev-dependencies] | ||
env_logger = { version = "0.8", default-features = false } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.