blob: bf0f1adabd2e347ace164a8e91001ac891dfa298 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
const builtin = @import("builtin");
const std = @import("std");
pub const Env = @import("Env/root.zig");
pub const Call = Env.Call;
pub const AnyFuture = Env.AnyFuture;
pub const Future = Env.Future;
pub const Value = Env.Value;
pub const log = @import("log/root.zig");
pub const html = @import("html/root.zig");
pub const bridge = @import("bridge/root.zig");
pub const Object = @import("Object.zig");
pub const Promise = @import("Promise.zig");
pub const Callable = @import("Callable.zig");
pub const App = @import("app/root.zig").App;
pub const Options = @import("app/root.zig").Options;
pub const Component = @import("Component.zig");
pub const panic = @import("panic.zig").panic;
const Ptr = struct { o: *anyopaque };
comptime {
const export_sizes = .{ Call, Value, Ptr };
for (export_sizes) |T| {
const size: u16 = @sizeOf(T);
const name = @typeName(T)[if (std.mem.findScalarLast(u8, @typeName(T), '.')) |i| i + 1 else 0..];
@export(&size, .{ .name = std.fmt.comptimePrint("type::size::{s}", .{name}) });
}
}
|