Skip to content

Latest commit

 

History

History
47 lines (27 loc) · 694 Bytes

README.md

File metadata and controls

47 lines (27 loc) · 694 Bytes

vlang libuv bindings

you may need to run 'make update' before developing

make update

WIP

note this is not fully complete

about ~99% of the libuv api is available

this currently compiles libuv from source or a static library on macos, other platforms have not yet been tested

extra

passing -d uv_static, assumes libuv is installed as a static library at /usr/local/ or /opt/homebrew on macOS

semantics

all types are available via Uv_type_t

ie.

@[typedef]
struct C.uv_tcp_t

pub type Uv_tcp_t = C.uv_tcp_t

functions are available without the uv_ prefix

ie.

fn C.uv_version() &usize

pub fn version() &usize {
    return C.uv_version()
}