-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat!: HugrView API improvements #680
Merged
+664
−251
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
cd5e544
refactor!: move non_df_count to OpTrait
ss2165 2b1bd37
fix: builder `call` port calculation incorrect
ss2165 b959e16
refactor!: remove `static_input`
ss2165 29350ee
refactor!: clearer OpType port/kind method names
ss2165 7477cea
feat: iterator over all ports connected to node
ss2165 e6cc8e1
feat: `static_source` for getting static source node
ss2165 11ef7ba
refactor!: rename `FunctionType::get` -> `FunctionType::port_type`
ss2165 0437efc
feat: add `in/out_port_type` to `FunctionType`
ss2165 47d4646
feat: `HugrView::signature(Node)` and port+type iterators
ss2165 2ffd29a
feat: single_source/target for when you know only one connected port
ss2165 da9aea8
feat: `static_targets` and `OpType::static_output_port`
ss2165 b2a2ae0
feat: `dataflow_ports_only` function to filter node-ports
ss2165 b4db711
refactor!: OpType::signature returns option (non-dataflow ops don't r…
ss2165 39e1490
refactor!: OpType::signature returns option (non-dataflow ops don't r…
ss2165 89e1f26
Merge branch 'temp' into feat/more-hugrview
ss2165 b1db6cc
refactor: impl DataFlowOpTrait for LeafOp and use dataflow_signature
ss2165 1677014
feat: use macro for OpType reference casting to inner
ss2165 5fd1035
refactor: use enum to simplify optype pattern matches
ss2165 09844a1
chore: remove paste from dev-dependencies
ss2165 b124160
feat: `all_linked_ports`
ss2165 328ce45
address minor review comments
ss2165 44cb5b0
feat!: single_linked_port, single_linked_input, single_linked_output
ss2165 f7bfb46
refactor!: allow chaining with `dataflow_ports_only`
ss2165 920880e
feat!: parametric all_linked_ports
ss2165 2d1e47c
refactor: simpler static_input_port
ss2165 7ea609a
refactor: remove uncessary trait impls for ExternalOp
ss2165 37ceea8
simplify static i/o tags
ss2165 d31794d
refactor: nicer code in `signature.rs`
ss2165 4636bf7
refactor!: swap `signature` and `dataflow_signature`
ss2165 0a6bb8a
refactor!: `non_df_port_count` just returns usize
ss2165 9556156
Merge branch 'main' into feat/more-hugrview
ss2165 f091b5a
fix: put correct compile flags in
ss2165 451ce23
fix doclinks
ss2165 c1822db
Merge branch 'main' into feat/more-hugrview
ss2165 65ed37a
Merge branch 'main' into feat/more-hugrview
ss2165 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,8 @@ petgraph = { version = "0.6.3", default-features = false } | |
context-iterators = "0.2.0" | ||
serde_json = "1.0.97" | ||
delegate = "0.10.0" | ||
rustversion = "1.0.14" | ||
paste = "1.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I continue my brazen injecting of dtolnay crates There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note this one is already in |
||
|
||
[features] | ||
pyo3 = ["dep:pyo3"] | ||
|
@@ -61,7 +63,6 @@ rmp-serde = "1.1.1" | |
webbrowser = "0.8.10" | ||
urlencoding = "2.1.2" | ||
cool_asserts = "2.0.3" | ||
paste = "1.0" | ||
insta = { version = "1.34.0", features = ["yaml"] } | ||
|
||
[[bench]] | ||
|
@@ -71,4 +72,4 @@ harness = false | |
|
||
[profile.dev.package] | ||
insta.opt-level = 3 | ||
similar.opt-level = 3 | ||
similar.opt-level = 3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spicy nightly crimes...
This is alright for now, but we should not publish the crate until 1.75 is stable, and this can be removed.