Skip to main content

openapi_to_rust/
lib.rs

1pub mod analysis;
2pub mod cli;
3pub mod client_generator;
4pub mod config;
5pub mod error;
6pub mod extensions;
7pub mod generator;
8pub mod http_config;
9pub mod http_error;
10pub mod openapi;
11pub mod patterns;
12pub mod registry_generator;
13pub mod server;
14pub mod streaming;
15pub mod type_mapping;
16
17pub mod test_helpers;
18
19pub use analysis::{SchemaAnalysis, SchemaAnalyzer, merge_schema_extensions};
20pub use config::ConfigFile;
21pub use error::GeneratorError;
22pub use generator::{CodeGenerator, GeneratedFile, GenerationResult, GeneratorConfig};
23pub use http_config::{AuthConfig, HttpClientConfig, RetryConfig};
24pub use http_error::{ApiError, ApiOpError, HttpError, HttpResult};
25pub use openapi::{OpenApiSpec, Schema, SchemaType};
26pub use type_mapping::{
27    DepRequirement, MappedType, TypeFeature, TypeMapper, TypeMappingConfig, UsedFeatures,
28};
29
30pub type Result<T> = std::result::Result<T, GeneratorError>;