Module profile_import

Module profile_import 

Source
Expand description

Import of third-party ballistic profile files.

Currently supports the ArcherBC2 .a7p format (MD5-hex envelope + proto3 payload). The wire format is implemented here from the protobuf wire specification for interoperability; no upstream schema files or code are vendored (the a7p project is LGPL-3.0, this crate is MIT OR Apache-2.0).

Structs§

A7pDocument
A7pImportOutcome
A7pProfile
ImportReport
Everything profile import produced: the profile to save plus the honest account of what mapped, what did not, and why.
UnknownField

Enums§

A7pBcType
A7pError
EnvelopeStatus

Functions§

map_a7p_to_profile
parse_a7p
sanitize_profile_name
Restrict imported profile names to characters that are safe as file names in the profile store (~/.ballistics/profiles/<name>.json).
wrap_payload
Wrap a serialized Payload in the .a7p envelope (MD5 hex prefix). The inverse of the envelope check in parse_a7p; used by tests today and by .a7p export later.