File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,9 @@ repository = "https://github.com/nikomatsakis/ena"
7
7
version = " 0.5.0"
8
8
authors = [
" Niko Matsakis <[email protected] >" ]
9
9
10
+ [features ]
11
+ congruence-closure = [ " petgraph" ]
12
+
10
13
[dependencies ]
11
14
log = " 0.3"
12
- petgraph = " 0.4.5"
15
+ petgraph = { version = " 0.4.5" , optional = true }
Original file line number Diff line number Diff line change
1
+ #![ cfg( feature = "congruence-closure" ) ]
2
+
1
3
//! An implementation of the Congruence Closure algorithm based on the
2
4
//! paper "Fast Decision Procedures Based on Congruence Closure" by Nelson
3
5
//! and Oppen, JACM 1980.
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- #![ feature( conservative_impl_trait) ]
11
+ // The CC code uses `impl Trait`
12
+ #![ cfg_attr( feature = "congruence-closure" , feature( conservative_impl_trait) ) ]
12
13
13
14
#[ macro_use]
14
15
extern crate log;
16
+
17
+ #[ cfg( feature = "congruence-closure" ) ]
15
18
extern crate petgraph;
16
19
17
20
pub mod snapshot_vec;
You can’t perform that action at this time.
0 commit comments