From e6631a348fd9024f7ef093bc8e77d872183e1d46 Mon Sep 17 00:00:00 2001 From: David Kern Date: Mon, 19 Aug 2024 16:47:29 -0700 Subject: [PATCH] add rustfmt to codecov & exclude fuzz from workspace --- .github/workflows/coverage.yml | 4 ++++ .gitignore | 2 +- Cargo.toml | 3 ++- fuzz/Cargo.toml | 12 +----------- 4 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 099e07f4..20e1bb7b 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -12,6 +12,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Install rustfmt + run: | + rustup component add rustfmt + - name: Generate code coverage run: | cargo +nightly tarpaulin --verbose --all-features --workspace --timeout 120 --out Xml diff --git a/.gitignore b/.gitignore index 4603923b..00d18e8b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -/target +target /book/book **/*.rs.bk Cargo.lock diff --git a/Cargo.toml b/Cargo.toml index 7911effd..77739f06 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,6 @@ [workspace] -members = ["logos-cli", "logos-codegen", "logos-derive", "tests", "fuzz"] +members = ["logos-cli", "logos-codegen", "logos-derive", "tests"] +exclude = ["fuzz"] resolver = "2" [workspace.package] diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml index 6f3ab857..49b17099 100644 --- a/fuzz/Cargo.toml +++ b/fuzz/Cargo.toml @@ -1,16 +1,6 @@ [package] name = "logos-fuzz" -authors.workspace = true -categories.workspace = true -description.workspace = true -edition.workspace = true -homepage.workspace = true -keywords.workspace = true -license.workspace = true -readme.workspace = true -repository.workspace = true -rust-version.workspace = true -version.workspace = true +edition = "2021" publish = false [dependencies]