smallcolors 0.1.2

A less-bloated color crate.
Documentation
  • Coverage
  • 0%
    0 out of 20 items documented0 out of 0 items with examples
  • Size
  • Source code size: 4.79 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.39 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 8s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • RedsonBr140

** :warning: This project was abandoned** If you liked the name, contact me: redson@riseup.net The repository will be deleted.

Usage

Basic Usage

use smallcolors;

fn main() {
    let reset = smallcolors::reset;
    println!("\n{}Hello{reset}, {}this{reset} {}code{reset} exists.", smallcolors::blue, smallcolors::purple, smallcolors::cyan);
    println!("{}Oi{reset}, {}esse{reset} {}código{reset} existe.\n\n", smallcolors::blue, smallcolors::purple, smallcolors::cyan);
}

Bold

use smallcolors;

fn main() {
    let reset = smallcolors::reset;
    println!("\n{}Hello{reset}, {}this{reset} {}code{reset} exists.", smallcolors::bold::blue, smallcolors::bold::purple, smallcolors::bold::cyan);
    println!("{}Oi{reset}, {}esse{reset} {}código{reset} existe.\n\n", smallcolors::bold::blue, smallcolors::bold::purple, smallcolors::bold::cyan);
}