-
Notifications
You must be signed in to change notification settings - Fork 25
/
Cargo.toml
126 lines (102 loc) · 2.62 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
[package]
name = "nvim-rs"
version = "0.8.0-pre"
license = "LGPL-3.0"
authors = ["KillTheMule <[email protected]"]
description = "A library for writing neovim rpc clients"
repository = "https://github.com/KillTheMule/nvim-rs"
readme = "README.md"
categories = ["api-bindings"]
keywords = ["neovim", "nvim", "rpc", "msgpack"]
exclude = [
"neovim/*",
".travis.yml",
"appveyor.yml",
".git",
".gitignore",
".gitmodules",
"build.ps1"
]
edition = "2021"
[features]
use_tokio = ["tokio", "tokio-util", "parity-tokio-ipc"]
use_async-std = ["async-std"]
use_neovim_lib = ["neovim-lib"]
[package.metadata.docs.rs]
features = ["use_tokio"]
rustdoc-args = ["--cfg", "docsrs"]
[lib]
bench = false
[dependencies]
rmp = "0.8.12"
rmpv = "1.0.1"
log = "0.4.20"
async-trait = "0.1.77"
futures = { version = "0.3.30", features = ["io-compat"] }
tokio = { version = "1.36.0", features = ["full"] , optional = true}
tokio-util = { version = "0.7.10", features = ["compat"], optional = true }
async-std = { version = "1.12.0", features = ["attributes"], optional = true }
neovim-lib = { version = "0.6.1", optional = true }
parity-tokio-ipc = { version = "0.9.0", optional = true }
[target.'cfg(windows)'.dependencies]
winapi = { version = '0.3.9', features = ["winerror"] }
[dev-dependencies]
tempfile = "3.9.0"
# TODO: if changing tempfile: the rand version is based on whatever version
# tempfile is using, to deduplicate dependencies
fastrand = "2.0.0"
criterion = "0.5.1"
[profile.bench]
lto = true
debug = true
[[bench]]
name = "rpc_tokio"
harness = false
required-features = ["use_tokio"]
[[example]]
name = "handler_drop"
required-features = ["use_tokio"]
[[example]]
name = "quitting"
required-features = ["use_tokio"]
[[example]]
name = "scorched_earth"
required-features = ["use_tokio"]
[[example]]
name = "basic"
required-features = ["use_tokio"]
[[example]]
name = "bench_tokio"
required-features = ["use_tokio"]
[[example]]
name = "bench_async-std"
required-features = ["use_async-std"]
[[example]]
name = "bench_sync"
required-features = ["use_neovim_lib"]
[[example]]
name = "scorched_earth_as"
required-features = ["use_async-std"]
[[example]]
name = "nested_requests"
required-features = ["use_tokio"]
[[test]]
name = "nested_requests"
required-features = ["use_tokio"]
[[test]]
name = "connecting"
path = "tests/connecting/mod.rs"
[[test]]
name = "notifications"
required-features = ["use_tokio"]
[[test]]
name = "basic"
[[test]]
name = "regression"
path = "tests/regression/mod.rs"
[[bin]]
name = "linebuffercrash"
required-features = ["use_tokio"]
[[bin]]
name = "linebuffercrash_as"
required-features = ["use_async-std"]