rc_crypto/lib.rs
1// Copyright 2026-Present Datadog, Inc.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15#![doc = include_str!("../README.md")]
16#![allow(
17 clippy::field_reassign_with_default, // Default values, plus a field override.
18 clippy::default_constructed_unit_structs // Unit structs do not appear as values.
19)]
20#![warn(
21 missing_docs,
22 missing_debug_implementations, // Frequently used bound on data structures
23 unreachable_pub, // Visibility is part of communicating with humans
24 unused_crate_dependencies, // Warn for unused dependencies
25 clippy::clone_on_ref_ptr, // A ref +1 is not the same as a deep copy
26 clippy::future_not_send, // Required for multithreaded runtimes
27 clippy::dbg_macro, // Used for debugging, should not be in committed code
28 clippy::todo, // Should not be in committed code - use unreachable!("reason")
29)]
30
31// False-positive lint for dev dependencies.
32#[cfg(test)]
33use criterion as _;
34
35mod cached_string_repr;
36pub mod certificate;
37mod hex;
38pub mod issuer;
39pub mod keys;
40mod signature;
41mod signer;
42
43pub use signature::*;
44pub use signer::*;