-
Notifications
You must be signed in to change notification settings - Fork 141
Expand file tree
/
Copy pathCargo.toml
More file actions
62 lines (53 loc) · 1.69 KB
/
Copy pathCargo.toml
File metadata and controls
62 lines (53 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[package]
name = "base64"
version = "0.23.0"
authors = ["Marshall Pierce <marshall@mpierce.org>"]
description = "encodes and decodes base64 as bytes or utf8"
repository = "https://github.com/marshallpierce/rust-base64"
documentation = "https://docs.rs/base64"
readme = "README.md"
keywords = ["base64", "utf8", "encode", "decode", "no_std"]
categories = ["encoding"]
license = "MIT OR Apache-2.0"
edition = "2021"
# dev-dependencies require newer toolchains, but the main code doesn't
rust-version = "1.71.0"
[[bench]]
name = "benchmarks"
harness = false
required-features = ["std"]
[[example]]
name = "base64"
required-features = ["std"]
[[test]]
name = "tests"
required-features = ["alloc"]
[[test]]
name = "encode"
required-features = ["alloc"]
[package.metadata.docs.rs]
rustdoc-args = ["--generate-link-to-definition"]
[dev-dependencies]
# 0.8.0 uses alloca, which breaks miri compilation
criterion = "0.7.0"
rand = "0.10.2"
# Latest is 4.4.13 but specifies MSRV in Cargo.toml which means we can't depend
# on it (even though we won't compile it in MSRV CI).
clap = { version = "4.6.4", features = ["derive"] }
strum = { version = "0.28.0", features = ["derive"] }
# test fixtures for engine tests
rstest = "0.26.1"
rstest_reuse = "0.7.0"
[features]
default = ["std", "simd-unsafe"]
alloc = []
std = ["alloc"]
# Enables the SIMD-accelerated engines (`Simd`, `Avx2`, `Neon`). Off by default. It is the only
# feature that introduces `unsafe`; with it disabled the crate is `#![forbid(unsafe_code)]`.
simd-unsafe = []
[profile.bench]
# Useful for better disassembly when using `perf record` and `perf annotate`
debug = true
[profile.test]
# Faster tests save much more than the increase in compilation time
opt-level = 3