Standard library and package boundaries
The language kernel retains operations coupled to the compiler, including println, args, read_file, and xu_target_os. Public standard-library sources live in src/, without a std prefix: #fmt, #net/http, #crypto/sm2, #ui/webview.
The library now includes stream I/O and explicit read/write progress contracts, process pipes, HTTP/2, network pools, timer/rate utilities, and SQL pooling and transaction interfaces. Generated API pages list the actual public declarations; API presence does not imply identical support on every target.
Concrete service drivers live in the separate packages module. Import MySQL as mysql #github.com/xulang-org/packages/mysql, with its root module in require:. database/sql remains in the standard library. SQLite uses a native C bridge.
The language does not expose unsafe, reflect, arbitrary runtime pointers, or arbitrary syscall addresses. SM2/SM3/SM4/SM9/ZUC/GMTLS packages are implemented in Xu; this does not imply commercial-cryptography certification.
For graphics and display, #gpu and #gpu/layout provide windowless GPU device abstractions, uniform buffer and texture transfers, shaders, pipeline recording, and exact byte readback; #window and the pure Xu event package #window/events provide native window lifecycles and per-window input event queues (keyboard, pointer, wheel, and text/IME). Low-level native drivers rely on the host platform (e.g. SDL 3.2+ or Metal/Vulkan/D3D12) without requiring manual C binding code. In addition, #encoding/binary provides explicit endian byte storage and binary32/binary64 float codecs. See the #gpu API and #window API.
#xacp is the transport-neutral safety core in src/xacp: frame limits, permissions, session lifetime, and UI adapter checks. Importing it does not open stdio or TCP. Those hooks are inserted only when a hosted native executable is built with --xacp or --xacp-port. The package is included in the published 0.16.0 SDK extract and generated catalog. Native sessions and UI runtime acceptance remain unverified. See the #xacp API and the CLI reference.