Skip to main content

ballistics_engine/profile_export/
mod.rs

1//! Export of saved profiles into third-party ballistic profile files.
2//!
3//! Currently the ArcherBC2 `.a7p` format — the outbound half of
4//! [`crate::profile_import`], written from the same protobuf wire specification
5//! with no upstream schema files or code vendored (the a7p package as distributed
6//! is GPL-3.0, this crate is MIT OR Apache-2.0).
7//!
8//! Export is LOSSY in one direction the importer never had to worry about: a
9//! saved profile holds a good deal the format has no slot for. Every export
10//! therefore returns the bytes AND [`NotCarried`] — the full list of
11//! `ProfileData` fields that did not make it, and whether this particular
12//! profile had anything in them. See `a7p.rs`'s module doc for why the list is
13//! unconditional.
14
15mod a7p;
16mod wire;
17
18pub use a7p::{export_a7p, A7pExport, A7pExportError, NotCarried, CARRIED_FIELDS};