Skip to content
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

chore: update deps #247

Merged
merged 3 commits into from
Nov 20, 2023
Merged

chore: update deps #247

merged 3 commits into from
Nov 20, 2023

Conversation

aborgna-q
Copy link
Collaborator

@aborgna-q aborgna-q commented Nov 17, 2023

  • Updates the API changes introduced in feat!: HugrView API improvements hugr#680
  • Uses the latest published portmatching instead of a git dependency
  • Moves the lint configuration to the workspace Cargo.toml (new to rust 1.74)
    This throws warnings in older rust versions due to the unrecognised fields, but works alright.

@aborgna-q aborgna-q requested a review from ss2165 November 17, 2023 12:30
Copy link

codecov bot commented Nov 17, 2023

Codecov Report

Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (feef643) 82.57% compared to head (8f17f42) 82.54%.

Files Patch % Lines
tket2/src/json/op.rs 77.77% 2 Missing ⚠️
tket2/src/circuit/command.rs 50.00% 1 Missing ⚠️
tket2/src/circuit/units.rs 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #247      +/-   ##
==========================================
- Coverage   82.57%   82.54%   -0.04%     
==========================================
  Files          34       34              
  Lines        4242     4246       +4     
  Branches     4143     4147       +4     
==========================================
+ Hits         3503     3505       +2     
- Misses        553      554       +1     
- Partials      186      187       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@ss2165 ss2165 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we need a HugrView::get_dataflow_op(Node) -> Box<dyn DataflowOpTrait> thingemy

@@ -1,6 +1,4 @@
//! Python bindings for TKET2.
#![warn(missing_docs)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this inherited now?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that's the

[lints]
workspace = true

in Cargo.toml (since rust 1.74)

num_bits += 1
} else if ty == &FLOAT64_TYPE {
num_params += 1
if let Some(sig) = op.dataflow_signature() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not for this PR but we might be able to use op: & impl DataflowOpTrait in this function instead

@aborgna-q aborgna-q added this pull request to the merge queue Nov 20, 2023
Merged via the queue into main with commit 4ff3603 Nov 20, 2023
12 checks passed
@aborgna-q aborgna-q deleted the chore/update-deps branch November 20, 2023 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants