Skip to content

Commit debff12

Browse files
committed
build(deps): replace serde_yaml with serde_yaml_ng
1 parent e3aed14 commit debff12

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ rust-embed = { version = "8.11.0", features = ["include-exclude"] }
4040
libflate = "2.2.1"
4141
brotli = { version = "8.0.2", features = ["std"] }
4242
toml = "0.8.8"
43-
serde_yaml = "0.9.29"
43+
serde_yaml_ng = "0.10.0"
4444
build_html = "2.7.0"
4545
uuid = { version = "1.23.0", features = ["v4"] }
4646
base64 = "0.22.1"

src/instance_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ fn info_json() -> Result<Response<Body>, Error> {
5151
}
5252

5353
fn info_yaml() -> Result<Response<Body>, Error> {
54-
if let Ok(body) = serde_yaml::to_string(&*INSTANCE_INFO) {
54+
if let Ok(body) = serde_yaml_ng::to_string(&*INSTANCE_INFO) {
5555
// We can use `application/yaml` as media type, though there is no guarantee
5656
// that browsers will honor it. But we'll do it anyway. See:
5757
// https://github.com/ietf-wg-httpapi/mediatypes/blob/main/draft-ietf-httpapi-yaml-mediatypes.md#media-type-applicationyaml-application-yaml

0 commit comments

Comments
 (0)