# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "oasgen" version = "0.21.2" authors = ["Kurt Wolf "] build = false autobins = false autoexamples = false autotests = false autobenches = false description = "Generates OpenAPI 3.0 spec based on Rust code. Works with axum, actix-web, or independent of a web framework." homepage = "https://github.com/kurtbuilds/oasgen" documentation = "https://docs.rs/oasgen" readme = "README.md" license = "MIT" repository = "https://github.com/kurtbuilds/oasgen" [package.metadata.docs.rs] all-features = true rustdoc-args = [ "--cfg", "docsrs", ] [lib] name = "oasgen" path = "src/lib.rs" doctest = false [[example]] name = "actix" path = "examples/actix.rs" [[test]] name = "oasgen_test_no_framework" path = "tests/test-none.rs" [[test]] name = "test-enum" path = "tests/test-enum.rs" [[test]] name = "oasgen_test_actix" path = "tests/test-actix.rs" required-features = ["actix"] [[test]] name = "oasgen_test_axum" path = "tests/test-axum.rs" required-features = ["axum"] [dependencies.actix-web] version = "4.3.1" optional = true [dependencies.axum] version = "0.7.4" features = ["json"] optional = true default-features = false [dependencies.futures] version = "0.3.28" [dependencies.http] version = "1.0.0" [dependencies.http-body] version = "1.0.0" [dependencies.http-body-util] version = "0.1.0" [dependencies.indexmap] version = "2" [dependencies.inventory] version = "0.3.13" [dependencies.oasgen-core] version = "0.21.0" [dependencies.oasgen-macro] version = "0.21.0" [dependencies.once_cell] version = "1.18.0" [dependencies.openapiv3-extended] version = "6" [dependencies.regex-lite] version = "0.1.5" [dependencies.serde] version = "1.0.171" features = ["derive"] [dependencies.serde_json] version = "1.0.100" [dependencies.serde_yaml] version = "0.9.22" [dependencies.swagger-ui2] version = "0.6" optional = true [dependencies.tower-cookies] version = "0.10.0" optional = true [dev-dependencies.actix-web] version = "4.3.1" [dev-dependencies.pretty_assertions] version = "1.4.0" [dev-dependencies.tokio] version = "1.29.1" features = ["full"] [dev-dependencies.trybuild] version = "1.0.81" [features] actix = [ "actix-web", "oasgen-core/actix", ] axum = [ "oasgen-core/axum", "dep:axum", ] bigdecimal = ["oasgen-core/bigdecimal"] chrono = ["oasgen-core/chrono"] cookies = [ "tower-cookies", "oasgen-core/cookies", ] json = ["oasgen-core/json"] phonenumber = ["oasgen-core/phonenumber"] serde_qs = ["oasgen-core/qs"] sid = ["oasgen-core/sid"] sqlx = ["oasgen-core/sqlx"] swagger-ui = ["swagger-ui2"] time = ["oasgen-core/time"] uuid = ["oasgen-core/uuid"]