Simplify a bit the test dependencies

So compiling the tests can be a bit faster
This commit is contained in:
Olivier Goffart 2022-02-15 10:37:08 +01:00
parent 7a7a21ca54
commit 0ba3a14f8a
4 changed files with 5 additions and 4 deletions

View file

@ -89,7 +89,7 @@ Some macro like `assert_eq` are defined to look similar o the rust equivalent.
To run the test, you must make sure to first build the slint-cpp shared library:
```
cargo build --lib -p slint-cpp --features testing && cargo test -p test-driver-cpp --
cargo build --lib -p slint-cpp --features testing --no-default-features && cargo test -p test-driver-cpp --
```
You can omit the first part that compiles slint-cpp if you only want to test the compiler and

View file

@ -14,7 +14,7 @@ path = "main.rs"
name = "test-driver-cpp"
[dependencies]
slint-cpp = { path = "../../../api/cpp", features = ["testing"] }
slint-cpp = { path = "../../../api/cpp", default-features = false, features = ["testing"] }
[dev-dependencies]
i-slint-compiler = { path = "../../../internal/compiler", features = ["cpp", "display-diagnostics"] }

View file

@ -15,7 +15,8 @@ name = "test-driver-nodejs"
[dev-dependencies]
test_driver_lib = { path = "../driverlib" }
slint-node = { path = "../../../api/node/native" }
# Require `artifact` dependencies tracked by rust RFC 3028
#slint-node = { path = "../../../api/node/native", artifact = ["cdylib"] }
lazy_static = "1.4.0"
which = "4.0.2"
tempfile = "3.2"

View file

@ -17,7 +17,7 @@ name = "test-driver-rust"
build-time = ["i-slint-compiler", "spin_on"]
[dependencies]
slint = { path = "../../../api/rs/slint" }
slint = { path = "../../../api/rs/slint", default-features = false, features = ["std", "compat-0-2-0"] }
i-slint-backend-testing = { path = "../../../internal/backends/testing" }
[build-dependencies]