proc-concat-bytes 0.1.0

Like std::concat but for byte strings
Documentation
  • Coverage
  • 50%
    1 out of 2 items documented1 out of 2 items with examples
  • Size
  • Source code size: 2.14 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 236.07 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 11s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • regiontog/concat-bytes
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • regiontog

Concatenates byte literals

Examples

use proc_concat_bytes::concat_bytes;
let c_str = std::ffi::CStr::from_bytes_with_nul(&concat_bytes!(b"Hello World!", b'\0')[..]).unwrap();