Skip to content

Commit

Permalink
oapi: Refactor features (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislearn authored Sep 10, 2024
1 parent 3e21a98 commit 8c7d371
Show file tree
Hide file tree
Showing 17 changed files with 655 additions and 630 deletions.
36 changes: 18 additions & 18 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ members = ["crates/*"]
resolver = "2"

[workspace.package]
version = "0.71.1"
version = "0.72.0"
authors = ["Chrislearn Young <[email protected]>"]
edition = "2021"
rust-version = "1.80"
Expand All @@ -19,24 +19,24 @@ license = "MIT OR Apache-2.0"
categories = ["web-programming::http-server", "web-programming::websocket", "network-programming", "asynchronous"]

[workspace.dependencies]
salvo_macros = { version = "0.71.1", path = "crates/macros", default-features = false }
salvo_core = { version = "0.71.1", path = "crates/core", default-features = false }
salvo_extra = { version = "0.71.1", path = "crates/extra", default-features = false }
salvo-compression = { version = "0.71.1", path = "crates/compression", default-features = false }
salvo-cache = { version = "0.71.1", path = "crates/cache", default-features = false }
salvo-cors = { version = "0.71.1", path = "crates/cors", default-features = false }
salvo-csrf = { version = "0.71.1", path = "crates/csrf", default-features = false }
salvo-flash = { version = "0.71.1", path = "crates/flash", default-features = false }
salvo_macros = { version = "0.72.0", path = "crates/macros", default-features = false }
salvo_core = { version = "0.72.0", path = "crates/core", default-features = false }
salvo_extra = { version = "0.72.0", path = "crates/extra", default-features = false }
salvo-compression = { version = "0.72.0", path = "crates/compression", default-features = false }
salvo-cache = { version = "0.72.0", path = "crates/cache", default-features = false }
salvo-cors = { version = "0.72.0", path = "crates/cors", default-features = false }
salvo-csrf = { version = "0.72.0", path = "crates/csrf", default-features = false }
salvo-flash = { version = "0.72.0", path = "crates/flash", default-features = false }
salvo-http3 = { version = "0.3.0", default-features = false }
salvo-jwt-auth = { version = "0.71.1", path = "crates/jwt-auth", default-features = false }
salvo-oapi = { version = "0.71.1", path = "./crates/oapi", default-features = false }
salvo-oapi-macros = { version = "0.71.1", path = "crates/oapi-macros", default-features = false }
salvo-otel = { version = "0.71.1", path = "crates/otel", default-features = false }
salvo-proxy = { version = "0.71.1", path = "crates/proxy", default-features = false }
salvo-rate-limiter = { version = "0.71.1", path = "crates/rate-limiter", default-features = false }
salvo-serde-util = { version = "0.71.1", path = "crates/serde-util", default-features = true }
salvo-serve-static = { version = "0.71.1", path = "crates/serve-static", default-features = false }
salvo-session = { version = "0.71.1", path = "crates/session", default-features = false }
salvo-jwt-auth = { version = "0.72.0", path = "crates/jwt-auth", default-features = false }
salvo-oapi = { version = "0.72.0", path = "./crates/oapi", default-features = false }
salvo-oapi-macros = { version = "0.72.0", path = "crates/oapi-macros", default-features = false }
salvo-otel = { version = "0.72.0", path = "crates/otel", default-features = false }
salvo-proxy = { version = "0.72.0", path = "crates/proxy", default-features = false }
salvo-rate-limiter = { version = "0.72.0", path = "crates/rate-limiter", default-features = false }
salvo-serde-util = { version = "0.72.0", path = "crates/serde-util", default-features = true }
salvo-serve-static = { version = "0.72.0", path = "crates/serve-static", default-features = false }
salvo-session = { version = "0.72.0", path = "crates/session", default-features = false }

aead = "0.5"
aes-gcm = "0.10"
Expand Down
7 changes: 3 additions & 4 deletions crates/oapi-macros/src/component.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ use quote::{quote, quote_spanned, ToTokens};
use syn::spanned::Spanned;

use crate::doc_comment::CommentAttributes;
use crate::feature::{
pop_feature, AdditionalProperties, Description, Feature, FeaturesExt, IsInline, Minimum,
Nullable, TryToTokensExt, Validatable,
};
use crate::feature::attributes::{AdditionalProperties, Description, Nullable};
use crate::feature::validation::Minimum;
use crate::feature::{pop_feature, Feature, FeaturesExt, IsInline, TryToTokensExt, Validatable};
use crate::schema_type::{SchemaFormat, SchemaType, SchemaTypeInner};
use crate::type_tree::{GenericType, TypeTree, ValueType};
use crate::{Deprecated, DiagResult, Diagnostic, IntoInner, TryToTokens};
Expand Down
Loading

0 comments on commit 8c7d371

Please sign in to comment.