-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathCargo.toml
More file actions
108 lines (89 loc) · 2.76 KB
/
Cargo.toml
File metadata and controls
108 lines (89 loc) · 2.76 KB
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
[workspace]
members = ["crates/*", "examples/*", "tests"]
resolver = "2"
[workspace.package]
version = "0.6.0"
edition = "2024"
authors = ["Riccardo Mazzarini <me@noib3.dev>"]
rust-version = "1.86.0"
documentation = "https://docs.rs/nvim-oxi"
repository = "https://github.com/noib3/nvim-oxi"
license = "MIT"
keywords = ["bindings", "neovim", "nvim"]
[workspace.dependencies]
api = { path = "./crates/api", package = "nvim-oxi-api" }
libuv = { path = "./crates/libuv", package = "nvim-oxi-libuv" }
luajit = { path = "./crates/luajit", package = "nvim-oxi-luajit" }
macros = { path = "./crates/macros", package = "nvim-oxi-macros" }
types = { path = "./crates/types", package = "nvim-oxi-types" }
cargo_metadata = { version = "0.23" }
mlua = { version = "0.11", features = ["luajit"] }
thiserror = "2.0"
[workspace.lints.clippy]
mixed_attributes_style = "allow"
[workspace.lints.rust]
unsafe_op_in_unsafe_fn = "allow"
[workspace.lints.rustdoc]
broken_intra_doc_links = "deny"
private_intra_doc_links = "deny"
[package]
name = "nvim-oxi"
description = "Rust bindings to all things Neovim"
readme = "./README.md"
version.workspace = true
edition.workspace = true
authors.workspace = true
rust-version.workspace = true
documentation.workspace = true
repository.workspace = true
license.workspace = true
keywords.workspace = true
[package.metadata.docs.rs]
default-features = false
features = ["__docsrs", "neovim-nightly", "libuv", "mlua", "test"]
rustdoc-args = ["--cfg", "docsrs"]
[features]
default = ["__no_docsrs"]
neovim-0-10 = ["api/neovim-0-10"]
neovim-0-11 = ["api/neovim-0-10", "api/neovim-0-11"]
neovim-nightly = ["neovim-0-11", "api/neovim-nightly"]
__docsrs = ["mlua?/vendored"]
__no_docsrs = ["mlua?/module"]
libuv = ["dep:libuv"]
mlua = ["api/mlua", "dep:mlua"]
test = ["macros/test", "dep:cargo_metadata"]
test-terminator = ["test", "libuv", "macros/test-terminator"]
[dependencies]
api = { workspace = true }
luajit = { workspace = true }
macros = { workspace = true, features = ["plugin"] }
types = { workspace = true, features = ["serde"] }
libuv = { workspace = true, optional = true }
cargo_metadata = { workspace = true, optional = true }
mlua = { workspace = true, optional = true }
thiserror = { workspace = true }
[dev-dependencies]
serde = { version = "1.0", features = ["derive"] }
tokio = { version = "1.0", features = ["full"] }
[[example]]
name = "api"
path = "./examples/api.rs"
crate-type = ["cdylib"]
[[example]]
name = "calc"
path = "./examples/calc.rs"
crate-type = ["cdylib"]
[[example]]
name = "libuv"
path = "./examples/libuv.rs"
crate-type = ["cdylib"]
required-features = ["libuv"]
[[example]]
name = "mechanic"
path = "./examples/mechanic.rs"
crate-type = ["cdylib"]
[[example]]
name = "mlua"
path = "./examples/mlua.rs"
crate-type = ["cdylib"]
required-features = ["mlua"]