diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7db2ea4d55bd..01fd56ba6961 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -53,7 +53,7 @@ jobs: run: | export PATH=$PATH:$HOME/d/protoc/bin echo $RUSTFLAGS - cargo test --lib --tests --bins --features avro,json,backtrace --profile release-nonlto + cargo test --lib --tests --bins --features avro,json,backtrace --profile windows cd datafusion-cli - cargo test --lib --tests --bins --all-features --profile release-nonlto + cargo test --lib --tests --bins --all-features --profile windows diff --git a/Cargo.toml b/Cargo.toml index 0c76ff196a10..5f8fd3bba9af 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -170,6 +170,18 @@ overflow-checks = false panic = 'unwind' rpath = false +[profile.windows] +codegen-units = 256 +debug = false +debug-assertions = false +incremental = true +inherits = "release" +lto = true +opt-level = 1 +overflow-checks = false +panic = 'unwind' +rpath = false + [workspace.lints.clippy] # Detects large stack-allocated futures that may cause stack overflow crashes (see threshold in clippy.toml) large_futures = "warn"