Skip to main content

hydro_lang/compile/
mod.rs

1//! Hydro compilation: the Hydro IR, Hydro to DFIR translation, and traits for deployment targets.
2
3#[expect(missing_docs, reason = "TODO")]
4pub mod ir;
5
6#[cfg(feature = "build")]
7#[cfg_attr(docsrs, doc(cfg(feature = "build")))]
8#[expect(missing_docs, reason = "TODO")]
9pub mod built;
10
11#[cfg(feature = "build")]
12#[cfg_attr(docsrs, doc(cfg(feature = "build")))]
13#[expect(missing_docs, reason = "TODO")]
14pub mod compiled;
15
16#[cfg(feature = "build")]
17#[cfg_attr(docsrs, doc(cfg(feature = "build")))]
18#[expect(missing_docs, reason = "TODO")]
19pub mod deploy;
20
21#[cfg(feature = "build")]
22#[cfg_attr(docsrs, doc(cfg(feature = "build")))]
23pub mod embedded;
24
25#[cfg(feature = "build")]
26#[cfg_attr(docsrs, doc(cfg(feature = "build")))]
27#[expect(missing_docs, reason = "TODO")]
28pub mod deploy_provider;
29
30#[expect(missing_docs, reason = "TODO")]
31pub mod builder;
32
33#[cfg(stageleft_runtime)]
34#[cfg(feature = "trybuild")]
35#[cfg_attr(docsrs, doc(cfg(feature = "trybuild")))]
36#[expect(missing_docs, reason = "TODO")]
37#[cfg_attr(
38    not(any(feature = "deploy", feature = "sim", feature = "maelstrom")),
39    expect(
40        dead_code,
41        reason = "\"trybuild\" feature should be enabled by \"deploy\" / \"sim\" / \"maelstrom\""
42    )
43)]
44pub mod trybuild;
45
46#[cfg(stageleft_runtime)]
47#[cfg(feature = "trybuild")]
48#[cfg_attr(docsrs, doc(cfg(feature = "trybuild")))]
49pub use trybuild::generate::init_test;
50
51/// Ident used for the DFIR runtime instance variable name.
52#[cfg(feature = "build")]
53#[cfg_attr(docsrs, doc(cfg(feature = "build")))]
54pub(crate) const DFIR_IDENT: &str = "flow";