rtz 0.1.0

A tool to easily work with time zones via a binary, a library, or a server.
Documentation

Build and Test codecov Version Crates.io GitHub all releases npm Documentation Rust License:MIT

rtz

A self-contained timezone library / binary / server for Rust / JS (via WASM) (free server).

Binary Usage

Install

Cargo:

$ cargo install rtz

NPM:

$ npm install --save rtzweb

Wasmer

Help Docs


Library Usage

Add this to your Cargo.toml:

[dependencies]
rtz = "*" #choose a version

Examples

JS Usage

Feature Flags

The library and binary both support various feature flags. Of most important note are:

  • default = ["cli"]
  • cli: enables the CLI features, and can be removed if only compiling the library.
  • server: enables the serve subcommand, which starts a Rocket web server that can respond to time zone requests.

Test

cargo test

Bench

cargo bench

License

MIT