Skip to content

Commit

Permalink
test: refactor sat resolver clauses computation
Browse files Browse the repository at this point in the history
Add new intermediate boolean variables for each dependency and each dependency feature declared in a package.
This is used to simplify computation of the sat clauses.

Add support for multiple dependencies with the same name, if their kind or target is different.

A non-weak dependency feature for an optional dependency now activates a feature of the same name in the sat resolver.
  • Loading branch information
x-hgg-x committed Oct 8, 2024
1 parent 04e4270 commit 870f6d3
Show file tree
Hide file tree
Showing 4 changed files with 615 additions and 134 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/resolver-tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ publish = false

[dependencies]
cargo.workspace = true
cargo-platform.workspace = true
cargo-util-schemas.workspace = true
cargo-util.workspace = true
proptest.workspace = true
Expand Down
Loading

0 comments on commit 870f6d3

Please sign in to comment.