bitbar 0.4.1

Helper library for writing BitBar plugins
docs.rs failed to build bitbar-0.4.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: bitbar-0.8.2

This is bitbar, a library crate which includes helpers for writing BitBar plugins in Rust. The main feature is the Menu type whose Display implementation generates output that conforms to the BitBar plugin API.

Features

The following features can be enabled via Cargo:

  • base64: Adds a depencency to the base64 crate and implements conversion methods from PNG files that aren't already base64-encoded to Images.
  • css-colors: Adds a dependency to the css-colors crate and implements IntoColor for its color types RGB, RGBA, HSL, and HSLA.
  • image: Adds a depencency to the image crate. If the base64 feature is also enabled, implements TryFrom<DynamicImage> for Image.
  • serenity: Adds a dependency to the serenity crate and implements IntoColor for its Colour type.
  • url1: Adds a dependency to the outdated version 1 of the url crate and implements IntoUrl for its Url type.

Example

use bitbar::{Menu, MenuItem};

fn main() {
print!("{}", Menu(vec![
MenuItem::new("Title"),
MenuItem::Sep,
MenuItem::new("Menu Item")
]));
}