1 | [package] |
2 | name = "base64" |
3 | version = "0.21.7" |
4 | authors = ["Alice Maz <alice@alicemaz.com>" , "Marshall Pierce <marshall@mpierce.org>" ] |
5 | description = "encodes and decodes base64 as bytes or utf8" |
6 | repository = "https://github.com/marshallpierce/rust-base64" |
7 | documentation = "https://docs.rs/base64" |
8 | readme = "README.md" |
9 | keywords = ["base64" , "utf8" , "encode" , "decode" , "no_std" ] |
10 | categories = ["encoding" ] |
11 | license = "MIT OR Apache-2.0" |
12 | edition = "2018" |
13 | # dev-dependencies require 1.65, but the main code doesn't |
14 | # This option was added in 1.56, keep it for when we bump MSRV. |
15 | rust-version = "1.48.0" |
16 | |
17 | [[bench]] |
18 | name = "benchmarks" |
19 | harness = false |
20 | required-features = ["std" ] |
21 | |
22 | [[example]] |
23 | name = "base64" |
24 | required-features = ["std" ] |
25 | |
26 | [[test]] |
27 | name = "tests" |
28 | required-features = ["alloc" ] |
29 | |
30 | [[test]] |
31 | name = "encode" |
32 | required-features = ["alloc" ] |
33 | |
34 | [package.metadata.docs.rs] |
35 | rustdoc-args = ["--generate-link-to-definition" ] |
36 | |
37 | [dev-dependencies] |
38 | criterion = "0.4.0" |
39 | rand = { version = "0.8.5" , features = ["small_rng" ] } |
40 | # Latest is 4.4.13 but specifies MSRV in Cargo.toml which means we can't depend |
41 | # on it (even though we won't compile it in MSRV CI). |
42 | clap = { version = "3.2.25" , features = ["derive" ] } |
43 | strum = { version = "0.25" , features = ["derive" ] } |
44 | # test fixtures for engine tests |
45 | rstest = "0.13.0" |
46 | rstest_reuse = "0.6.0" |
47 | once_cell = "1" |
48 | |
49 | [features] |
50 | default = ["std" ] |
51 | alloc = [] |
52 | std = ["alloc" ] |
53 | |
54 | [profile.bench] |
55 | # Useful for better disassembly when using `perf record` and `perf annotate` |
56 | debug = true |
57 | |
58 | [profile.test] |
59 | # Faster tests save much more than the increase in compilation time |
60 | opt-level = 3 |
61 | |