Skip to content

Commit b97a87e

Browse files
committed
Add nightly containing package
1 parent 0495ce6 commit b97a87e

6 files changed

Lines changed: 33 additions & 8 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,6 @@ jobs:
162162
163163
cargo test --all-features --workspace --exclude cargo-dylint --exclude expensive --exclude scheduled -- --nocapture
164164
165-
pushd driver
166-
cargo test --all-features -- --nocapture
167-
popd
168-
169-
pushd utils/linting
170-
cargo test --all-features -- --nocapture
171-
popd
172-
173165
# smoelius: The `cdylib` -> `lib` trick is due to @MinerSebas.
174166
for X in examples/*/*; do
175167
if [[ ! -d "$X" ]]; then

Cargo.lock

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ members = [
1010
"examples",
1111
"expensive",
1212
"internal",
13+
"nightly",
1314
# "internal/template",
1415
"scheduled",
1516
# "utils/linting",

nightly/Cargo.toml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[package]
2+
name = "nightly"
3+
description = "Containing package for Dylint workspaces requiring a nightly toolchain"
4+
version = "4.1.0"
5+
edition = "2024"
6+
publish = false
7+
8+
[build-dependencies]
9+
nested_workspace = { workspace = true }
10+
11+
[dev-dependencies]
12+
nested_workspace = { workspace = true }
13+
14+
[lints]
15+
workspace = true
16+
17+
[package.metadata.nested_workspace]
18+
roots = ["../driver", "../internal/template", "../utils/linting"]

nightly/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
nested_workspace::build().unwrap();
3+
}

nightly/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#[test]
2+
fn nested_workspace() {
3+
nested_workspace::test().unwrap();
4+
}

0 commit comments

Comments
 (0)