-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
95 lines (76 loc) · 2.05 KB
/
Copy pathCargo.toml
File metadata and controls
95 lines (76 loc) · 2.05 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# jvmti - Complete JNI/JVMTI bindings for Rust
#
# Zero dependencies by default. Verified against JDK 27. Compatible with JDK 8+.
[package]
name = "jvmti-bindings"
version = "2.2.1"
edition = "2021"
rust-version = "1.70"
description = "Complete JNI and JVMTI bindings for Rust with zero dependencies by default. Build JVM agents in pure Rust."
license = "MIT OR Apache-2.0"
repository = "https://github.com/JavaPerformance/jvmti"
documentation = "https://docs.rs/jvmti-bindings"
readme = "README.md"
keywords = ["jvm", "jni", "jvmti", "java", "agent"]
categories = ["api-bindings", "development-tools::profiling", "external-ffi-bindings"]
[dependencies]
# No external dependencies by default - all JNI/JVMTI bindings are internal.
# Optional features enable helper dependencies for embedding and benchmark tools.
zip = { version = "0.6", optional = true }
libloading = { version = "0.8", optional = true }
[features]
default = []
advanced = []
heap-graph = ["advanced"]
bench-tools = ["zip"]
embed = ["libloading"]
[dev-dependencies]
criterion = "0.5"
[lib]
crate-type = ["rlib"]
[package.metadata.docs.rs]
all-features = true
# Examples are provided as templates, not runnable binaries.
# JVMTI agents must be built as cdylib in your own crate.
# See examples/*.rs for copy-paste templates.
#
# To use, create your own crate with:
# [lib]
# crate-type = ["cdylib"]
#
# [dependencies]
# jvmti-bindings = "2"
[[example]]
name = "minimal"
crate-type = ["cdylib"]
[[example]]
name = "method_counter"
crate-type = ["cdylib"]
[[example]]
name = "class_logger"
crate-type = ["cdylib"]
[[example]]
name = "profiler"
crate-type = ["cdylib"]
[[example]]
name = "tracer"
crate-type = ["cdylib"]
[[example]]
name = "heap_sampler"
crate-type = ["cdylib"]
[[example]]
name = "attach_logger"
crate-type = ["cdylib"]
[[example]]
name = "event_abi_smoke"
crate-type = ["cdylib"]
[[example]]
name = "embed"
required-features = ["embed"]
[[bench]]
name = "classfile_parse"
harness = false
[[bin]]
name = "jar_parse_bench"
path = "src/bin/jar_parse_bench.rs"
required-features = ["bench-tools"]