Skip to content

Commit 5ba40cf

Browse files
committed
Fix CI and examples
1 parent c785111 commit 5ba40cf

File tree

11 files changed

+62
-84
lines changed

11 files changed

+62
-84
lines changed

.github/workflows/test.yml

+50-47
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ name: Test
33
on:
44
push:
55
branches:
6-
- master
7-
- staging
8-
- trying
6+
- master
7+
- staging
8+
- trying
99
pull_request:
1010
paths:
11-
- '**.rs'
12-
- '**/Cargo.*'
13-
- '.github/workflows/**.yml'
14-
- 'salsa-2022-tests/tests/compile-fail/**.stderr'
11+
- "**.rs"
12+
- "**/Cargo.*"
13+
- ".github/workflows/**.yml"
14+
- "tests/compile-fail/**.stderr"
1515
merge_group:
1616

1717
jobs:
@@ -20,52 +20,52 @@ jobs:
2020
strategy:
2121
matrix:
2222
rust:
23-
- stable
24-
- beta
23+
- stable
24+
- beta
2525
experimental:
26-
- false
26+
- false
2727
include:
28-
- rust: nightly
29-
experimental: true
28+
- rust: nightly
29+
experimental: true
3030
continue-on-error: ${{ matrix.experimental }}
3131
runs-on: ubuntu-latest
3232
steps:
33-
- name: Checkout
34-
uses: actions/checkout@v2
35-
- name: Setup Rust toolchain
36-
uses: actions-rs/toolchain@v1
37-
with:
38-
toolchain: ${{ matrix.rust }}
39-
components: rustfmt, clippy
40-
default: true
41-
- name: Format
42-
uses: actions-rs/cargo@v1
43-
with:
44-
command: fmt
45-
args: -- --check
46-
- name: Clippy
47-
uses: actions-rs/cargo@v1
48-
with:
49-
command: clippy
50-
args: --all-features --all-targets --all
51-
- name: Test
52-
uses: actions-rs/cargo@v1
53-
with:
54-
command: test
55-
args: --all-features --all-targets --all
56-
- name: Test docs
57-
uses: actions-rs/cargo@v1
58-
with:
59-
command: test
60-
args: --doc
61-
- name: Check (without default features)
62-
uses: actions-rs/cargo@v1
63-
with:
64-
command: check
65-
args: --no-default-features
33+
- name: Checkout
34+
uses: actions/checkout@v2
35+
- name: Setup Rust toolchain
36+
uses: actions-rs/toolchain@v1
37+
with:
38+
toolchain: ${{ matrix.rust }}
39+
components: rustfmt, clippy
40+
default: true
41+
- name: Format
42+
uses: actions-rs/cargo@v1
43+
with:
44+
command: fmt
45+
args: -- --check
46+
- name: Clippy
47+
uses: actions-rs/cargo@v1
48+
with:
49+
command: clippy
50+
args: --all-features --all-targets --workspace
51+
- name: Test
52+
uses: actions-rs/cargo@v1
53+
with:
54+
command: test
55+
args: --all-features --all-targets --workspace
56+
- name: Test docs
57+
uses: actions-rs/cargo@v1
58+
with:
59+
command: test
60+
args: --doc
61+
- name: Check (without default features)
62+
uses: actions-rs/cargo@v1
63+
with:
64+
command: check
65+
args: --no-default-features
6666

6767
miri:
68-
name: "Miri"
68+
name: Miri
6969
runs-on: ubuntu-latest
7070
steps:
7171
- uses: actions/checkout@v3
@@ -75,4 +75,7 @@ jobs:
7575
rustup override set nightly
7676
cargo miri setup
7777
- name: Test with Miri
78-
run: cargo miri test --no-fail-fast -p salsa-2022 -p salsa-2022-tests -p calc -p lazy-input
78+
run: cargo miri test --no-fail-fast
79+
- name: Run examples with Miri
80+
run: |
81+
cargo miri run --example calc

Cargo.toml

+11-7
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,29 @@ repository = "https://github.com/salsa-rs/salsa"
88
description = "A generic framework for on-demand, incrementalized computation (experimental)"
99

1010
[dependencies]
11+
arc-swap = "1.6.0"
1112
crossbeam = "0.8.1"
13+
crossbeam-utils = { version = "0.8", default-features = false }
1214
dashmap = "5.3.4"
13-
rustc-hash = "1.1.0"
14-
indexmap = "2"
1515
hashlink = "0.8.0"
16-
arc-swap = "1.6.0"
17-
crossbeam-utils = { version = "0.8", default-features = false }
16+
indexmap = "2"
1817
log = "0.4.5"
1918
parking_lot = "0.12.1"
20-
smallvec = "1.0.0"
19+
rustc-hash = "1.1.0"
2120
salsa-macros = { path = "components/salsa-macros" }
21+
smallvec = "1.0.0"
2222

2323
[dev-dependencies]
24+
derive-new = "0.5.9"
25+
env_logger = "*"
2426
expect-test = "1.4.0"
27+
eyre = "0.6.8"
28+
notify-debouncer-mini = "0.2.1"
29+
ordered-float = "3.0"
2530
parking_lot = "0.12.1"
31+
rustversion = "1.0"
2632
test-log = "0.2.11"
27-
env_logger = "*"
2833
trybuild = "1.0"
29-
rustversion = "1.0"
3034

3135
[workspace]
3236
members = ["components/salsa-macros"]

examples/calc/Cargo.toml

-15
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

examples/lazy-input/Cargo.toml

-14
This file was deleted.

examples/lazy-input/src/main.rs renamed to examples/lazy-input/main.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::{path::PathBuf, sync::Mutex, time::Duration};
22

3-
use crossbeam_channel::{unbounded, Sender};
3+
use crossbeam::channel::{unbounded, Sender};
44
use dashmap::{mapref::entry::Entry, DashMap};
55
use eyre::{eyre, Context, Report, Result};
66
use notify_debouncer_mini::{

0 commit comments

Comments
 (0)