equal
deleted
inserted
replaced
26 |
26 |
27 pub mod ancestors; |
27 pub mod ancestors; |
28 mod cindex; |
28 mod cindex; |
29 mod conversion; |
29 mod conversion; |
30 pub mod dagops; |
30 pub mod dagops; |
|
31 pub mod discovery; |
31 pub mod exceptions; |
32 pub mod exceptions; |
32 |
33 |
33 py_module_initializer!(rustext, initrustext, PyInit_rustext, |py, m| { |
34 py_module_initializer!(rustext, initrustext, PyInit_rustext, |py, m| { |
34 m.add( |
35 m.add( |
35 py, |
36 py, |
38 )?; |
39 )?; |
39 |
40 |
40 let dotted_name: String = m.get(py, "__name__")?.extract(py)?; |
41 let dotted_name: String = m.get(py, "__name__")?.extract(py)?; |
41 m.add(py, "ancestor", ancestors::init_module(py, &dotted_name)?)?; |
42 m.add(py, "ancestor", ancestors::init_module(py, &dotted_name)?)?; |
42 m.add(py, "dagop", dagops::init_module(py, &dotted_name)?)?; |
43 m.add(py, "dagop", dagops::init_module(py, &dotted_name)?)?; |
|
44 m.add(py, "discovery", discovery::init_module(py, &dotted_name)?)?; |
43 m.add(py, "GraphError", py.get_type::<exceptions::GraphError>())?; |
45 m.add(py, "GraphError", py.get_type::<exceptions::GraphError>())?; |
44 Ok(()) |
46 Ok(()) |
45 }); |
47 }); |