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