Skip to main content

daml_codegen/
lib.rs

1#![warn(clippy::all, clippy::pedantic, clippy::nursery, rust_2018_idioms)]
2#![allow(
3    clippy::module_name_repetitions,
4    clippy::needless_pass_by_value,
5    clippy::use_self,
6    clippy::cast_sign_loss,
7    clippy::must_use_candidate,
8    clippy::missing_errors_doc,
9    // Style-only pedantic / nursery lints intentionally allowed
10    // workspace-wide — none affect correctness.
11    clippy::large_enum_variant,
12    clippy::too_many_lines,
13    clippy::non_canonical_partial_ord_impl,
14    clippy::too_long_first_doc_paragraph,
15    clippy::option_if_let_else,
16    clippy::trivially_copy_pass_by_ref,
17    // Proto-generated code (tonic-build / prost-build) derives PartialEq without Eq.
18    clippy::derive_partial_eq_without_eq,
19)]
20#![forbid(unsafe_code)]
21#![doc(html_favicon_url = "https://docs.daml.com/_static/images/favicon/favicon-32x32.png")]
22#![doc(html_logo_url = "https://docs.daml.com/_static/images/DAML_Logo_Blue.svg")]
23#![doc(html_root_url = "https://docs.rs/daml-codegen/0.3.0")]
24#![recursion_limit = "128"]
25// importing the crate README as the rust doc breaks the link to the LICENCE file.
26#![allow(rustdoc::broken_intra_doc_links)]
27#![doc = include_str!("../README.md")]
28
29mod error;
30
31// The renderer is exposed so that it may be used by `daml-derive` only, it is not part of the public interface.
32#[doc(hidden)]
33pub mod renderer;
34
35/// Code generators for producing Rust implementations of Daml types.
36pub mod generator;