2022-07-10 19:01:56 +02:00
|
|
|
[package]
|
|
|
|
name = "codemp"
|
|
|
|
version = "0.1.0"
|
|
|
|
edition = "2021"
|
|
|
|
|
2023-04-07 03:05:21 +02:00
|
|
|
# [features]
|
|
|
|
# default = ["nvim"]
|
|
|
|
# nvim = []
|
2022-07-16 03:46:02 +02:00
|
|
|
|
2022-10-18 02:19:15 +02:00
|
|
|
[lib]
|
|
|
|
name = "library"
|
|
|
|
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"
|
2022-07-10 23:47:14 +02:00
|
|
|
path = "src/server/main.rs"
|
2022-07-10 19:01:56 +02:00
|
|
|
|
2023-04-07 03:05:21 +02:00
|
|
|
[[bin]]
|
|
|
|
name = "client-cli"
|
|
|
|
path = "src/client/cli/main.rs"
|
|
|
|
required-features = ["cli"]
|
|
|
|
|
|
|
|
[[bin]]
|
|
|
|
name = "client-nvim"
|
|
|
|
path = "src/client/nvim/main.rs"
|
|
|
|
required-features = ["nvim"]
|
2022-07-10 19:01:56 +02:00
|
|
|
|
|
|
|
[dependencies]
|
2022-07-30 03:02:38 +02:00
|
|
|
tracing = "0.1"
|
|
|
|
tracing-subscriber = "0.3"
|
2023-04-07 03:05:21 +02:00
|
|
|
tonic = "0.9"
|
2022-07-10 23:47:14 +02:00
|
|
|
tokio = { version = "1.0", features = ["macros", "rt-multi-thread", "sync", "full"] }
|
2022-07-21 10:40:43 +02:00
|
|
|
tokio-stream = "0.1"
|
2022-07-10 23:47:14 +02:00
|
|
|
rmpv = "1"
|
2023-04-07 03:05:21 +02:00
|
|
|
serde = "1"
|
|
|
|
serde_json = "1"
|
|
|
|
operational-transform = { version = "0.6", features = ["serde"] }
|
|
|
|
md5 = "0.7.0"
|
|
|
|
prost = "0.11.8"
|
|
|
|
clap = { version = "4.2.1", features = ["derive"], optional = true }
|
|
|
|
nvim-rs = { version = "0.5", features = ["use_tokio"], optional = true }
|
2022-07-10 19:01:56 +02:00
|
|
|
|
|
|
|
[build-dependencies]
|
2023-04-07 03:05:21 +02:00
|
|
|
tonic-build = "0.9"
|
|
|
|
|
|
|
|
[features]
|
|
|
|
default = []
|
|
|
|
cli = ["dep:clap"]
|
|
|
|
nvim = ["dep:nvim-rs"]
|