Skip to main content

temporalio_common_wasm/
lib.rs

1#![warn(missing_docs)] // error if there are missing docs
2
3//! This crate contains the shared definitions and serialization/proto surface needed by the
4//! workflow authoring APIs, including WASM-targeted builds.
5
6#[allow(unused_imports)] // Not used by all flag combinations, which is fine.
7#[macro_use]
8extern crate tracing;
9
10mod activity_definition;
11pub mod data_converters;
12pub mod error;
13mod priority;
14pub mod protos {
15    //! Protobuf definitions re-exported from `temporalio-protos`.
16
17    pub use temporalio_protos::*;
18}
19pub mod worker;
20mod workflow_definition;
21
22pub use activity_definition::{ActivityDefinition, ActivityError};
23pub use priority::Priority;
24pub use worker::WorkerDeploymentVersion;
25pub use workflow_definition::{
26    HasWorkflowDefinition, QueryDefinition, SignalDefinition, UntypedWorkflow, UpdateDefinition,
27    WorkflowDefinition,
28};
29
30#[allow(unused_macros)]
31macro_rules! dbg_panic {
32  ($($arg:tt)*) => {
33      use tracing::error;
34      error!($($arg)*);
35      debug_assert!(false, $($arg)*);
36  };
37}
38#[allow(unused_imports)]
39pub(crate) use dbg_panic;