0.1.0
The first release: TLS 1.3 server sockets that keep half-close, backed by rustls.
Teals.config/1builds a server configuration from PEM files: ECDSA P-256 and P-384, Ed25519 and RSA 2048 to 4096 identities; client certificates in:none,:request,:optionalor:requiredmode against a trust store; ALPN; andclose_timeout. The private key stays inside the NIF.Teals.handshake/3on an accepted:gen_tcpsocket, then passiverecv/3, active modes,send/2from any process with backpressure andsend_timeout,setopts/2,controlling_process/2,peercert/1,negotiated_protocol/1,peername/1andsockname/1.- Half-close: the peer's
close_notifyends only its direction, reported as{:teals_read_closed, socket}or byrecv/3, and the socket can still send.shutdown(socket, :write)sendsclose_notifyafter earlier sends.half_close: falseends both directions instead. close/1and the owner's exit flush what was sent, thenclose_notify, withinclose_timeout.Teals.Ranch, a Ranch transport, andTeals.Cowboy.StreamHandler, which gives Cowboy and Plug the client certificate and ends WebSockets on the peer'sclose_notify. Ranch and Cowboy are optional dependencies.- Precompiled NIFs for
aarch64-apple-darwin,x86_64-unknown-linux-gnuandaarch64-unknown-linux-gnu(glibc 2.34 or later), checked against the package's checksums. Elsewhere, or withTEALS_BUILD=1, the NIF builds from source with Rust 1.91 or later.