mirror of
https://github.com/vibedOS/vibe-net.git
synced 2026-09-21 12:04:33 -04:00
No description
- Rust 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github/workflows | ||
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
| rust-toolchain.toml | ||
vibe-net
vibe-net is the allocator-free DNS and HTTP client library for vibeOS. It is
written in Rust, uses direct Linux syscalls through vibe-rt, and does not use
libc.
What it supports
- IPv4 literals
/etc/hostslookup- DNS A queries using the first IPv4 nameserver in
/etc/resolv.conf - HTTP/1.0
GETover plain TCP - fixed caller-provided download buffers
- required
Content-Lengthchecks
The client rejects HTTPS URLs, redirects, chunked transfer encoding, compressed responses, malformed DNS packets, oversized headers, and truncated bodies.
let mut package = [0_u8; 256 * 1024];
let length = vibe_net::http_get(
b"http://repo.vibeos:18081/vibe-hello.vpkg",
&mut package,
)?;
Plain HTTP does not provide privacy. vibeOS package downloads remain
authenticated by vibe-pkg's Ed25519 package signatures.
Build and test
Rust 1.94.0 is selected by rust-toolchain.toml.
cargo test
cargo clippy --all-targets -- -D warnings
License
MIT