codemp/Cargo.toml

56 lines
1.4 KiB
TOML
Raw Normal View History

2022-07-10 19:01:56 +02:00
[package]
name = "codemp"
2023-04-12 05:01:14 +02:00
version = "0.2.0"
2022-07-10 19:01:56 +02:00
edition = "2021"
# [features]
# default = ["nvim"]
# nvim = []
[lib]
2023-04-10 20:25:47 +02:00
name = "codemp"
path = "src/lib/lib.rs"
2022-07-10 19:01:56 +02:00
[[bin]] # Bin to run the CodeMP gRPC server
2022-09-17 21:44:15 +02:00
name = "server"
path = "src/server/main.rs"
2023-04-11 14:02:03 +02:00
required-features = ["server"]
2022-07-10 19:01:56 +02:00
[[bin]]
name = "client-nvim"
path = "src/client/nvim/main.rs"
required-features = ["nvim"]
2022-07-10 19:01:56 +02:00
[dependencies]
2023-04-11 14:02:03 +02:00
# core
tracing = "0.1"
2023-04-12 18:12:38 +02:00
tonic = { version = "0.9", features = ["tls", "tls-roots"] }
prost = "0.11.8"
2023-04-11 14:02:03 +02:00
md5 = "0.7.0"
uuid = { version = "1.3.1", features = ["v4"] }
operational-transform = { version = "0.6", features = ["serde"] }
# can these be optional?
tokio = { version = "1.0", features = ["macros", "rt-multi-thread", "sync", "full"], optional = false }
tokio-stream = { version = "0.1", optional = false }
serde = { version = "1", optional = false }
serde_json = { version = "1", optional = false }
# runtime
# logs
tracing-subscriber = { version = "0.3", optional = true }
# nvim
rmpv = { version = "1", optional = true }
clap = { version = "4.2.1", features = ["derive"], optional = true }
nvim-rs = { version = "0.5", features = ["use_tokio"], optional = true }
similar = { version = "2.2", features = ["inline"] }
2022-07-10 19:01:56 +02:00
[build-dependencies]
tonic-build = "0.9"
[features]
2023-04-11 14:02:03 +02:00
default = []
logs = ["dep:tracing-subscriber"]
# runtime = ["dep:tokio", "dep:tokio-stream"]
# serde = ["dep:serde", "dep:serde_json"]
2023-04-12 04:59:33 +02:00
server = ["logs", "dep:clap"]
2023-04-11 14:02:03 +02:00
nvim = ["logs", "dep:nvim-rs", "dep:clap", "dep:rmpv"]