#[path = "support.rs"]
mod support;

pub use support::edifact_rs::{
    CompositeElement, Element, EdifactCompositeDeserialize, EdifactCompositeSerialize,
    EdifactDeserialize, EdifactError, EdifactEvent, EdifactSegmentTag, EdifactSerialize,
    EventEmitter, OwnedSegment, Segment, composite_element, find_qualified_segment,
    find_qualified_segment_owned, find_segment, find_segment_owned,
};

extern crate self as edifact_rs;

use edifact_rs_derive::{
    EdifactDeserialize as DeriveEdifactDeserialize,
    EdifactSerialize as DeriveEdifactSerialize,
};

#[derive(DeriveEdifactSerialize, DeriveEdifactDeserialize)]
#[edifact(segment = "RFF")]
struct RffSegment {
    #[edifact(element = 0, composite)]
    reference: Vec<String>,
}

fn main() {
    let _ = std::any::type_name::<RffSegment>();
}