aboutsummaryrefslogtreecommitdiff
path: root/Cargo.toml
blob: a440d12afaf8097777c4f63413934552f8fe70a3 (plain)
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
[package]

name = "yaxpeax-x86"
version = "1.1.4"
authors = [ "iximeow <me@iximeow.net>" ]
license = "0BSD"
repository = "http://git.iximeow.net/yaxpeax-x86/"
description = "x86 decoders for the yaxpeax project"
readme = "README.md"
edition = "2018"

[dependencies]
yaxpeax-arch = { version = "0.2.7", default-features = false, features = [] }
"num-traits" = { version = "0.2", default-features = false }
"serde" = { version = "1.0", optional = true }
"serde_json" = { version = "1.0", optional = true }
"serde_derive" = { version = "1.0", optional = true }
"cfg-if" = "1.0.0"

[dev-dependencies]
rand = "0.8.4"

[[test]]
name = "test"
path = "test/test.rs"

[[bench]]
name = "bench"
path = "test/bench.rs"

[profile.bench]
opt-level = 3
lto = true

[profile.release]
opt-level = 3
lto = true

[features]
default = ["std", "colors", "use-serde", "fmt"]

# opt-in for some apis that are really much nicer with String
std = []

# feature for formatting instructions and their components
fmt = []

use-serde = ["yaxpeax-arch/use-serde", "serde", "serde_derive"]

colors = ["yaxpeax-arch/colors"]

# This enables some capstone benchmarks over the same
# instruction bytes used to bench this code.
capstone_bench = []