Crates.io | nvim-rs |
lib.rs | nvim-rs |
version | |
source | src |
created_at | 2019-12-09 20:53:02.465083+00 |
updated_at | 2025-03-01 14:18:44.556941+00 |
description | A library for writing neovim rpc clients |
homepage | |
repository | https://github.com/KillTheMule/nvim-rs |
max_upload_size | |
id | 188037 |
Cargo.toml error: | TOML parse error at line 27, column 1 | 27 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
Rust library for Neovim msgpack-rpc clients. Utilizes async to allow for arbitrary nesting of requests.
Useable, see the examples/
and tests/
folders for examples. The nvim_rs::examples
submodule contains documentation of the examples.
The API is unstable, see the Roadmap for things being planned.
I'd love contributions, comments, praise, criticism... You could open an issue or a pull request. I also read the subreddits for rust and neovim, if that suits you better.
For some tests, neovim needs to be installed. Set the environment variable NVIMRS_TEST_BIN
to
the path of the binary before running the tests.
Afterwards, you can simply run cargo test --features="use_tokio"
.
Also run cargo build --examples --features="use_tokio"
as well as cargo bench -- --test --features="use_tokio"
to make sure everything still compiles
(replace use_tokio
by use_async-std
to do all the above with async-std
instead of tokio
).
As this is a fork of neovim-lib, it is licensed under the GNU Lesser General Public License v3.0.
IMPORTANT: All commits to this project, including all PRs, are dual-licensed under the Apache or MIT license. This is to allow the possibility of relicensing this project later.
Wherever applicable, this project follows the rust code of conduct.