aws_smithy_runtime/lib.rs
1/*
2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 * SPDX-License-Identifier: Apache-2.0
4 */
5
6/* Automatically managed default lints */
7#![cfg_attr(docsrs, feature(doc_auto_cfg))]
8/* End of automatically managed default lints */
9//! Runtime support logic and types for smithy-rs generated code.
10//!
11//! # Crate Features
12//!
13//! - `http-auth`: Enables auth scheme and identity resolver implementations for HTTP API Key,
14//! Basic Auth, Bearer Token, and Digest Auth.
15//! - `test-util`: Enables utilities for unit tests. DO NOT ENABLE IN PRODUCTION.
16
17#![warn(
18 missing_docs,
19 rustdoc::missing_crate_level_docs,
20 unreachable_pub,
21 rust_2018_idioms
22)]
23
24/// Runtime support logic for generated clients.
25#[cfg(feature = "client")]
26pub mod client;
27
28/// Cache for entries that have an expiration time.
29pub mod expiring_cache;
30
31/// A data structure for persisting and sharing state between multiple clients.
32pub mod static_partition_map;
33
34/// General testing utilities.
35#[cfg(any(feature = "test-util", feature = "legacy-test-util"))]
36pub mod test_util;
37
38// legacy test-util, re-export of macros
39#[cfg(feature = "wire-mock")]
40pub use aws_smithy_http_client::test_util::wire::ev;
41#[cfg(feature = "wire-mock")]
42pub use aws_smithy_http_client::test_util::wire::match_events;
43#[cfg(feature = "wire-mock")]
44pub use aws_smithy_http_client::test_util::wire::matcher;