mirror of
https://github.com/noib3/nvim-oxi.git
synced 2025-07-07 21:35:18 +00:00
chore: remove the __vendored_luajit
dependency, enable mlua/vendored
by default (#252)
This commit is contained in:
parent
1674fdc36b
commit
5057f0ab05
3 changed files with 22 additions and 13 deletions
24
.github/workflows/ci.yaml
vendored
24
.github/workflows/ci.yaml
vendored
|
@ -29,18 +29,13 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./.github/actions/install-msrv
|
- name: Install MSRV
|
||||||
|
uses: ./.github/actions/install-msrv
|
||||||
- name: Install Neovim ${{ matrix.neovim }}
|
- name: Install Neovim ${{ matrix.neovim }}
|
||||||
uses: rhysd/action-setup-vim@v1
|
uses: rhysd/action-setup-vim@v1
|
||||||
with:
|
with:
|
||||||
neovim: true
|
neovim: true
|
||||||
version: ${{ matrix.neovim }}
|
version: ${{ matrix.neovim }}
|
||||||
- name: Install libluajit (Linux)
|
|
||||||
if: runner.os == 'Linux'
|
|
||||||
run: sudo apt-get update && sudo apt-get install -y libluajit-5.1-dev
|
|
||||||
- name: Install libluajit (macOS)
|
|
||||||
if: runner.os == 'macOS'
|
|
||||||
run: brew install luajit
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: cargo test --workspace ${{ matrix.features }}
|
run: cargo test --workspace ${{ matrix.features }}
|
||||||
|
|
||||||
|
@ -49,10 +44,16 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: ./.github/actions/install-msrv
|
- name: Install MSRV with Clippy
|
||||||
|
uses: ./.github/actions/install-msrv
|
||||||
with:
|
with:
|
||||||
components: clippy
|
components: clippy
|
||||||
- run: cargo clippy --all-features --workspace --tests -- -D warnings
|
- run: >
|
||||||
|
cargo clippy
|
||||||
|
--features neovim-nightly,libuv,mlua,test,test-terminator
|
||||||
|
--workspace
|
||||||
|
--tests
|
||||||
|
-- -D warnings
|
||||||
|
|
||||||
docs:
|
docs:
|
||||||
name: docs
|
name: docs
|
||||||
|
@ -60,7 +61,10 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: dtolnay/rust-toolchain@nightly
|
- uses: dtolnay/rust-toolchain@nightly
|
||||||
- run: RUSTFLAGS="-D warnings" RUSTDOCFLAGS="--cfg docsrs" cargo doc --features neovim-nightly
|
- run: >
|
||||||
|
RUSTFLAGS="-D warnings"
|
||||||
|
RUSTDOCFLAGS="--cfg docsrs"
|
||||||
|
cargo doc --features neovim-nightly
|
||||||
|
|
||||||
format:
|
format:
|
||||||
name: format
|
name: format
|
||||||
|
|
|
@ -41,19 +41,23 @@ license.workspace = true
|
||||||
keywords.workspace = true
|
keywords.workspace = true
|
||||||
|
|
||||||
[package.metadata.docs.rs]
|
[package.metadata.docs.rs]
|
||||||
features = ["neovim-nightly", "libuv", "mlua", "test", "__vendored_luajit"]
|
default-features = false
|
||||||
|
features = ["__docsrs", "neovim-nightly", "libuv", "mlua", "test"]
|
||||||
rustdoc-args = ["--cfg", "docsrs"]
|
rustdoc-args = ["--cfg", "docsrs"]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
default = ["__no_docsrs"]
|
||||||
neovim-0-10 = ["api/neovim-0-10"]
|
neovim-0-10 = ["api/neovim-0-10"]
|
||||||
neovim-0-11 = ["api/neovim-0-10", "api/neovim-0-11"]
|
neovim-0-11 = ["api/neovim-0-10", "api/neovim-0-11"]
|
||||||
neovim-nightly = ["neovim-0-11", "api/neovim-nightly"]
|
neovim-nightly = ["neovim-0-11", "api/neovim-nightly"]
|
||||||
|
|
||||||
|
__docsrs = ["mlua?/vendored"]
|
||||||
|
__no_docsrs = ["mlua?/module"]
|
||||||
|
|
||||||
libuv = ["dep:libuv"]
|
libuv = ["dep:libuv"]
|
||||||
mlua = ["dep:mlua"]
|
mlua = ["dep:mlua"]
|
||||||
test = ["macros/test", "dep:cargo_metadata"]
|
test = ["macros/test", "dep:cargo_metadata"]
|
||||||
test-terminator = ["test", "libuv", "macros/test-terminator"]
|
test-terminator = ["test", "libuv", "macros/test-terminator"]
|
||||||
__vendored_luajit = ["mlua/vendored"]
|
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
api = { workspace = true }
|
api = { workspace = true }
|
||||||
|
|
|
@ -20,8 +20,9 @@ thiserror = { workspace = true }
|
||||||
[target.'cfg(not(any(target_os = "windows", target_env = "msvc")))'.dependencies]
|
[target.'cfg(not(any(target_os = "windows", target_env = "msvc")))'.dependencies]
|
||||||
nvim-oxi = { path = "..", features = ["libuv", "mlua", "test"] }
|
nvim-oxi = { path = "..", features = ["libuv", "mlua", "test"] }
|
||||||
|
|
||||||
|
# Enabling libuv will cause the build to fail on Windows.
|
||||||
[target.'cfg(any(target_os = "windows", target_env = "msvc"))'.dependencies]
|
[target.'cfg(any(target_os = "windows", target_env = "msvc"))'.dependencies]
|
||||||
nvim-oxi = { path = "..", features = ["mlua", "test", "__vendored_luajit"] }
|
nvim-oxi = { path = "..", features = ["mlua", "test"] }
|
||||||
|
|
||||||
[build-dependencies]
|
[build-dependencies]
|
||||||
nvim-oxi = { path = "..", features = ["test"] }
|
nvim-oxi = { path = "..", features = ["test"] }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue