Skip to main content

treetop_bundle/
lib.rs

1//! Compile, validate, sign, and load deterministic Treetop policy bundles.
2
3mod archive;
4mod builder;
5mod diagnostic;
6mod error;
7mod labels;
8mod manifest;
9mod signing;
10mod validation;
11
12pub use archive::{ArchiveLimits, BundleArchive, ValidatedBundle, VerifiedSignature};
13pub use builder::BundleBuilder;
14pub use diagnostic::{Diagnostic, DiagnosticSeverity};
15pub use error::{BundleError, Result};
16pub use labels::{LabelPattern, LabelRule, LabelSet};
17pub use manifest::{BundleManifest, ModuleManifest, ModuleRole, ModuleSelection};
18pub use signing::{BundleSignature, SignaturePolicy, SigningKey, TrustStore, TrustedKey};
19pub use validation::{PolicyCheck, check_module, check_policy};
20
21/// The archive format emitted and accepted by this crate.
22pub const FORMAT_VERSION: u32 = 1;
23
24/// The exact Cedar version used to compile bundles.
25pub const CEDAR_VERSION: &str = "4.12.0";
26
27/// The exact Treetop core version used to prepare policy engines.
28pub const TREETOP_CORE_VERSION: &str = "0.0.21";