We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ec0302 commit 48bea70Copy full SHA for 48bea70
src/fs/mod.zig
@@ -3,14 +3,4 @@
3
//! This module provides a filesystem interface that allows for easy testing
4
//! and mocking of file operations throughout the compiler.
5
6
-const std = @import("std");
7
-const builtin = @import("builtin");
8
-
9
-/// Maximum file size constant - available without importing Filesystem
10
-pub const max_file_size = std.math.maxInt(u32);
11
12
-/// Filesystem abstraction that works on all platforms.
13
-/// On WASM, provides a minimal stub since std.posix is not available on wasm32-freestanding.
14
-pub const Filesystem = if (builtin.cpu.arch == .wasm32) struct {
15
- pub const max_file_size = @This().max_file_size;
16
-} else @import("Filesystem.zig");
+pub const Filesystem = @import("Filesystem.zig");
0 commit comments