-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathCargo.toml
More file actions
38 lines (32 loc) · 1.33 KB
/
Copy pathCargo.toml
File metadata and controls
38 lines (32 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
[workspace]
members = ["crates/diffcore-core", "crates/diffcore-cli", "crates/diffcore-tauri"]
resolver = "2"
[workspace.package]
version = "0.5.16"
edition = "2021"
license = "MIT"
[workspace.dependencies]
serde = { version = "1", features = ["derive"] }
# `float_roundtrip`: without it serde_json's fast float parser can land 1 ULP
# off the correctly-rounded value, so serialize -> parse -> serialize is not
# stable for arbitrary f64 scores (see assert_json_roundtrip).
serde_json = { version = "1", features = ["float_roundtrip"] }
log = "0.4"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter", "json"] }
git2 = { version = "0.20", default-features = false }
# Optimize test builds: trades slightly longer compile for faster test runtime.
# tree-sitter parsing and query execution benefit significantly from opt-level 1.
# Recommended invocation: cargo test -- --test-threads=$(nproc)
# Tests are isolated via TempDirs, safe to fully parallelize.
[profile.test]
opt-level = 1
# Dev-build compile time: workspace code keeps line tables for usable
# backtraces; the ~750 dependency crates and build scripts skip debuginfo
# entirely (nobody steps through tauri/tokio internals in a debugger).
[profile.dev]
debug = "line-tables-only"
[profile.dev.package."*"]
debug = false
[profile.dev.build-override]
debug = false