File: README.md

package info (click to toggle)
rust-data-encoding-macro 0.1.12-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 92 kB
  • sloc: makefile: 4
file content (24 lines) | stat: -rw-r--r-- 734 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
This library provides macros to define compile-time byte slices and arrays from
encoded strings (using common bases like base64, base32, or hexadecimal, and
also custom bases). It also provides a macro to define compile-time custom
encodings to be used with the [data-encoding] crate.

See the [documentation] for more details.

Up to Rust 1.50, you may need to add the following to your `.cargo/config.toml`
to use this library in no-std or no-alloc environments:

```toml
[unstable]
features = ["host_dep"]
```

From Rust 1.51, you may need to add the following to your `Cargo.toml`:

```toml
[package]
resolver = "2"
```

[data-encoding]: https://crates.io/crates/data-encoding
[documentation]: https://docs.rs/data-encoding-macro