Skip to main content

azure_core/
lib.rs

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4#![deny(unsafe_code)]
5#![deny(missing_debug_implementations, nonstandard_style)]
6#![doc = include_str!("../README.md")]
7#![cfg_attr(docsrs, feature(doc_cfg))]
8#![warn(missing_docs)]
9
10#[macro_use]
11mod macros;
12
13pub mod cloud;
14pub mod credentials;
15pub mod error;
16pub mod hmac;
17pub mod http;
18#[cfg(feature = "test")]
19pub mod test;
20
21// Re-export modules in typespec_client_core such that azure_core-based crates don't need to reference it directly.
22pub use typespec_client_core::{
23    async_runtime, base64, fmt, json, request_header, request_option, request_query, sleep, stream,
24    time, Bytes, Error, Result, Uuid, Value,
25};
26
27/// Abstractions for distributed tracing and telemetry.
28pub mod tracing {
29    pub use crate::http::policies::PublicApiInstrumentationInformation;
30    pub use azure_core_macros::{client, function, new, subclient};
31    pub use typespec_client_core::tracing::{
32        AsAny, Attribute, AttributeArray, AttributeValue, Span, SpanGuard, SpanKind, SpanStatus,
33        Tracer, TracerProvider,
34    };
35}
36
37#[cfg(feature = "xml")]
38pub use typespec_client_core::xml;
39
40mod private {
41    pub trait Sealed {}
42}