alpkit 0.1.0-pre.2

A library for reading metadata from the APKv2 package format and APKBUILD.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub(crate) use assert2::{assert, let_assert as assert_let};

use crate::dependency::Dependency;

macro_rules! S {
    ($s:expr) => {
        String::from($s)
    };
}
pub(crate) use S;

pub(crate) fn dependency(s: &str) -> Dependency {
    s.parse()
        .unwrap_or_else(|_| panic!("invalid dependency string: `{}`", s))
}