bp7 0.4.6

Rust implementation of dtn bundle protocol 7 draft https://tools.ietf.org/html/draft-ietf-dtn-bpbis-20
Documentation
use bp7::primary;

#[test]
fn test_lifetime() {
    let p1 = primary::new_primary_block(
        "dtn:node1",
        "dtn:node2",
        bp7::dtntime::CreationTimestamp::now(),
        10,
    );
    assert!(!p1.is_lifetime_exceeded());

    let p2 = primary::new_primary_block(
        "dtn:node1",
        "dtn:node2",
        bp7::dtntime::CreationTimestamp::with_time_and_seq(0, 0),
        10,
    );
    assert!(p2.is_lifetime_exceeded());
}