• Stars
    star
    219
  • Rank 181,133 (Top 4 %)
  • Language
    Rust
  • License
    Apache License 2.0
  • Created over 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple macros to write colored and formatted text to a terminal. Based on `termcolor`, thus also cross-platform.

Bunt: simple macro-based terminal colors and styles

CI status of master Crates.io Version docs.rs

bunt offers macros to easily print colored and formatted text to a terminal. It is just a convenience API on top of termcolor. bunt is implemented using procedural macros, but it does not depend on syn and compiles fairly quickly.

Minimum Supported Rust Version: 1.46.0

// Style tags will color/format text between the tags.
bunt::println!("I really like {$yellow}lemons{/$}! Like, {$blue+italic}a lot{/$}.");

// To style a single argument, you can also use the `{[style]...}` syntax. This
// can be combined with style tags.
let v = vec![1, 2, 3];
bunt::println!("Here is some data: {[green]:?}. {$bold}Length: {[cyan]}{/$}", v, v.len());

See the documentation for more information.

Status of this project

This is still a young project, but I already use it in two applications of mine. The syntax is certainly not final yet. Seeking feedback from the community!



License

Licensed under either of Apache License, Version 2.0 or MIT license at your option. Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

More Repositories

1

programmieren-in-rust

Course page „Programmieren in Rust“, University Osnabrück (German!)
Rust
266
star
2

confique

Type-safe, layered, light-weight, `serde`-based configuration library
Rust
156
star
3

libtest-mimic

A small test framework to write your own test harness that looks and behaves like the built-in test harness used by `rustc --test`
Rust
92
star
4

term-painter

Cross-platform Rust library for coloring and formatting terminal output
Rust
78
star
5

lox

Fast polygon mesh library with different data structures and traits to abstract over those.
Rust
71
star
6

litrs

Parsing and inspecting Rust literals (particularly useful for proc macros)
Rust
41
star
7

atomig

Generic and convenient `std` atomics via `Atomic<T>`
Rust
36
star
8

penguin

Dev server with live-reloading, a file server, proxy support, and more. Language and framework agnostic. 🐧
Rust
32
star
9

reinda

Easily embed and manage assets for your web application to build standalone-executables. Offers filename hashing, templating and more.
Rust
28
star
10

mahboi

Yet another Game Boy emulator
Rust
19
star
11

stable-vec

A Vec-like collection which guarantees stable indices and features O(1) deletion of elements
Rust
14
star
12

floof

Language-agnostic, simple-to-use development server, file-watcher and tiny task runner mainly useful for webdev.
Rust
11
star
13

beaver

Simulating Turing machines for the Busy Beaver game
Rust
11
star
14

lumina

(Not maintained anymore!) Lumina Graphics Library
C++
10
star
15

lina

Strongly typed linear algebra library with a focus on 3D applications like games (i.e. low-dimensional vectors and matrices)
Rust
9
star
16

cantucci

🍞 Fractal Renderer
Rust
7
star
17

LukasKalbertodt.github.io

Personal Github Page
SCSS
4
star
18

splop

Helper functions to determine the first/last repetition of something
Rust
3
star
19

my-albert-extensions

My personal Albert extensions
Python
3
star
20

gnome-snazzy

Snazzy color scheme for Gnome-Terminal
Shell
3
star
21

drencher

Rust implementation of and solver for http://flashbynight.com/drench/
Rust
3
star
22

masters-thesis

My master's thesis about writing the polygon mesh library `lox` in Rust
TeX
3
star
23

leer

A tiny trait to abstract over types that have a notion of “being empty”
Rust
2
star
24

domsl

Abandoned experiment
Rust
2
star
25

mauzi

Experimental i18n library based on proc_macros (not actively maintained anymore)
Rust
2
star
26

srgb-test

Rust
1
star
27

xswag-syntax-java

(Not maintained anymore) Java Parser in Rust (library for xswag)
Rust
1
star
28

psymagen

Shell
1
star
29

novice-tools

Small and easy functions for programming beginners in Rust
Rust
1
star
30

powerpoint-rust-tools

Horribly written PowerPoint Add-In to help with Rust code on slides
C#
1
star
31

seek-ext

[Deprecated] Convenience Methods for `io::Seek`
Rust
1
star
32

sim

Implementation of the Sim pencil game
Rust
1
star
33

luten

(Not maintained anymore!)
Rust
1
star
34

miniql

Minimal graphql server test app
Rust
1
star