#string #str #small #tiny #no-std

macro no-std tinystr-macros

Proc macros for TinyStr

2 unstable releases

0.2.0 Oct 12, 2020
0.1.0 Aug 21, 2020

#955 in Data structures

Download history 4677/week @ 2021-09-27 3440/week @ 2021-10-04 3240/week @ 2021-10-11 4823/week @ 2021-10-18 5190/week @ 2021-10-25 3133/week @ 2021-11-01 5531/week @ 2021-11-08 4900/week @ 2021-11-15 3559/week @ 2021-11-22 4492/week @ 2021-11-29 5172/week @ 2021-12-06 6012/week @ 2021-12-13 3657/week @ 2021-12-20 2530/week @ 2021-12-27 3977/week @ 2022-01-03 5190/week @ 2022-01-10

15,777 downloads per month
Used in 29 crates (via tinystr)

Apache-2.0/MIT

12KB
174 lines

A set of proc macros for TinyStr allowing for:

use tinystr::macros::tinystr4;

let UND: TinyStr4 = tinystr4!("und");
assert_eq!(UND, "und");

Status

The crate is fully functional and ready to be used in production. The capabilities can be extended.

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.

lib.rs:

tinystr-macros exports proc macros to convert byte strings to raw TinyStr data.

Not intended for public consumption; use tinystr instead.

Dependencies