simple-test-bbarekas

Crates.iosimple-test-bbarekas
lib.rssimple-test-bbarekas
version0.1.3
sourcesrc
created_at2020-09-18 15:39:21.165771
updated_at2020-11-02 07:30:42.769797
descriptiona simple webserver.
homepage
repositoryhttps://github.com/bbarekas/simple-test-bbarekas
max_upload_size
id290141
size69,410
Bill Barekas (bbarekas)

documentation

README

simple-test-bbarekas

a crate for building a simple blocking HTTP server

Build Status crates.io

NOTE: this crate has not been evaluated for security concerns. therefore, we recommend that you take caution before using it in a production application.

up and running

this crate is written in the rust programming language. you'll need rust to run this crate. you can install rust using rustup. simple-test-bbarekas requires that you use rust version 1.20+.

to get this crate running locally:

  1. fork and clone this repository
  2. cd simple-test-bbarekas
  3. cargo build

to use this crate in your project, add the following line to your Cargo.toml in the [dependencies] section:

simple-test-bbarekas = "0.1.0"

to see this crate in action, check out the examples.

tests

to test this crate locally, run:

cargo test

docs

this crate has documentation. to build and open the docs locally:

cargo doc --open

examples

there are several examples provided with this crate:

to run an example:

cargo run --example <name of example>

this crate uses the log crate for logging. in the example, we use the env-logger crate to display the logs. by default, env-logger only prints out error-level logs. to enable info-level logging as well, you'll need to do one of the following depending on your system:

on Linux/OS X:

RUST_LOG="simple_test_bbarekas=info" cargo run --example server

on Windows PowerShell:

$env:RUST_LOG="simple_test_bbarekas=info";
cargo run --example server

license

simple-test-bbarekas is licensed under both the Apache2 and MIT licenses.

Commit count: 10

cargo fmt