aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'crates/base/src/lib.rs')
-rw-r--r--crates/base/src/lib.rs31+0 −31
1 files changed, 0 insertions, 31 deletions
diff --git a/crates/base/src/lib.rs b/crates/base/src/lib.rs
deleted file mode 100644
--- a/crates/base/src/lib.rs
+++ /dev/null
@@ -1,31 +0,0 @@
-// SPDX-FileCopyrightText: 2026 Nikolay Govorov
-// SPDX-License-Identifier: AGPL-3.0-or-later
-
-pub mod serde;
-
-#[derive(Debug, Clone, Copy)]
-pub enum ContentType {
- TextPlain,
- OctetStream,
- ImageXIcon,
- ImagePng,
- ImageSvgXml,
- TextCss,
- FontWoff2,
- ApplicationManifestJson,
-}
-
-impl ContentType {
- pub fn as_str(&self) -> &'static str {
- match self {
- Self::TextPlain => "text/plain",
- Self::OctetStream => "application/octet-stream",
- Self::ImageXIcon => "image/x-icon",
- Self::ImagePng => "image/png",
- Self::ImageSvgXml => "image/svg+xml",
- Self::TextCss => "text/css",
- Self::FontWoff2 => "font/woff2",
- Self::ApplicationManifestJson => "application/manifest+json",
- }
- }
-}