feat(mavlink): adopt the kaptan-native dialect
This commit is contained in:
1 parent
1c90870634
commit
5f91465e66
87 files changed
+7733
-6850
No files matched your search
@@ -1,16 +1,18 @@
|
||||
//! Runtime-configuration primitives shared by vehicle-specific schemas.
|
||||
//!
|
||||
//! This crate has no knowledge of MAVLink, filesystems, board routing, motors,
|
||||
//! or a particular airframe. It owns the staged-versus-active lifecycle and
|
||||
//! or a particular airframe. It owns the committed-versus-active lifecycle and
|
||||
//! parameter metadata; vehicle crates provide the typed schema and complete
|
||||
//! validation. Persistence framing and transports remain separate adapters;
|
||||
//! this crate provides only the bounded scalar snapshot payload shared by
|
||||
//! storage backends.
|
||||
//! validation. It also owns the canonical public KCFG artifact and the compact
|
||||
//! private scalar snapshot. Transport and storage framing remain separate
|
||||
//! adapters.
|
||||
|
||||
#![no_std]
|
||||
|
||||
extern crate self as kaptan_config;
|
||||
|
||||
mod artifact;
|
||||
mod checksum;
|
||||
pub mod error;
|
||||
pub mod field;
|
||||
pub mod journal;
|
||||
@@ -19,16 +21,20 @@ pub mod snapshot;
|
||||
pub mod storage;
|
||||
pub mod validation;
|
||||
|
||||
pub use artifact::{
|
||||
KcfgArtifact, KcfgDecodeError, KcfgEncodeError, KcfgEnumOption, KcfgEnumOptions,
|
||||
KcfgExportPlan, KcfgExporter, KcfgField, KcfgFields, KcfgImporter, KcfgResultDetail,
|
||||
decode_kcfg, encode_edited_kcfg, kcfg_length,
|
||||
};
|
||||
pub use error::{ConfigViolation, ValidationRule};
|
||||
pub use field::{
|
||||
ConfigModel, ConfigScalar, ConfigValue, EnumOption, FieldDescriptor, FieldId, FieldWriteError,
|
||||
MAX_ENUM_OPTION_LABEL_BYTES, MAX_ENUM_OPTIONS_PER_FIELD, ScalarValueError, ValueKind,
|
||||
ConfigModel, ConfigScalar, ConfigValue, FieldDescriptor, FieldId, FieldWriteError,
|
||||
ScalarValueError, ValueKind,
|
||||
};
|
||||
pub use journal::{DualSlotJournal, DualSlotNor, JournalError};
|
||||
pub use kaptan_config_derive::{Config, ConfigEnum};
|
||||
pub use lifecycle::{BeginError, CommitError, ConfigManager, ConfigState, SetError, StartupError};
|
||||
pub use lifecycle::{ConfigManager, ReplaceError, ReplaceOutcome, StartupError};
|
||||
pub use snapshot::{
|
||||
SCALAR_SNAPSHOT_ENTRY_LENGTH, SCALAR_SNAPSHOT_HEADER_LENGTH, SCALAR_SNAPSHOT_VERSION,
|
||||
ScalarSnapshotDecodeError, ScalarSnapshotEncodeError, SnapshotModelError,
|
||||
decode_scalar_snapshot, encode_scalar_snapshot, scalar_snapshot_length,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user