Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,33 @@ jobs:
- name: lint
run: make lint

rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: check formatting
run: cargo fmt --all -- --check

clippy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false

- name: clippy
run: cargo clippy --locked --workspace --all-targets -- --deny warnings

all-lints-pass:
if: always()

needs:
- lint
- rustfmt
- clippy

runs-on: ubuntu-latest

Expand Down
123 changes: 86 additions & 37 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[workspace]
resolver = "2"
members = ["harness-support/rust", "harness/rust-webpki", "harness/rust-rustls"]
members = ["harness-support/rust", "harness/rust-rustls"]
8 changes: 1 addition & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ testcases: $(NEEDS_VENV)
build-harnesses:
$(MAKE) -C harness/gocryptox509
$(MAKE) -C harness/openssl
cargo build --bin rust-webpki-harness
cargo build --bin rust-rustls-harness

.PHONY: test-go
Expand Down Expand Up @@ -109,11 +108,6 @@ test-aws-lc:
$(MAKE) -C harness/openssl aws-lc
$(MAKE) run ARGS="harness --output ./results/aws-lc.json -- docker run --rm -i x509-limbo-aws-lc"

.PHONY: test-rust-webpki
test-rust-webpki:
@cargo build --bin rust-webpki-harness
$(MAKE) run ARGS="harness ./target/debug/rust-webpki-harness --output ./results/rust-webpki.json"

.PHONY: test-rustls-webpki
test-rustls-webpki:
@cargo build --bin rust-rustls-harness
Expand All @@ -132,7 +126,7 @@ test-gnutls:
$(MAKE) run ARGS="harness --output ./results/gnutls.json -- ./$(VENV_BIN)/python ./harness/gnutls/test-gnutls"

.PHONY: test
test: test-go test-openssl test-libressl test-boringssl test-aws-lc test-rust-webpki test-rustls-webpki test-pyca-cryptography test-certvalidator test-gnutls
test: test-go test-openssl test-libressl test-boringssl test-aws-lc test-rustls-webpki test-pyca-cryptography test-certvalidator test-gnutls

.PHONY: site
site: $(NEEDS_VENV)
Expand Down
9 changes: 6 additions & 3 deletions harness/rust-rustls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ edition = "2021"
[dependencies]
limbo-harness-support = { path = "../../harness-support/rust" }
chrono = "0.4.44"
pem = "3.0.6"
serde_json = "1.0.150"
rustls-webpki = { version = "0.103.13", features = ["std", "ring"] }
rustls-pki-types = "1.14.1"
rustls-webpki = { version = "0.103.13", features = [
"std",
"aws-lc-rs",
"aws-lc-rs-unstable",
] }
pki-types = { package = "rustls-pki-types", version = "1.14.1" }
Loading
Loading