Skip to content

Commit 419387d

Browse files
Make polonius_souffle an optional dependency
1 parent a773433 commit 419387d

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

polonius-engine/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ keywords = ["compiler", "borrowck", "datalog"]
1111
[dependencies]
1212
datafrog = { path = "../../datafrog" }
1313
polonius-facts = { path = "../polonius-facts" }
14-
polonius-souffle = { path = "../polonius-souffle" }
14+
polonius-souffle = { path = "../polonius-souffle", optional = true }
1515
rustc-hash = "1.0.0"
1616
log = "0.4"

polonius-engine/src/output/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ impl<T: FactTypes> Output<T> {
187187
/// partial results can also be stored in the context, so that the following
188188
/// variant can use it to prune its own input data
189189
pub fn compute(all_facts: &AllFacts<T>, algorithm: Algorithm, dump_enabled: bool) -> Self {
190+
#[cfg(polonius_souffle)]
190191
if algorithm.engine() == Engine::Souffle {
191192
let name = algorithm.souffle_name().expect("Algorithm does not have Soufflé version");
192193
let facts = polonius_souffle::run_from_facts(name, &all_facts);

0 commit comments

Comments
 (0)