daml_util/
lib.rs

1//! Daml ledger utilities.
2//!
3//! This provides utilities which depends on both [`daml-grpc`](daml_grpc) and [`daml-lf`](daml_lf) crates.
4
5#![warn(clippy::all, clippy::pedantic, clippy::nursery, rust_2018_idioms)]
6#![allow(
7    clippy::missing_errors_doc,
8    clippy::used_underscore_binding,
9    clippy::must_use_candidate,
10    clippy::module_name_repetitions,
11    clippy::missing_const_for_fn,
12    clippy::return_self_not_must_use
13)]
14#![forbid(unsafe_code)]
15#![doc(html_favicon_url = "https://docs.daml.com/_static/images/favicon/favicon-32x32.png")]
16#![doc(html_logo_url = "https://docs.daml.com/_static/images/DAML_Logo_Blue.svg")]
17#![doc(html_root_url = "https://docs.rs/daml-util/0.2.2")]
18
19// TODO annoying having to specify both "util" and "sandbox" features to be able to use sandbox.
20
21#[cfg(feature = "sandbox")]
22mod sandbox_auth;
23
24/// Conveniences for working with a collection of [`DamlPackage`](daml_grpc::data::package::DamlPackage).
25pub mod package;
26
27#[cfg(feature = "sandbox")]
28pub use sandbox_auth::{DamlSandboxAuthError, DamlSandboxAuthResult, DamlSandboxAuthToken, DamlSandboxTokenBuilder};