2019-09-03 17:30:08 +00:00
|
|
|
[package]
|
2024-03-24 17:56:31 +00:00
|
|
|
name = "lapce"
|
|
|
|
version = { workspace = true }
|
|
|
|
authors = { workspace = true }
|
|
|
|
edition = { workspace = true }
|
|
|
|
license = { workspace = true }
|
|
|
|
rust-version = { workspace = true }
|
|
|
|
default-run = "lapce"
|
2019-09-03 17:30:08 +00:00
|
|
|
|
|
|
|
[dependencies]
|
2024-03-24 17:56:31 +00:00
|
|
|
lapce-app = { path = "./lapce-app" }
|
2022-03-08 12:34:52 +00:00
|
|
|
lapce-proxy = { path = "./lapce-proxy" }
|
2021-10-06 16:43:04 +00:00
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "lapce"
|
2023-01-24 19:29:21 +00:00
|
|
|
path = "lapce-app/src/bin/lapce.rs"
|
2021-10-06 16:43:04 +00:00
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "lapce-proxy"
|
2022-03-08 12:34:52 +00:00
|
|
|
path = "lapce-proxy/src/bin/lapce-proxy.rs"
|
2020-10-15 17:03:20 +00:00
|
|
|
|
|
|
|
[workspace]
|
2024-03-24 17:56:31 +00:00
|
|
|
members = ["lapce-app", "lapce-proxy", "lapce-rpc", "lapce-core"]
|
2022-04-20 17:23:27 +00:00
|
|
|
|
2023-01-13 19:25:55 +00:00
|
|
|
[workspace.package]
|
2024-04-24 20:32:06 +00:00
|
|
|
version = "0.4.0"
|
2024-03-24 17:56:31 +00:00
|
|
|
edition = "2021"
|
2024-07-12 04:03:12 +00:00
|
|
|
rust-version = "1.77"
|
2024-03-24 17:56:31 +00:00
|
|
|
license = "Apache-2.0"
|
|
|
|
homepage = "https://lapce.dev"
|
|
|
|
authors = ["Dongdong Zhou <dzhou121@gmail.com>"]
|
2023-01-13 19:25:55 +00:00
|
|
|
|
|
|
|
[workspace.dependencies]
|
2024-03-24 17:56:31 +00:00
|
|
|
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"] }
|
2024-04-15 17:24:41 +00:00
|
|
|
crossbeam-channel = { version = "0.5.12" }
|
2024-03-24 17:56:31 +00:00
|
|
|
directories = { version = "4.0.1" }
|
|
|
|
flate2 = { version = "1.0" }
|
2024-07-12 04:03:12 +00:00
|
|
|
git2 = { version = "0.19.0", features = ["vendored-openssl"] }
|
2024-03-24 17:56:31 +00:00
|
|
|
globset = { version = "0.4.14" }
|
2024-04-29 17:46:37 +00:00
|
|
|
hashbrown = { version = "0.14.5", features = ["serde"] }
|
2024-03-24 17:56:31 +00:00
|
|
|
im = { version = "15.0.0", features = ["serde"] }
|
2024-06-01 16:10:51 +00:00
|
|
|
include_dir = { version = "0.7" }
|
2024-03-24 17:56:31 +00:00
|
|
|
indexmap = { version = "2.0", features = ["serde"] }
|
|
|
|
interprocess = { version = "1.2.1" }
|
2024-03-31 22:49:20 +00:00
|
|
|
itertools = { version = "0.12.1" }
|
2024-03-24 17:56:31 +00:00
|
|
|
notify = { version = "5.2.0", features = ["serde"] }
|
|
|
|
once_cell = { version = "1.19" }
|
2024-05-27 17:38:29 +00:00
|
|
|
parking_lot = { version = "0.12.3" }
|
2024-03-31 23:41:51 +00:00
|
|
|
rayon = { version = "1.10.0" }
|
2024-06-20 21:38:03 +00:00
|
|
|
regex = { version = "1.10.5" }
|
2024-07-12 04:03:12 +00:00
|
|
|
semver = { version = "1.0" }
|
2024-03-24 17:56:31 +00:00
|
|
|
reqwest = { version = "0.11", features = ["blocking", "json", "socks"] }
|
|
|
|
serde = { version = "1.0" }
|
2024-03-25 00:16:41 +00:00
|
|
|
serde_json = { version = "1.0" }
|
2024-04-22 17:44:33 +00:00
|
|
|
smallvec = { version = "1.13.2" }
|
2024-03-31 22:49:20 +00:00
|
|
|
strum = { version = "0.26.2" }
|
|
|
|
strum_macros = { version = "0.26.2" }
|
2024-03-24 17:56:31 +00:00
|
|
|
tar = { version = "0.4" }
|
|
|
|
thiserror = { version = "1.0" }
|
|
|
|
toml = { version = "*" }
|
|
|
|
toml_edit = { version = "0.20.2", features = ["serde"] }
|
|
|
|
url = { version = "2.5.0" }
|
|
|
|
|
2024-03-25 12:49:34 +00:00
|
|
|
lsp-types = { version = "0.95.1", features = ["proposed"] } # not following semver, so should be locked to patch version updates only
|
2023-10-23 21:52:33 +00:00
|
|
|
psp-types = { git = "https://github.com/lapce/psp-types", rev = "f7fea28f59e7b2d6faa1034a21679ad49b3524ad" }
|
2023-01-13 19:25:55 +00:00
|
|
|
|
2023-05-16 19:59:12 +00:00
|
|
|
lapce-xi-rope = { version = "0.3.2", features = ["serde"] }
|
2023-01-13 19:25:55 +00:00
|
|
|
|
2024-03-24 17:56:31 +00:00
|
|
|
lapce-core = { path = "./lapce-core" }
|
|
|
|
lapce-rpc = { path = "./lapce-rpc" }
|
2023-01-13 19:25:55 +00:00
|
|
|
lapce-proxy = { path = "./lapce-proxy" }
|
|
|
|
|
2024-06-13 21:32:11 +00:00
|
|
|
floem = { git = "https://github.com/lapce/floem", rev = "9a9e6c21834ce2f30db2c36d9aadfeb98f899277", features = ["editor", "serde", "default-image-formats", "rfd-async-std"] }
|
2024-06-07 18:48:36 +00:00
|
|
|
# floem = { path = "../floem", features = ["editor", "serde", "default-image-formats", "rfd-async-std"] }
|
2024-06-13 21:32:11 +00:00
|
|
|
floem-editor-core = { git = "https://github.com/lapce/floem", rev = "9a9e6c21834ce2f30db2c36d9aadfeb98f899277", features = ["serde"] }
|
2024-06-06 21:03:10 +00:00
|
|
|
# floem-editor-core = { path = "../floem/editor-core/", features = ["serde"] }
|
2024-02-12 21:23:15 +00:00
|
|
|
|
2023-12-11 19:08:05 +00:00
|
|
|
[patch.crates-io]
|
2024-06-01 06:02:56 +00:00
|
|
|
# Temporarily patch lsp-types with a version that adds message-type debug
|
2024-03-25 12:49:34 +00:00
|
|
|
lsp-types = { git = "https://github.com/lapce/lsp-types", rev = "feaa1e2ec80975c9dadd400a238ceacf071058e6" }
|
2024-03-25 08:55:45 +00:00
|
|
|
regalloc2 = { rev = "5d79e12d0a93b10fc181f4da409b4671dd365228", git = "https://github.com/bytecodealliance/regalloc2" }
|
2023-12-11 19:08:05 +00:00
|
|
|
|
2024-03-25 12:49:34 +00:00
|
|
|
|
2023-06-19 14:51:30 +00:00
|
|
|
[workspace.dependencies.tracing]
|
2024-03-24 17:56:31 +00:00
|
|
|
git = "https://github.com/tokio-rs/tracing"
|
2024-03-25 12:49:34 +00:00
|
|
|
rev = "908cc432a5994f6e17c8f36e13c217dc40085704"
|
2023-06-19 14:51:30 +00:00
|
|
|
package = "tracing"
|
|
|
|
|
2024-03-25 12:49:34 +00:00
|
|
|
[workspace.dependencies.tracing-log]
|
|
|
|
git = "https://github.com/tokio-rs/tracing"
|
|
|
|
rev = "908cc432a5994f6e17c8f36e13c217dc40085704"
|
|
|
|
package = "tracing-log"
|
|
|
|
|
2023-06-19 14:51:30 +00:00
|
|
|
[workspace.dependencies.tracing-subscriber]
|
2024-03-24 17:56:31 +00:00
|
|
|
git = "https://github.com/tokio-rs/tracing"
|
2024-03-25 12:49:34 +00:00
|
|
|
rev = "908cc432a5994f6e17c8f36e13c217dc40085704"
|
2023-06-19 14:51:30 +00:00
|
|
|
package = "tracing-subscriber"
|
|
|
|
|
|
|
|
[workspace.dependencies.tracing-appender]
|
2024-03-24 17:56:31 +00:00
|
|
|
git = "https://github.com/tokio-rs/tracing"
|
2024-03-25 12:49:34 +00:00
|
|
|
rev = "908cc432a5994f6e17c8f36e13c217dc40085704"
|
2023-06-19 14:51:30 +00:00
|
|
|
package = "tracing-appender"
|
|
|
|
|
|
|
|
[workspace.dependencies.alacritty_terminal]
|
2024-03-26 22:42:39 +00:00
|
|
|
version = "0.23.0"
|
2023-01-13 19:25:55 +00:00
|
|
|
|
2024-02-15 10:27:15 +00:00
|
|
|
[workspace.dependencies.windows-sys]
|
2024-03-24 17:56:31 +00:00
|
|
|
version = "0"
|
2024-02-15 10:27:15 +00:00
|
|
|
features = ["Win32_Foundation"]
|
|
|
|
|
2022-04-20 17:23:27 +00:00
|
|
|
[profile.release-lto]
|
2024-03-24 17:56:31 +00:00
|
|
|
inherits = "release"
|
|
|
|
lto = true
|
2022-04-20 17:23:27 +00:00
|
|
|
codegen-units = 1
|
2022-04-25 07:53:33 +00:00
|
|
|
|
2022-04-20 20:51:53 +00:00
|
|
|
# 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
|
2022-04-20 14:39:33 +00:00
|
|
|
# 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"
|