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"
|
|
|
|
|
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]
|
2023-04-10 20:25:47 +02:00
|
|
|
name = "codemp"
|
2022-10-18 02:19:15 +02:00
|
|
|
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"
|
2023-04-11 14:02:03 +02:00
|
|
|
required-features = ["server"]
|
2022-07-10 19:01:56 +02:00
|
|
|
|
2023-04-07 03:05:21 +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
|
2022-07-30 03:02:38 +02:00
|
|
|
tracing = "0.1"
|
2023-04-07 03:05:21 +02:00
|
|
|
tonic = "0.9"
|
|
|
|
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 }
|
2023-04-07 03:05:21 +02:00
|
|
|
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]
|
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"]
|