karlseguin / websocket.zig

A websocket implementation for zig
MIT License
302 stars 28 forks source link

Way to install this package and packed in a lib #25

Closed RockChinQ closed 10 months ago

RockChinQ commented 10 months ago

Hi there and thank you for your great work! I'm a greenhand to ziglang and I try to use websocket.zig to make another lib. So far I've installed zigmod for package management. And I'm using vscode with official Zig language extension. But when I import this lib with the following code:

const websocket = @import("websocket");

I can't not jump to the code of websocket.zig in vscode with shortcut ctrl+Left Click. I've made sure that websocket.zig is in the .zigmod dir.

image

I'm not sure this is a issue with Zig Language Extension or the Zigmod Package Manager. Could you please tell my how to install websocket.zig in the right way, and how to embed it with my lib ? Thank you so much!

karlseguin commented 10 months ago

Hi,

The library is available using Zig's built-in package manager. I've blogged about how to use it, here and here's a Chinese translation.

I'm not really sure how Zigmod works :(

RockChinQ commented 10 months ago

Thank you!