Skip to main content

Crate aver_rt

Crate aver_rt 

Source
Expand description

§aver-rt

aver-rt is the shared Rust runtime for Aver.

It is used by:

  • the Aver interpreter/runtime adapters in this repository
  • Rust projects generated by aver compile -t rust

The crate exists so Aver semantics live in one place instead of being duplicated between the interpreter and generated Rust output.

§What it contains

  • AverList<T>: persistent list used by Aver list operations
  • AverDisplay: Aver-specific display formatting used by Console.print and string interpolation
  • shared runtime helpers for console, time, disk, env, and string operations
  • shared service types:
    • Header
    • HttpResponse
    • HttpRequest
    • TcpConnection
  • shared service runtimes:
    • tcp
    • http (behind the http feature)
    • http_server

§Features

  • default: no optional dependencies
  • http: enables the HTTP client runtime via ureq

§Stability

This crate is primarily intended to support Aver-generated programs and the Aver interpreter. The public API should be treated as young and evolving.

§Repository

Modules§

http
http_server
tcp

Structs§

AverList
AverListIter
Header
HttpRequest
HttpResponse
TcpConnection

Traits§

AverDisplay

Functions§

append_text
aver_display
console_error
console_print
console_warn
delete_dir
delete_file
env_get
env_set
list_dir
list_uncons
make_dir
path_exists
read_line
read_text
string_join
string_slice
time_now
time_sleep
time_unix_ms
write_text