rustpython-stdlib 0.5.0

RustPython standard libraries in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub(crate) use _md5::module_def;

#[pymodule]
mod _md5 {
    use crate::hashlib::_hashlib::{HashArgs, local_md5};
    use crate::vm::{PyPayload, PyResult, VirtualMachine};

    #[pyfunction]
    fn md5(args: HashArgs, vm: &VirtualMachine) -> PyResult {
        Ok(local_md5(args, vm)?.into_pyobject(vm))
    }
}