rust/hg-cpython/src/lib.rs
changeset 48042 1194394510ba
parent 47981 8f031a274cd6
child 48930 7b068abe4aa2
equal deleted inserted replaced
48041:a83e24c3af6b 48042:1194394510ba
    33 pub mod dagops;
    33 pub mod dagops;
    34 pub mod debug;
    34 pub mod debug;
    35 pub mod dirstate;
    35 pub mod dirstate;
    36 pub mod discovery;
    36 pub mod discovery;
    37 pub mod exceptions;
    37 pub mod exceptions;
    38 pub mod parsers;
       
    39 mod pybytes_deref;
    38 mod pybytes_deref;
    40 pub mod revlog;
    39 pub mod revlog;
    41 pub mod utils;
    40 pub mod utils;
    42 
    41 
    43 py_module_initializer!(rustext, initrustext, PyInit_rustext, |py, m| {
    42 py_module_initializer!(rustext, initrustext, PyInit_rustext, |py, m| {
    57         copy_tracing::init_module(py, &dotted_name)?,
    56         copy_tracing::init_module(py, &dotted_name)?,
    58     )?;
    57     )?;
    59     m.add(py, "discovery", discovery::init_module(py, &dotted_name)?)?;
    58     m.add(py, "discovery", discovery::init_module(py, &dotted_name)?)?;
    60     m.add(py, "dirstate", dirstate::init_module(py, &dotted_name)?)?;
    59     m.add(py, "dirstate", dirstate::init_module(py, &dotted_name)?)?;
    61     m.add(py, "revlog", revlog::init_module(py, &dotted_name)?)?;
    60     m.add(py, "revlog", revlog::init_module(py, &dotted_name)?)?;
    62     m.add(
       
    63         py,
       
    64         "parsers",
       
    65         parsers::init_parsers_module(py, &dotted_name)?,
       
    66     )?;
       
    67     m.add(py, "GraphError", py.get_type::<exceptions::GraphError>())?;
    61     m.add(py, "GraphError", py.get_type::<exceptions::GraphError>())?;
    68     Ok(())
    62     Ok(())
    69 });
    63 });
    70 
    64 
    71 #[cfg(not(any(feature = "python27-bin", feature = "python3-bin")))]
    65 #[cfg(not(any(feature = "python27-bin", feature = "python3-bin")))]