Crate bdrck[][src]

bdrck is a crate which contains some basic foundational tools. In general,

Modules

cli

Utilities for command-line interfaces.

configuration

The configuration module contains utilities for persisting application configuration to disk.

crypto

crypto contains some basic cryptographic primitives, built largely on top of NaCl, which are generally useful for any program which performs crypto ops.

error

error defines error types specific to bdrck, which properly aggregates errors from all of bdrck's dependencies.

fs

fs provides various utilities for interacting with the filesystem.

http

http provides a really thin HTTP client wrapper around reqwest. The main value-add is the addition of a mechanism for recording HTTP sessions, which can be used for generating data for unit tests and then replaying it during the test so we can verify the client's behavior given previously observed server behavior.

io

io provides additional small utilities on top of std::io.

logging

logging provides Logger implementations suitable for either command-line applications or serving daemons.

net

net provides additional network-related utilities, on top of what is available in std.

testing

testing provides utilities which are useful for unit testing real production code.

Functions

init

This function must be called before calling any other library code, or else undefined behavior (thread safety problems in particular) may result. This is due to underlying C library dependencies.