MCPcopy Index your code
hub / github.com/LukasKalbertodt/bunt

github.com/LukasKalbertodt/bunt @v0.2.9

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.9 ↗ · + Follow
91 symbols 146 edges 13 files 18 documented · 20%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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());
<img src="https://github.com/LukasKalbertodt/bunt/raw/v0.2.9/github/readme-image.png" width="75%"></img>

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.

Core symbols most depended-on inside this repo

next
called by 18
macros/src/parse/fmt.rs
parse
called by 14
macros/src/parse/mod.rs
buf
called by 10
tests/main.rs
next_if_eq
called by 5
macros/src/parse/fmt.rs
color_choice_to_u8
called by 4
src/lib.rs
run
called by 3
macros/src/lib.rs
to_tokens
called by 3
macros/src/gen.rs
expect_helper_group
called by 3
macros/src/parse/mod.rs

Shape

Function 45
Method 28
Class 11
Enum 7

Languages

Rust100%

Modules by API surface

tests/main.rs31 symbols
macros/src/ir.rs17 symbols
macros/src/parse/fmt.rs11 symbols
src/lib.rs6 symbols
macros/src/tests.rs5 symbols
macros/src/parse/mod.rs5 symbols
macros/src/lib.rs4 symbols
macros/src/gen.rs4 symbols
macros/src/parse/style.rs2 symbols
macros/src/err.rs2 symbols
examples/wrapper.rs2 symbols
examples/simple.rs1 symbols

For agents

$ claude mcp add bunt \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact