mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-31 04:10:38 +00:00
refactor: remove built-in apidocs and schemars (#5068)
* feat: feature gate apidocs * refactor: remove built-in apidocs and schemars * remove redoc html
This commit is contained in:
@@ -8,11 +8,10 @@ license.workspace = true
|
||||
workspace = true
|
||||
|
||||
[features]
|
||||
codec = ["dep:serde", "dep:schemars"]
|
||||
codec = ["dep:serde"]
|
||||
|
||||
[dependencies]
|
||||
const_format = "0.2"
|
||||
schemars = { workspace = true, optional = true }
|
||||
serde = { workspace = true, optional = true }
|
||||
shadow-rs.workspace = true
|
||||
|
||||
|
||||
@@ -49,10 +49,7 @@ impl Display for BuildInfo {
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
#[cfg_attr(
|
||||
feature = "codec",
|
||||
derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema)
|
||||
)]
|
||||
#[cfg_attr(feature = "codec", derive(serde::Serialize, serde::Deserialize))]
|
||||
pub struct OwnedBuildInfo {
|
||||
pub branch: String,
|
||||
pub commit: String,
|
||||
|
||||
Reference in New Issue
Block a user