| 1 |
This library provides macros to define compile-time byte slices and arrays from |
| 2 |
encoded strings (using common bases like base64, base32, or hexadecimal, and |
| 3 |
also custom bases). It also provides a macro to define compile-time custom |
| 4 |
encodings to be used with the [data-encoding] crate. |
| 5 |
|
| 6 |
See the [documentation] for more details. |
| 7 |
|
| 8 |
Up to Rust 1.50, you may need to add the following to your `.cargo/config.toml` |
| 9 |
to use this library in no-std or no-alloc environments: |
| 10 |
|
| 11 |
```toml |
| 12 |
[unstable] |
| 13 |
features = ["host_dep"] |
| 14 |
``` |
| 15 |
|
| 16 |
From Rust 1.51, you may need to add the following to your `Cargo.toml`: |
| 17 |
|
| 18 |
```toml |
| 19 |
[package] |
| 20 |
resolver = "2" |
| 21 |
``` |
| 22 |
|
| 23 |
[data-encoding]: https://crates.io/crates/data-encoding |
| 24 |
[documentation]: https://docs.rs/data-encoding-macro |