Skip to content
Open
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
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ jobs:
- name: Test
run: >-
cargo nextest run
--cargo-profile ci-test
--config .cargo/config-ci.toml
--workspace
--all-targets
Expand Down
9 changes: 5 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,6 @@ while_let_loop = "warn"
let_underscore_drop = "warn"
redundant_imports = "warn"

[profile.dev]
# Opt-level 0 tends to run out of stack on Windows when running async code
opt-level = 1

Comment on lines -171 to -174
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this at least be conditionalized on Windows? Also, maybe by moving all our dependencies to opt-level=3 (ref #9009) we might get better stack usage through some inter-crate optimizations? I'm not sure. Maybe you can just try deleting this?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe Windows users would want to increase the stack size than waiting for slow compilation?

BTW, I feel the opt-level=3 change also impacted build time, but I haven't measured the difference.

[profile.dev.package."*"]
# Compile all dependencies with opt-level=3 to help speed up tests and
# debug builds
Expand All @@ -182,3 +178,8 @@ opt-level = 3
[profile.release]
strip = "debuginfo"
codegen-units = 1

[profile.ci-test]
inherits = "test"
# Opt-level 0 tends to run out of stack on Windows when running async code
opt-level = 1
Loading