From 3d65388b53ef185c2ed8dc44f9640af89c3fea91 Mon Sep 17 00:00:00 2001 From: Azriel Hoh Date: Mon, 6 Jan 2025 19:00:20 +1300 Subject: [PATCH 1/5] Update petgraph to `0.7`. --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] From 2e633ae1fffa6c06f6f2d560110222cfe75b9869 Mon Sep 17 00:00:00 2001 From: Azriel Hoh Date: Thu, 20 Feb 2025 20:13:26 +1300 Subject: [PATCH 2/5] Update links. --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)] From 2f4203045499a8698715ab096dec467c3daf9721 Mon Sep 17 00:00:00 2001 From: Azriel Hoh Date: Thu, 20 Feb 2025 20:24:05 +1300 Subject: [PATCH 3/5] Update github actions' versions. --- .github/workflows/daggy.yml | 52 +++++++++---------------------------- 1 file changed, 12 insertions(+), 40 deletions(-) diff --git a/.github/workflows/daggy.yml b/.github/workflows/daggy.yml index 5e148e0..c940bdf 100644 --- a/.github/workflows/daggy.yml +++ b/.github/workflows/daggy.yml @@ -4,13 +4,10 @@ jobs: 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 +18,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,34 +29,17 @@ 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 + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - run: cargo doc --no-deps cargo-publish: if: github.event_name == 'push' && github.ref == 'refs/heads/master' @@ -72,13 +47,10 @@ jobs: CRATESIO_TOKEN: ${{ secrets.CRATESIO_TOKEN }} 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 - name: cargo publish daggy continue-on-error: true run: cargo publish --token $CRATESIO_TOKEN From b5997ca7e278277a62f596254ee670e9acf6cc83 Mon Sep 17 00:00:00 2001 From: Azriel Hoh Date: Thu, 20 Feb 2025 20:26:27 +1300 Subject: [PATCH 4/5] Add `audit` job in github actions daggy workflow. --- .github/workflows/daggy.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/daggy.yml b/.github/workflows/daggy.yml index c940bdf..088dcc7 100644 --- a/.github/workflows/daggy.yml +++ b/.github/workflows/daggy.yml @@ -1,6 +1,14 @@ 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: From 0b4512f0b5b96ffdbaa94e5ee6547808c9971972 Mon Sep 17 00:00:00 2001 From: Azriel Hoh Date: Thu, 20 Feb 2025 20:30:17 +1300 Subject: [PATCH 5/5] Move crate publishing to `publish.yml` workflow. This moves publishing to only happen on tags instead of on merge to `master`. --- .github/workflows/daggy.yml | 14 -------------- .github/workflows/publish.yml | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/daggy.yml b/.github/workflows/daggy.yml index 088dcc7..11989b9 100644 --- a/.github/workflows/daggy.yml +++ b/.github/workflows/daggy.yml @@ -48,17 +48,3 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@stable - run: cargo doc --no-deps - - 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@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/.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