[package]
edition = "2021"
rust-version = "1.75"
name = "aprender-profile"
version = "0.32.0"
authors = ["Pragmatic AI Labs <info@paiml.com>"]
build = false
exclude = [
"book/",
"docs/",
"tests/",
".pmat/",
".pmat-metrics/",
".pmat-work/",
".github/",
"scripts/",
"*.md",
"!README.md",
"roadmap.yaml",
"tempo-config.yml",
"*.svg",
"**/*.profraw",
"**/*.profdata",
"**/*.proptest-regressions",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure Rust system call tracer with source-aware correlation for Rust binaries"
readme = "README.md"
keywords = [
"strace",
"tracing",
"syscall",
"debugging",
"profiling",
]
categories = [
"development-tools::debugging",
"development-tools::profiling",
]
license = "MIT"
repository = "https://github.com/paiml/renacer"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--generate-link-to-definition"]
[package.metadata.release]
shared-version = true
[[package.metadata.release.pre-release-replacements]]
file = "CHANGELOG.md"
search = '## \[Unreleased\]'
replace = "## [{{version}}] - {{date}}"
[features]
chaos-basic = []
chaos-byzantine = ["chaos-network"]
chaos-full = [
"chaos-byzantine",
"dep:loom",
"dep:arbitrary",
]
chaos-network = ["chaos-basic"]
cuda-tracing = [
"dep:cudarc",
"otlp",
]
default = ["otlp"]
fuzz = ["dep:arbitrary"]
gpu-tracing = [
"dep:wgpu",
"dep:wgpu-profiler",
"otlp",
]
otlp = [
"dep:opentelemetry",
"dep:opentelemetry_sdk",
"dep:opentelemetry-otlp",
"dep:tokio",
]
[lib]
name = "renacer"
path = "src/lib.rs"
[[bin]]
name = "aprender-profile"
path = "src/main.rs"
[[example]]
name = "brick_trace_demo"
path = "examples/brick_trace_demo.rs"
[[example]]
name = "buggy_server"
path = "examples/buggy_server.rs"
[[example]]
name = "build_time_assertions"
path = "examples/build_time_assertions.rs"
[[example]]
name = "process_tracer_demo"
path = "examples/process_tracer_demo.rs"
[[example]]
name = "simd_visualization"
path = "examples/simd_visualization.rs"
[[example]]
name = "validate_golden_trace"
path = "examples/validate_golden_trace.rs"
[[bench]]
name = "graph_construction"
path = "benches/graph_construction.rs"
harness = false
[[bench]]
name = "memory_pool"
path = "benches/memory_pool.rs"
harness = false
[[bench]]
name = "metrics_throughput"
path = "benches/metrics_throughput.rs"
harness = false
[[bench]]
name = "otlp_export"
path = "benches/otlp_export.rs"
harness = false
[[bench]]
name = "ring_buffer_overhead"
path = "benches/ring_buffer_overhead.rs"
harness = false
[[bench]]
name = "syscall_overhead"
path = "benches/syscall_overhead.rs"
harness = false
[[bench]]
name = "trueno_db_queries"
path = "benches/trueno_db_queries.rs"
[[bench]]
name = "visualization_simd"
path = "benches/visualization_simd.rs"
harness = false
[dependencies.arbitrary]
version = "1.3"
features = ["derive"]
optional = true
[dependencies.clap]
version = "4.5"
features = [
"derive",
"cargo",
"std",
"help",
"usage",
"error-context",
"suggestions",
]
default-features = false
[dependencies.libc]
version = "0.2"
[dependencies.loom]
version = "0.7"
optional = true
[dev-dependencies.assert_cmd]
version = "2.0"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.predicates]
version = "3.1"
[dev-dependencies.proptest]
version = "1.5"
[dev-dependencies.reqwest]
version = "0.12"
features = [
"blocking",
"json",
]
[dev-dependencies.serde_json]
version = "1.0"
[dev-dependencies.serial_test]
version = "3.2"
[dev-dependencies.tempfile]
version = "3.13"
[target."cfg(unix)".dependencies.addr2line]
version = "0.25"
features = ["std"]
default-features = false
[target."cfg(unix)".dependencies.anyhow]
version = "1.0"
[target."cfg(unix)".dependencies.aprender]
version = "0.32.0"
package = "aprender-core"
[target."cfg(unix)".dependencies.backtrace]
version = "0.3"
[target."cfg(unix)".dependencies.crossbeam]
version = "0.8"
features = [
"crossbeam-channel",
"crossbeam-queue",
"std",
]
default-features = false
[target."cfg(unix)".dependencies.crossterm]
version = "0.28"
[target."cfg(unix)".dependencies.cudarc]
version = "0.18"
features = [
"f16",
"cuda-version-from-build-system",
]
optional = true
[target."cfg(unix)".dependencies.dashmap]
version = "6.1"
[target."cfg(unix)".dependencies.fnv]
version = "1.0"
[target."cfg(unix)".dependencies.gimli]
version = "0.32"
features = [
"read",
"std",
"endian-reader",
]
default-features = false
[target."cfg(unix)".dependencies.hex]
version = "0.4"
features = ["std"]
default-features = false
[target."cfg(unix)".dependencies.memmap2]
version = "0.9"
[target."cfg(unix)".dependencies.nix]
version = "0.30"
features = [
"ptrace",
"process",
"signal",
"uio",
"resource",
"user",
]
default-features = false
[target."cfg(unix)".dependencies.object]
version = "0.38"
features = [
"read",
"elf",
"std",
]
default-features = false
[target."cfg(unix)".dependencies.opentelemetry]
version = "0.31.0"
optional = true
[target."cfg(unix)".dependencies.opentelemetry-otlp]
version = "0.31.0"
features = [
"grpc-tonic",
"http-proto",
]
optional = true
[target."cfg(unix)".dependencies.opentelemetry_sdk]
version = "0.31.0"
features = ["rt-tokio"]
optional = true
[target."cfg(unix)".dependencies.rand]
version = "0.8"
features = [
"std",
"std_rng",
]
default-features = false
[target."cfg(unix)".dependencies.regex]
version = "1.10"
features = [
"std",
"perf",
]
default-features = false
[target."cfg(unix)".dependencies.renacer-core]
version = "0.1"
[target."cfg(unix)".dependencies.rmp-serde]
version = "1.3"
[target."cfg(unix)".dependencies.serde]
version = "1.0"
features = [
"derive",
"std",
]
default-features = false
[target."cfg(unix)".dependencies.serde_json]
version = "1.0"
features = ["std"]
default-features = false
[target."cfg(unix)".dependencies.sha2]
version = "0.10"
features = ["std"]
default-features = false
[target."cfg(unix)".dependencies.static_assertions]
version = "1.1"
[target."cfg(unix)".dependencies.thiserror]
version = "2.0"
[target."cfg(unix)".dependencies.tokio]
version = "1"
features = [
"rt",
"rt-multi-thread",
"macros",
]
optional = true
[target."cfg(unix)".dependencies.toml]
version = "0.8"
features = [
"parse",
"display",
]
default-features = false
[target."cfg(unix)".dependencies.tracing]
version = "0.1"
features = ["std"]
default-features = false
[target."cfg(unix)".dependencies.tracing-subscriber]
version = "0.3"
features = [
"env-filter",
"fmt",
"std",
"ansi",
]
default-features = false
[target."cfg(unix)".dependencies.trueno]
version = "0.17"
[target."cfg(unix)".dependencies.trueno-db]
version = "0.3.16"
[target."cfg(unix)".dependencies.trueno-graph]
version = "0.32.0"
package = "aprender-graph"
[target."cfg(unix)".dependencies.trueno-viz]
version = "0.2"
features = ["monitor"]
default-features = false
[target."cfg(unix)".dependencies.wgpu]
version = "23.0"
optional = true
[target."cfg(unix)".dependencies.wgpu-profiler]
version = "0.18"
optional = true
[lints.clippy]
approx_constant = "allow"
assertions_on_constants = "allow"
assigning_clones = "allow"
bool_to_int_with_if = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
checked_conversions = "warn"
clone_on_copy = "allow"
cloned_instead_of_copied = "allow"
cloned_ref_to_slice_refs = "allow"
const_is_empty = "allow"
default_constructed_unit_structs = "allow"
default_trait_access = "allow"
derivable_impls = "allow"
doc_markdown = "allow"
empty_line_after_doc_comments = "allow"
empty_line_after_outer_attr = "allow"
erasing_op = "allow"
excessive_precision = "allow"
explicit_deref_methods = "warn"
explicit_iter_loop = "warn"
field_reassign_with_default = "allow"
float_cmp = "allow"
format_push_string = "allow"
identity_op = "allow"
if_not_else = "allow"
ignore_without_reason = "allow"
implicit_clone = "warn"
inconsistent_struct_constructor = "warn"
index_refutable_slice = "allow"
inefficient_to_string = "allow"
items_after_statements = "allow"
iter_cloned_collect = "allow"
large_stack_arrays = "allow"
len_zero = "allow"
manual_contains = "allow"
manual_div_ceil = "allow"
manual_let_else = "allow"
manual_midpoint = "allow"
manual_ok_or = "warn"
manual_range_contains = "allow"
many_single_char_names = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
match_wildcard_for_single_variants = "allow"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_borrows_for_generic_args = "allow"
needless_pass_by_value = "allow"
needless_range_loop = "allow"
needless_raw_string_hashes = "allow"
no_effect_underscore_binding = "allow"
nonminimal_bool = "allow"
overly_complex_bool_expr = "allow"
print_literal = "allow"
ptr_arg = "allow"
redundant_closure_for_method_calls = "allow"
redundant_guards = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
similar_names = "allow"
single_char_pattern = "allow"
single_match_else = "allow"
stable_sort_primitive = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
type_complexity = "allow"
uninlined_format_args = "allow"
unnecessary_debug_formatting = "allow"
unnecessary_literal_bound = "allow"
unnecessary_literal_unwrap = "allow"
unnecessary_map_or = "allow"
unnecessary_wraps = "allow"
unnested_or_patterns = "warn"
unreadable_literal = "allow"
unused_self = "allow"
used_underscore_binding = "warn"
useless_vec = "allow"
vec_init_then_push = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
missing_debug_implementations = "allow"
missing_docs = "allow"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "allow"
unsafe_code = "deny"
unsafe_op_in_unsafe_fn = "warn"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_qualifications = "allow"
[lints.rust.rust_2018_idioms]
level = "warn"
priority = -1
[lints.rust.unexpected_cfgs]
level = "warn"
priority = 0
check-cfg = [
"cfg(kani)",
"cfg(coverage_nightly)",
'cfg(feature, values("explainable-monitor-integration"))',
]
[profile.dev]
opt-level = 0
debug = 2
panic = "abort"
[profile.release]
opt-level = 3
lto = true
codegen-units = 1
strip = true
[profile.test]
opt-level = 0
debug = 2