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

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

[dependencies]
yaxpeax-arch = { version = "0.0.5", 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 }

[[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 = []