[][src]Crate af_lib

A core library and async runtime for Rust applications.

Modules

channel

A multi-producer, multi-consumer channel.

derive

Common derive macros.

env

Functions for inspecting the environment of the current process.

error
fail

Provides the fail! macro and a generic cloneable error type.

fmt

Formatting utilities.

future

Utilities for working with futures and async logic.

iter

Iterator utilities.

lazy
log

Logging provided by the log crate.

math

Traits and utilities for working with numbers.

path

Path string manipulation and inspection.

postgres

Postgres client.

prelude

A “prelude” module containing common imports.

sentry

Sentry client.

slack

Slack client.

Macros

fail

Returns an Err containing a new fail::Error from format args.

Functions

random

Generates a random value.

run

Starts a task from the given future, waits for it to stop, then exits the process.

run_with

Starts a task from the given function, waits for it to stop, then exits the process.

Attribute Macros

main

Defines an async main function for an af-core application.