bstring 0.1.0

Byte string formatting and manipulation
Documentation
  • Coverage
  • 100%
    171 out of 171 items documented9 out of 149 items with examples
  • Size
  • Source code size: 137.2 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 29.94 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 13s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • murarth/bstring
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • murarth

bstring

The bstring crate provides two types, bstr and BString, which implement str-like functions for byte strings with unknown encoding.

The bstring_macros crate provides the bformat! macro, which implements byte string formatting, similar to format!.

These types are intended to assist when implementing text-based protocols with no set character encoding.

bstring documentation

bstring_macros documentation

Building

To include bstring in your project, add the following to your Cargo.toml:

[dependencies]
bstring = "0.1"
bstring_macros = "0.1"

And the following to your crate root:

extern crate bstring;
#[macro_use] extern crate bstring_macros;

License

bstring is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE and LICENSE-MIT for details.