Skip to main content

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    // Style-only pedantic / nursery lints intentionally allowed
14    // workspace-wide — none affect correctness.
15    clippy::large_enum_variant,
16    clippy::too_many_lines,
17    clippy::non_canonical_partial_ord_impl,
18    clippy::too_long_first_doc_paragraph,
19    clippy::option_if_let_else,
20    clippy::trivially_copy_pass_by_ref,
21)]
22#![forbid(unsafe_code)]
23#![doc(html_favicon_url = "https://docs.daml.com/_static/images/favicon/favicon-32x32.png")]
24#![doc(html_logo_url = "https://docs.daml.com/_static/images/DAML_Logo_Blue.svg")]
25#![doc(html_root_url = "https://docs.rs/daml-util/0.3.0")]
26
27/// JWT token builder for Canton v2 participants
28/// (`aud`/`sub`/`scope`-shape claims).
29pub mod canton_auth;
30pub use canton_auth::{DamlCantonClaims, DamlCantonTokenBuilder, DamlCantonTokenError, DamlCantonTokenResult};
31
32/// Conveniences for working with a collection of [`DamlPackage`](daml_grpc::data::package::DamlPackage).
33pub mod package;