Skip to main content

secunit_capture/
lib.rs

1//! `secunit-capture` — native upstream capturers (AWS, GitHub, dependency
2//! audits, generic HTTP).
3//!
4//! Every capturer writes a canonical envelope shaped
5//! `{ capturer, version, captured_at, args, result }` with sorted arrays,
6//! ISO-8601 UTC timestamps, and ephemeral fields (request ids, pagination
7//! tokens) stripped, so two runs of the same fixture round-trip
8//! byte-identically.
9
10pub mod canonical;
11pub mod schema;
12pub mod time;
13
14#[cfg(feature = "deps")]
15pub mod deps;
16
17#[cfg(feature = "github")]
18pub mod github;
19
20/// Compile-time list of features actually enabled in this build.
21pub fn enabled_features() -> &'static [&'static str] {
22    &[
23        #[cfg(feature = "aws")]
24        "aws",
25        #[cfg(feature = "github")]
26        "github",
27        #[cfg(feature = "deps")]
28        "deps",
29        #[cfg(feature = "http")]
30        "http",
31        #[cfg(feature = "gcp")]
32        "gcp",
33    ]
34}