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