18 breaking releases

new 0.19.0 Apr 18, 2025
0.17.0 Apr 11, 2025
0.14.0 Mar 28, 2025

#1042 in Network programming

Download history 424/week @ 2025-01-11 517/week @ 2025-01-18 816/week @ 2025-01-25 589/week @ 2025-02-01 681/week @ 2025-02-08 992/week @ 2025-02-15 1556/week @ 2025-02-22 1279/week @ 2025-03-01 1240/week @ 2025-03-08 1232/week @ 2025-03-15 981/week @ 2025-03-22 1080/week @ 2025-03-29 1343/week @ 2025-04-05 861/week @ 2025-04-12

4,557 downloads per month
Used in 12 crates (2 directly)

MIT license

345KB
10K SLoC

Rust 9K SLoC // 0.0% comments TypeScript 1.5K SLoC // 0.0% comments JavaScript 192 SLoC // 0.1% comments

deno_os

This crate implements OS specific APIs for Deno

loadavg

Target family Syscall Description
Linux sysinfo -
Windows - Returns DEFAULT_LOADAVG. There is no concept of loadavg on Windows
macOS, BSD getloadavg https://www.freebsd.org/cgi/man.cgi?query=getloadavg

os_release

Target family Syscall Description
Linux /proc/sys/kernel/osrelease -
Windows RtlGetVersion dwMajorVersion . dwMinorVersion . dwBuildNumber
macOS sysctl([CTL_KERN, KERN_OSRELEASE]) -

hostname

Target family Syscall Description
Unix gethostname(sysconf(_SC_HOST_NAME_MAX)) -
Windows GetHostNameW -

mem_info

Target family Syscall Description
Linux sysinfo and /proc/meminfo -
Windows sysinfoapi::GlobalMemoryStatusEx -
macOS
 sysctl([CTL_HW, HW_MEMSIZE]); 
sysctl([CTL_VM, VM_SWAPUSAGE]);
host_statistics64(mach_host_self(), HOST_VM_INFO64)
-

cpu_usage

Target family Syscall Description
Linux getrusage -
Windows processthreadsapi::GetProcessTimes -
macOS getrusage -

Dependencies

~116MB
~2.5M SLoC