hydro_lang/
lib.rs

1#![cfg_attr(docsrs, feature(doc_cfg))]
2
3stageleft::stageleft_no_entry_crate!();
4
5pub use dfir_rs;
6pub use stageleft::q;
7
8#[doc(hidden)]
9pub mod runtime_support {
10    pub use {bincode, stageleft};
11    pub mod resource_measurement;
12}
13
14pub mod runtime_context;
15pub use runtime_context::RUNTIME_CONTEXT;
16
17pub mod boundedness;
18pub use boundedness::{Bounded, Unbounded};
19
20pub mod stream;
21pub use stream::{NoOrder, Stream, TotalOrder};
22
23pub mod singleton;
24pub use singleton::Singleton;
25
26pub mod optional;
27pub use optional::Optional;
28
29pub mod location;
30pub use location::cluster::CLUSTER_SELF_ID;
31pub use location::{Atomic, Cluster, ClusterId, ExternalProcess, Location, Process, Tick};
32
33#[cfg(feature = "build")]
34#[cfg_attr(docsrs, doc(cfg(feature = "build")))]
35pub mod deploy;
36
37pub mod deploy_runtime;
38
39pub mod cycle;
40
41pub mod builder;
42pub use builder::FlowBuilder;
43
44pub mod ir;
45
46pub mod rewrites;
47
48mod staging_util;
49
50#[cfg(feature = "deploy")]
51#[cfg_attr(docsrs, doc(cfg(feature = "build")))]
52pub mod test_util;
53
54#[cfg(test)]
55mod test_init {
56    #[ctor::ctor]
57    fn init() {
58        crate::deploy::init_test();
59    }
60}