[bun install] WIP

This commit is contained in:
Jarred Sumner
2021-11-14 14:24:51 -08:00
parent 0d369baf9d
commit 94e469c803
14 changed files with 1876 additions and 234 deletions

View File

@@ -9,6 +9,10 @@ pub const MutableString = struct {
allocator: *std.mem.Allocator,
list: std.ArrayListUnmanaged(u8),
pub fn init2048(allocator: *std.mem.Allocator) !MutableString {
return MutableString.init(allocator, 2048);
}
pub const Writer = std.io.Writer(*@This(), anyerror, MutableString.writeAll);
pub fn writer(self: *MutableString) Writer {
return Writer{