Skip to content

Commit

Permalink
Bump optimization level of sqlite3-parser in dev builds to work with …
Browse files Browse the repository at this point in the history
…Windows' default stack size of 1MB.
  • Loading branch information
ignatz committed Dec 25, 2024
1 parent a464103 commit 44e0bb6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

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

8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ opt-level = 3
lto = true
codegen-units = 1

# Workaround for https://github.com/gwenn/lemon-rs/issues/78. sqlite3-parser
# requires 1+MB stack frames to parse trivial SQL statements, which is larger
# than Window's default stack size of 1MB. This is due to the rust compiler not
# overlapping stack variables of disjoint branches in dev mode and instead
# allocating them all.
[profile.dev.package.sqlite3-parser]
opt-level = 1

[workspace.dependencies]
refinery = { package = "refinery", path = "vendor/refinery/refinery", default-features = false, features = ["rusqlite"] }
refinery-core = { package = "refinery-core", path = "vendor/refinery/refinery_core" }
Expand Down

0 comments on commit 44e0bb6

Please sign in to comment.