Skip to content

Commit

Permalink
Rename to axum-openapi3-derive
Browse files Browse the repository at this point in the history
  • Loading branch information
allevo committed Dec 2, 2024
1 parent d2d2629 commit dacd46b
Show file tree
Hide file tree
Showing 10 changed files with 26 additions and 20 deletions.
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 12 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,20 @@
name = "axum-openapi3"
version = "0.1.0"
edition = "2021"
description = "Facilitate the generation of OpenAPI 3.0 documentation for axum applications."
license = "Apache-2.0"
authors = [
"Tommaso Allevi <[email protected]>",
]
documentation = "https://docs.rs/axum-openapi3"
repository = "https://github.com/oramasearch/axum-openapi3"
homepage = "https://crates.io/crates/axum-openapi3"


[lib]

[dependencies]
axum-openapi-derive3 = { optional = true, path = "axum-openapi-derive3"}
axum-openapi3-derive = { optional = true, path = "axum-openapi3-derive"}
axum = { version = "0.7.6", default-features = false }
utoipa = { version = "5", features = ["debug"] }
once_cell = "1.8.0"
Expand All @@ -18,18 +27,15 @@ tower-http = { version = "0.6.1", features = ["trace", "cors"] }
serde = { version = "1.0.214", features = ["derive"] }
tokio = { version = "1", features = ["rt", "rt-multi-thread", "full", "sync"] }
anyhow = "1.0.91"

serde_json = "1.0.132"


[features]
default = ["derive"]

# Provide derive(Serialize, Deserialize) macros.
derive = ["axum-openapi-derive3"]
derive = ["axum-openapi3-derive"]


[workspace]
members = [
"axum-openapi-derive3",
"axum-openapi3-derive",
]
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "axum-openapi-derive3"
name = "axum-openapi3-derive"
version = "0.1.0"
edition = "2021"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ use serde::Serialize;
use utoipa::openapi::Paths;

#[cfg(feature = "derive")]
extern crate axum_openapi_derive3;
extern crate axum_openapi3_derive;
/// Derive macro available if axum-openapi3 is built with `features = ["derive"]`.
#[cfg(feature = "derive")]
pub use axum_openapi_derive3::endpoint;
pub use axum_openapi3_derive::endpoint;

/// Re-export utoipa. Used internally to generate the openapi spec from rust structs.
pub use utoipa;
Expand Down

0 comments on commit dacd46b

Please sign in to comment.