mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 10:58:56 +00:00
* Prepare to upgrade zig
* zig fmt
* AllocGate
* Update data_url.zig
* wip
* few files
* just headers now?
* I think everything works?
* Update mimalloc
* Update hash_map.zig
* Perf improvements to compensate for Allocgate
* Bump
* 📷
* Update bun.lockb
* Less branching
* [js parser] Slightly reduce memory usage
* Update js_parser.zig
* WIP remove unused
* [JS parser] WIP support for `with` keyword
* Remove more dead code
* Fix all the build errors!
* cleanup
* Move `network_thread` up
* Bump peechy
* Update README.md
20 lines
615 B
Zig
20 lines
615 B
Zig
const _global = @import("../global.zig");
|
|
const string = _global.string;
|
|
const Output = _global.Output;
|
|
const Global = _global.Global;
|
|
const Environment = _global.Environment;
|
|
const strings = _global.strings;
|
|
const MutableString = _global.MutableString;
|
|
const stringZ = _global.stringZ;
|
|
const default_allocator = _global.default_allocator;
|
|
const C = _global.C;
|
|
const std = @import("std");
|
|
const open = @import("../open.zig");
|
|
|
|
pub const DiscordCommand = struct {
|
|
const discord_url: string = "https://bun.sh/discord";
|
|
pub fn exec(_: std.mem.Allocator) !void {
|
|
try open.openURL(discord_url);
|
|
}
|
|
};
|