summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2024-03-23 17:54:36 -0500
committerzachir <zachir@librem.one>2024-03-23 17:54:36 -0500
commitc67c6faee4d8eb1dc9c9032b5cf0b08c4c0ec817 (patch)
tree7da2ee2c927e5e6393dd2ed6c4d615591dd5211c
parentb494331cbbd3d0d17d625f66cef27b60cf125ce1 (diff)
Use mime as a git submodule
This commit adds the submodule, and changes @include("mime.zig") to refer to the new subdirectory.
-rw-r--r--.gitmodules3
-rw-r--r--src/main.zig2
m---------src/mime0
3 files changed, 4 insertions, 1 deletions
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..4762e00
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,3 @@
+[submodule "src/mime"]
+ path = src/mime
+ url = https://github.com/andrewrk/mime.git
diff --git a/src/main.zig b/src/main.zig
index dc762d1..f9c810c 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -1,5 +1,5 @@
const std = @import("std");
-const mime = @import("mime.zig");
+const mime = @import("mime/mime.zig");
const Address = std.net.Address;
const ArrayList = std.ArrayList;
diff --git a/src/mime b/src/mime
new file mode 160000
+Subproject ef4381c6a739ca9d44fb7aa6b14c66e1fba2e16