forked from lapce/lapce
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
147 lines (122 loc) · 5.68 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
[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.4.2"
edition = "2021"
rust-version = "1.77.0"
license = "Apache-2.0"
homepage = "https://lapce.dev"
authors = ["Dongdong Zhou <[email protected]>"]
[workspace.dependencies]
anyhow = { version = "1.0" }
backtrace = { version = "0.3" }
chrono = { version = "0.4" }
clap = { version = "4.5.0", default-features = false, features = ["std", "help", "usage", "derive"] }
crossbeam-channel = { version = "0.5.12" }
directories = { version = "4.0.1" }
flate2 = { version = "1.0" }
git2 = { version = "0.19.0", features = ["vendored-openssl"] }
globset = { version = "0.4.14" }
hashbrown = { version = "0.14.5", features = ["serde"] }
im = { version = "15.0.0", features = ["serde"] }
include_dir = { version = "0.7" }
indexmap = { version = "2.0", features = ["serde"] }
interprocess = { version = "1.2.1" }
itertools = { version = "0.12.1" }
notify = { version = "5.2.0", features = ["serde"] }
once_cell = { version = "1.19" }
parking_lot = { version = "0.12.3" }
rayon = { version = "1.10.0" }
regex = { version = "1.10.5" }
remain = { version = "0.2" }
semver = { version = "1.0" }
reqwest = { version = "0.11", features = ["blocking", "json", "socks"] }
serde = { version = "1.0" }
serde_json = { version = "1.0" }
smallvec = { version = "1.13.2" }
strum = { version = "0.26.2" }
strum_macros = { version = "0.26.2" }
tar = { version = "0.4" }
tempfile = { version = "3.10.1" }
thiserror = { version = "1.0" }
toml = { version = "*" }
toml_edit = { version = "0.20.2", features = ["serde"] }
url = { version = "2.5.0" }
zstd = { version = "0.11.2" } # follow same version wasmtime-cache in lockfile
alacritty_terminal = "0.24.1"
lsp-types = { version = "0.95.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 = { git = "https://github.com/lapce/floem", rev = "4510c4b", features = ["editor", "serde", "default-image-formats", "rfd-async-std"] }
# floem = { path = "../floem", features = ["editor", "serde", "default-image-formats", "rfd-async-std"] }
floem-editor-core = { git = "https://github.com/lapce/floem", rev = "4510c4b", features = ["serde"] }
# floem-editor-core = { path = "../floem/editor-core/", features = ["serde"] }
[patch.crates-io]
# Temporarily patch lsp-types with a version that adds message-type debug
lsp-types = { git = "https://github.com/lapce/lsp-types", rev = "feaa1e2ec80975c9dadd400a238ceacf071058e6" }
regalloc2 = { rev = "5d79e12d0a93b10fc181f4da409b4671dd365228", git = "https://github.com/bytecodealliance/regalloc2" }
[patch."https://github.com/lapce/floem"]
# Temporarily patch lsp-types with a version that adds message-type debug
floem = { path="../floem" }
floem-editor-core = { path="../floem/editor-core" }
#[patch."https://github.com/tokio-rs/tracing"]
#tracing = {path = "../tracing/tracing"}
#tracing-log = {path = "../tracing/tracing-log"}
#tracing-subscriber = {path = "../tracing/tracing-subscriber"}
#tracing-appender = {path = "../tracing/tracing-appender"}
[workspace.dependencies.tracing]
git = "https://github.com/jm-observer/tracing"
#rev = "908cc432a5994f6e17c8f36e13c217dc40085704"
package = "tracing"
[workspace.dependencies.tracing-log]
git = "https://github.com/jm-observer/tracing"
#rev = "908cc432a5994f6e17c8f36e13c217dc40085704"
package = "tracing-log"
[workspace.dependencies.tracing-subscriber]
git = "https://github.com/jm-observer/tracing"
#rev = "908cc432a5994f6e17c8f36e13c217dc40085704"
package = "tracing-subscriber"
[workspace.dependencies.tracing-appender]
git = "https://github.com/jm-observer/tracing"
#rev = "908cc432a5994f6e17c8f36e13c217dc40085704"
package = "tracing-appender"
#[workspace.dependencies.alacritty_terminal]
#git = "https://github.com/alacritty/alacritty"
#rev = "cacdb5bb3b72bad2c729227537979d95af75978f"
[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]
inherits = "dev"