From bdbe8a01dcda4f3ca8482860248d373a303d5266 Mon Sep 17 00:00:00 2001 From: Stijn de Gooijer Date: Fri, 14 Jul 2023 10:13:20 +0200 Subject: [PATCH] chore(rust): Clean up workspace definition (#9861) --- .github/workflows/lint-rust.yml | 2 +- Cargo.toml | 25 ++++++------------------- polars/polars-core/Cargo.toml | 1 + 3 files changed, 8 insertions(+), 20 deletions(-) diff --git a/.github/workflows/lint-rust.yml b/.github/workflows/lint-rust.yml index a21f0b32c520..61cedbc4472e 100644 --- a/.github/workflows/lint-rust.yml +++ b/.github/workflows/lint-rust.yml @@ -60,7 +60,7 @@ jobs: save-if: ${{ github.ref_name == 'main' }} - name: Run cargo clippy - run: cargo clippy -- -D warnings + run: cargo clippy --all-targets -- -D warnings rustfmt: if: github.ref_name != 'main' diff --git a/Cargo.toml b/Cargo.toml index 56bdc542e159..6fa06baf9c27 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,25 +3,12 @@ resolver = "2" members = [ "polars", "polars-cli", - "polars/polars-core", - "polars/polars-io", - "polars/polars-time", - "polars/polars-utils", - "polars/polars-ops", - "polars/polars-algo", - "polars/polars-lazy", - "polars/polars-lazy/polars-plan", - "polars/polars-lazy/polars-pipe", - "polars/polars-sql", - "polars/polars-error", - "polars/polars-row", - "polars/polars-json", - "examples/read_csv", - "examples/read_json", - "examples/read_parquet", - "examples/read_parquet_cloud", - "examples/string_filter", - "examples/python_rust_compiled_function", + "polars/polars-*", + "polars/polars-lazy/polars-*", + "examples/*", +] +exclude = [ + "examples/datasets", ] [workspace.package] diff --git a/polars/polars-core/Cargo.toml b/polars/polars-core/Cargo.toml index 0b7821d04df2..a6ccda4ace62 100644 --- a/polars/polars-core/Cargo.toml +++ b/polars/polars-core/Cargo.toml @@ -183,6 +183,7 @@ wasm-timer = "0.2.5" [dev-dependencies] bincode = "1" +serde_json = "1" [package.metadata.docs.rs] # not all because arrow 4.3 does not compile with simd