Skip to content

Update petgraph to 0.7. #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 18 additions & 52 deletions .github/workflows/daggy.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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:
Expand All @@ -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
19 changes: 19 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down