feat!: Add support for specifying rankdir on dot plots.#728
feat!: Add support for specifying rankdir on dot plots.#728ABorgna merged 3 commits intopetgraph:masterfrom
Conversation
|
This PR contains breaking changes to the public Rust API. cargo-semver-checks summary |
|
Hi @volodymyrd, please rebase and resolve conflicts. |
# Conflicts: # src/dot.rs
|
Hi @starovoid done |
starovoid
left a comment
There was a problem hiding this comment.
Please fix the following warning from clippy:
error: this URL is not a hyperlink
--> src/dot.rs:100:5
|
100 | /// https://graphviz.org/docs/attrs/rankdir/
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: bare URLs are not automatically turned into clickable links
= note: `-D rustdoc::bare-urls` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(rustdoc::bare_urls)]`
help: use an automatic link instead
|
100 | /// <https://graphviz.org/docs/attrs/rankdir/>
| + +
|
done |
Workflow uses more detailed checks: - name: Run clippy
# The benchmarks target require nightly,
# so we cannot use --all-targets here.
run: |
cargo clippy --all-features \
--lib --bins --examples --tests \
-- -D warnings
- name: Build docs
run: cargo doc --no-deps --all-features
env:
RUSTDOCFLAGS: "-Dwarnings" |
|
Finally, please squash all commits into new one to simplify commits history. git reset $(git merge-base master $(git branch --show-current))
git add -A
git commit -m "Add support for specifying rankdir on dot plots"
git push --force |
| #[doc(hidden)] | ||
| _Incomplete(()), |
There was a problem hiding this comment.
Since we're doing a breaking change adding this already, can you add #[non_exhaustive] to the enum?
And remove this workaround:
| #[doc(hidden)] | |
| _Incomplete(()), |
No need for that, the merge queue will automatically squash and rebase :) |
|
Should I merge the changes? |
|
Let's merge it, I'll add the enum flag in a separate PR |
Removes the TODO as mentioned in #728 BREAKING CHANGE: Marked `dot::Enum` as `non_exhaustive`
A sufficient number of proposed changes have accumulated to combine them and publish a new major release numbered `0.8.0`. BREAKING CHANGE: This will require the user to provide extra type parameter in some APIs (Read more in #747). ## List of changes - [x] #747 The main innovation of the current release, the long-awaited feature that has become very relevant due to the transition of dependent projects to support `no_std`. - [x] #662 - [x] #611 - [x] #728 - [x] #686 - [x] #737 - [x] #720 - [x] #718 ## Note There are still a large number of PRs that we want to adopt in the near future, so we should expect at least a release of `0.8.1` soon after the completion of `0.8.0`. Thank you all for participating! --------- Co-authored-by: Agustin Borgna <[email protected]>
Extends Config for rankdir support - direction of graph layout.
BREAKING CHANGE:
Add new variant of public enum
dot::Config.