diff --git a/.github/workflows/daggy.yml b/.github/workflows/daggy.yml index 5e148e0..11989b9 100644 --- a/.github/workflows/daggy.yml +++ b/.github/workflows/daggy.yml @@ -1,16 +1,21 @@ name: daggy on: [push, pull_request] jobs: + audit: + name: Audit + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - uses: actions/checkout@v4 + - uses: actions-rust-lang/audit@v1 + rustfmt-check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Install stable - uses: actions-rs/toolchain@v1 + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@master with: - profile: minimal toolchain: stable - override: true components: rustfmt - name: Run rustfmt uses: actions-rs/cargo@v1 @@ -21,13 +26,8 @@ jobs: cargo-test: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Install stable - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable - name: cargo test uses: actions-rs/cargo@v1 with: @@ -37,48 +37,14 @@ jobs: cargo-test-all-features: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Install stable - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable - name: cargo test all features - uses: actions-rs/cargo@v1 - with: - command: test - args: --all-features --verbose + run: cargo test --all-features cargo-doc-all-features: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Install stable - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - name: cargo doc - uses: actions-rs/cargo@v1 - with: - command: doc - args: --all-features --verbose - - cargo-publish: - if: github.event_name == 'push' && github.ref == 'refs/heads/master' - env: - CRATESIO_TOKEN: ${{ secrets.CRATESIO_TOKEN }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: Install stable - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - - name: cargo publish daggy - continue-on-error: true - run: cargo publish --token $CRATESIO_TOKEN + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - run: cargo doc --no-deps diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..284e70f --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,19 @@ +name: publish +on: + push: + tags: + - '*' + +jobs: + cargo-publish: + env: + CRATESIO_TOKEN: ${{ secrets.CRATESIO_TOKEN }} + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + - name: cargo publish daggy + continue-on-error: true + run: cargo publish --token $CRATESIO_TOKEN diff --git a/Cargo.toml b/Cargo.toml index 55cfb7c..2fe3906 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ homepage = "https://github.com/mitchmindtree/daggy" edition = "2018" [dependencies] -petgraph = { version = "0.6", default-features = false } +petgraph = { version = "0.7", default-features = false } serde = { version = "1.0", optional = true } [features] diff --git a/src/lib.rs b/src/lib.rs index ffe1f6d..1d959d3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -10,9 +10,9 @@ //! graph whilst we traverse it. //! //! -//! [1]: ./struct.Dag.html -//! [2]: https://docs.rs/petgraph/0.4/petgraph/ -//! [3]: https://docs.rs/petgraph/0.4/petgraph/graph/struct.Graph.html +//! [1]: https://docs.rs/daggy/latest/daggy/struct.Dag.html +//! [2]: https://docs.rs/petgraph/0.7.1/petgraph/ +//! [3]: https://docs.rs/petgraph/0.7.1/petgraph/graph/struct.Graph.html #![forbid(unsafe_code)] #![warn(missing_docs)]