Function pkgcraft::dep::pkgcraft_dependency_parse

source ·
#[no_mangle]
pub unsafe extern "C" fn pkgcraft_dependency_parse(
    s: *const c_char,
    eapi: *const Eapi,
    kind: DependencySetKind,
) -> *mut Dependency
Expand description

Parse a string into a specified Dependency type.

Returns NULL on error.

§Safety

The argument should be a UTF-8 string.