forked from lapce/lapce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
126 lines (107 loc) · 3.77 KB
/
Cargo.toml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
[package]
name = "lapce"
version.workspace = true
authors.workspace = true
edition.workspace = true
license.workspace = true
rust-version.workspace = true
default-run = "lapce"
[dependencies]
lapce-app = { path = "./lapce-app" }
lapce-proxy = { path = "./lapce-proxy" }
[[bin]]
name = "lapce"
path = "lapce-app/src/bin/lapce.rs"
[[bin]]
name = "lapce-proxy"
path = "lapce-proxy/src/bin/lapce-proxy.rs"
[workspace]
members = [
"lapce-app",
"lapce-proxy",
"lapce-rpc",
"lapce-core",
]
[workspace.package]
version = "0.3.1"
edition = "2021"
rust-version = "1.75"
license = "Apache-2.0"
homepage = "https://lapce.dev"
authors = ["Dongdong Zhou <[email protected]>"]
[workspace.dependencies]
anyhow = "1.0"
backtrace = "0.3"
chrono = "0.4"
clap = { version = "4.5.0", default-features = false, features = ["std", "help", "usage", "derive"] }
crossbeam-channel = "0.5.11"
directories = "4.0.1"
flate2 = "1.0"
globset = "0.4.14"
hashbrown = { version = "0.14.0", features = ["serde"] }
im = { version = "15.0.0", features = ["serde"] }
include_dir = "0.6.2"
indexmap = { version = "2.0", features = ["serde"] }
interprocess = "1.2.1"
itertools = "0.10.1"
notify = { version = "5.2.0", features = ["serde"] }
once_cell = "1.19"
parking_lot = { version = "0.11.0", features = ["deadlock_detection"] }
rayon = "1.8.0"
regex = "1.10.2"
reqwest = { version = "0.11", features = ["blocking", "json", "socks"] }
serde = "1.0"
serde_json = "1.0"
smallvec = "1.13.1"
strum = "0.21.0" # follow same version as system-deps in lockfile
strum_macros = "0.21.1" # ditto
tar = "0.4"
thiserror = "1.0"
toml = { version = "*" }
toml_edit = { version = "0.20.2", features = ["serde"] }
url = { version = "2.5.0" }
lsp-types = { version = "0.94.1", features = ["proposed"] } # not following semver, so should be locked to patch version updates only
psp-types = { git = "https://github.com/lapce/psp-types", rev = "f7fea28f59e7b2d6faa1034a21679ad49b3524ad" }
lapce-xi-rope = { version = "0.3.2", features = ["serde"] }
lapce-core = { path = "./lapce-core" }
lapce-rpc = { path = "./lapce-rpc" }
lapce-proxy = { path = "./lapce-proxy" }
floem-editor-core = { git = "https://github.com/lapce/floem", rev = "40ab0df2ba86651a811607d6ffc9d5ccce9befe1", features = ["serde"] }
# floem-editor-core = { path = "../workspaces/floem/editor-core/", features = ["serde"] }
[patch.crates-io]
# Temporarily patch lsp-types with a version that supports inline-completion
lsp-types = { git = "https://github.com/lapce/lsp-types", rev = "3031a76c4452f46ed265eb0154d6bb1d10ddb9f6" }
[workspace.dependencies.tracing]
git = "https://github.com/tokio-rs/tracing"
rev = "c14525e1610db88986f849d46bd3e9795878b012"
package = "tracing"
[workspace.dependencies.tracing-subscriber]
git = "https://github.com/tokio-rs/tracing"
rev = "c14525e1610db88986f849d46bd3e9795878b012"
package = "tracing-subscriber"
[workspace.dependencies.tracing-appender]
git = "https://github.com/tokio-rs/tracing"
rev = "c14525e1610db88986f849d46bd3e9795878b012"
package = "tracing-appender"
[workspace.dependencies.alacritty_terminal]
git = "https://github.com/alacritty/alacritty"
rev = "6071a7bf35cfd99be8ba70f479f188b7370cda6f"
[workspace.dependencies.windows-sys]
version = "0"
features = ["Win32_Foundation"]
[profile.release-lto]
inherits = "release"
lto = true
codegen-units = 1
# A profile which compiles all (non-workspace) dependencies in release mode
# but Lapce code in dev mode. This gives a good debugging experience for your
# code and fast performance of other people's code. After the initial
# build subsequent ones are as fast as dev mode builds.
# See https://doc.rust-lang.org/cargo/reference/profiles.html
# To use this profile:
# cargo build --profile fastdev
# cargo run --profile fastdev --bin lapce
[profile.fastdev.package."*"]
opt-level = 3
[profile.fastdev]
inherits = "dev"