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:
Ning Sun
2024-11-29 11:31:02 +08:00
committed by GitHub
parent d931389a4c
commit 36263830bb
24 changed files with 62 additions and 228 deletions

View File

@@ -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

View File

@@ -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,