daml_macro/lib.rs
1//! Helper macros for working with the [Daml GRPC Ledger API](::daml_grpc)
2//!
3//! Provides a [`daml_value!`] macro to simplify the construction of [`DamlValue`](daml_grpc::data::value::DamlValue)
4//! literals and a [`daml_path!`] macro to simplify the extraction of data from existing
5//! [`DamlRecord`](daml_grpc::data::value::DamlRecord) & [`DamlValue`](daml_grpc::data::value::DamlValue) literals.
6
7#![warn(clippy::all, clippy::pedantic, clippy::nursery, rust_2018_idioms)]
8#![allow(clippy::module_name_repetitions, clippy::shadow_unrelated, clippy::unit_cmp)]
9#![forbid(unsafe_code)]
10#![doc(html_favicon_url = "https://docs.daml.com/_static/images/favicon/favicon-32x32.png")]
11#![doc(html_logo_url = "https://docs.daml.com/_static/images/DAML_Logo_Blue.svg")]
12#![doc(html_root_url = "https://docs.rs/daml-macro/0.2.2")]
13
14mod path;
15mod value;
16
17// Reexport crates as the macros use several types they define.
18// TODO should reference type aliases here rather than raw chrono / bigdecimal but requires some rework in the macros
19#[doc(hidden)]
20pub use bigdecimal;
21#[doc(hidden)]
22pub use chrono;
23#[doc(hidden)]
24pub use daml_grpc;
25
26#[cfg(test)]
27mod test_util;