mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-10 21:18:36 +00:00
Create dummy feature to fix clippy --all-features
This commit is contained in:
parent
43e2381c93
commit
9d34370989
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -47,7 +47,7 @@ jobs:
|
||||
${{ runner.os }}-target-lint-
|
||||
- run: cargo clippy --workspace --all-targets
|
||||
# supported winit versions
|
||||
- run: cargo clippy --manifest-path imgui-winit-support/Cargo.toml --features winit-19 --features winit-20 --features winit-22 --features winit-23/default --features winit-24/default --all-targets
|
||||
- run: cargo clippy --manifest-path imgui-winit-support/Cargo.toml --all-features --all-targets
|
||||
- run: cargo clippy --manifest-path imgui-winit-support/Cargo.toml --no-default-features --features winit-19 --all-targets
|
||||
- run: cargo clippy --manifest-path imgui-winit-support/Cargo.toml --no-default-features --features winit-20 --all-targets
|
||||
- run: cargo clippy --manifest-path imgui-winit-support/Cargo.toml --no-default-features --features winit-22 --all-targets
|
||||
|
||||
@ -18,7 +18,8 @@ winit-23 = { version = "0.23", package = "winit", default-features = false, opti
|
||||
winit-24 = { version = "0.24", package = "winit", default-features = false, optional = true }
|
||||
|
||||
[features]
|
||||
default = ["winit-25"]
|
||||
default = ["winit-24"]
|
||||
test = ["winit-23/default", "winit-24/default"]
|
||||
|
||||
# This is phrased as a negative (unlike most features) so that it needs to be
|
||||
# explicitly disabled (and `default-features = false` won't do it). To avoid
|
||||
|
||||
@ -41,7 +41,13 @@ fn lint_all() -> Result<()> {
|
||||
"cargo clippy --manifest-path imgui-winit-support/Cargo.toml --all-features --all-targets"
|
||||
)
|
||||
.run()?;
|
||||
let winits = &["winit-19", "winit-20", "winit-22", "winit-23", "winit-24"];
|
||||
let winits = &[
|
||||
"winit-19",
|
||||
"winit-20",
|
||||
"winit-22",
|
||||
"winit-23/default",
|
||||
"winit-24/default",
|
||||
];
|
||||
for &winit in winits {
|
||||
xshell::cmd!("cargo clippy --manifest-path imgui-winit-support/Cargo.toml --no-default-features --features {winit} --all-targets").run()?;
|
||||
}
|
||||
@ -52,7 +58,13 @@ fn lint_all() -> Result<()> {
|
||||
fn test_all() -> Result<()> {
|
||||
xshell::cmd!("cargo test --workspace --all-targets").run()?;
|
||||
xshell::cmd!("cargo test --workspace --doc").run()?;
|
||||
let winits = &["winit-19", "winit-20", "winit-22", "winit-23", "winit-24"];
|
||||
let winits = &[
|
||||
"winit-19",
|
||||
"winit-20",
|
||||
"winit-22",
|
||||
"winit-23/default",
|
||||
"winit-24/default",
|
||||
];
|
||||
for &winit in winits {
|
||||
xshell::cmd!("cargo test --manifest-path imgui-winit-support/Cargo.toml --no-default-features --features {winit} --all-targets").run()?;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user