refactor: get zine watcher to build in flow
This commit is contained in:
parent
21a850b06a
commit
611cefa680
7 changed files with 90 additions and 30 deletions
|
|
@ -1,8 +1,47 @@
|
|||
const builtin = @import("builtin");
|
||||
|
||||
pub const Watcher = switch (builtin.target.os.tag) {
|
||||
.linux => @import("serve/watcher/LinuxWatcher.zig"),
|
||||
.macos => @import("serve/watcher/MacosWatcher.zig"),
|
||||
.windows => @import("serve/watcher/WindowsWatcher.zig"),
|
||||
.linux => @import("LinuxWatcher.zig"),
|
||||
.macos => @import("MacosWatcher.zig"),
|
||||
.windows => @import("WindowsWatcher.zig"),
|
||||
else => @compileError("unsupported platform"),
|
||||
};
|
||||
|
||||
pub const Debouncer = @import("Debouncer.zig");
|
||||
|
||||
pub const Error = error{
|
||||
OutOfMemory,
|
||||
SystemResources,
|
||||
Unexpected,
|
||||
ProcessFdQuotaExceeded,
|
||||
SystemFdQuotaExceeded,
|
||||
LockedMemoryLimitExceeded,
|
||||
ThreadQuotaExceeded,
|
||||
IsDir,
|
||||
WouldBlock,
|
||||
AccessDenied,
|
||||
ProcessNotFound,
|
||||
PermissionDenied,
|
||||
FileTooBig,
|
||||
NoSpaceLeft,
|
||||
DeviceBusy,
|
||||
NoDevice,
|
||||
SharingViolation,
|
||||
PathAlreadyExists,
|
||||
FileNotFound,
|
||||
PipeBusy,
|
||||
NameTooLong,
|
||||
InvalidUtf8,
|
||||
InvalidWtf8,
|
||||
BadPathName,
|
||||
NetworkNotFound,
|
||||
AntivirusInterference,
|
||||
SymLinkLoop,
|
||||
NotDir,
|
||||
FileLocksNotSupported,
|
||||
FileBusy,
|
||||
UserResourceLimitReached,
|
||||
WatchAlreadyExists,
|
||||
InvalidHandle,
|
||||
QueueFailed,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue