[package]
edition = "2024"
rust-version = "1.88"
name = "gsym-rs"
version = "0.1.6"
build = false
exclude = [
"/.github",
"/assets",
"/fuzz",
"/scripts",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-Rust reader, writer, and Linux ELF/DWARF converter for LLVM GSYM"
readme = "README.md"
keywords = [
"gsym",
"dwarf",
"elf",
"symbolication",
"debugging",
]
categories = [
"development-tools::debugging",
"parser-implementations",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/pablogsal/gsym-rs"
[package.metadata.docs.rs]
all-features = true
targets = ["x86_64-unknown-linux-gnu"]
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
convert = [
"dep:crc32fast",
"dep:gimli",
"dep:lzma-rs",
"dep:object",
]
debuginfod = [
"convert",
"dep:debuginfod-client",
]
default = [
"mmap",
"convert",
"debuginfod",
]
mmap = ["dep:memmap2"]
[lib]
name = "gsym"
path = "src/lib.rs"
[[bin]]
name = "gsymtool"
path = "gsymtool/src/main.rs"
required-features = ["convert"]
[[example]]
name = "generate_fuzz_corpus"
path = "examples/generate_fuzz_corpus.rs"
[[test]]
name = "cli"
path = "gsymtool/tests/cli/main.rs"
required-features = ["convert"]
[[test]]
name = "convert"
path = "tests/convert/main.rs"
[[test]]
name = "reader"
path = "tests/reader/main.rs"
[[test]]
name = "writer"
path = "tests/writer/main.rs"
[[bench]]
name = "gsym"
path = "benches/gsym.rs"
harness = false
[[bench]]
name = "writer"
path = "benches/writer.rs"
harness = false
[dependencies.anstream]
version = "1.0"
[dependencies.anstyle]
version = "1.0"
[dependencies.anyhow]
version = "1.0"
[dependencies.clap]
version = "4.5"
features = ["derive"]
[dependencies.clap_complete]
version = "4.5"
[dependencies.crc32fast]
version = "1.5"
optional = true
[dependencies.debuginfod-client]
version = "0.3"
features = ["reqwest"]
optional = true
default-features = false
package = "debuginfod"
[dependencies.gimli]
version = "0.34"
features = [
"read",
"std",
]
optional = true
default-features = false
[dependencies.hashbrown]
version = "0.17"
features = ["inline-more"]
default-features = false
[dependencies.hex]
version = "0.4"
features = ["std"]
default-features = false
[dependencies.lzma-rs]
version = "0.3"
optional = true
[dependencies.memmap2]
version = "0.9.8"
optional = true
[dependencies.object]
version = "0.40"
features = [
"read",
"compression",
"elf",
"std",
]
optional = true
default-features = false
[dependencies.smallvec]
version = "1.15"
[dependencies.tempfile]
version = "3.20"
[dependencies.thiserror]
version = "2.0"
[dependencies.zerocopy]
version = "0.8.56"
[dev-dependencies.criterion]
version = "5.0.1"
features = ["html_reports"]
package = "codspeed-criterion-compat"
[dev-dependencies.proptest]
version = "1.7"
[dev-dependencies.tempfile]
version = "3.20"
[target.'cfg(target_os = "linux")'.dependencies.mimalloc]
version = "0.1.52"
[lints.clippy]
allow_attributes = "warn"
allow_attributes_without_reason = "warn"
as_ptr_cast_mut = "warn"
as_underscore = "warn"
branches_sharing_code = "warn"
cargo_common_metadata = "warn"
cast_possible_truncation = "warn"
cast_possible_wrap = "warn"
cast_precision_loss = "warn"
cast_sign_loss = "warn"
clear_with_drain = "warn"
clone_on_ref_ptr = "warn"
coerce_container_to_any = "warn"
collection_is_never_read = "warn"
dbg_macro = "warn"
debug_assert_with_mut_call = "warn"
derive_partial_eq_without_eq = "warn"
doc_link_code = "warn"
empty_drop = "warn"
empty_enum_variants_with_brackets = "warn"
equatable_if_let = "warn"
exit = "warn"
fallible_impl_from = "warn"
filetype_is_file = "warn"
float_cmp_const = "warn"
fn_to_numeric_cast_any = "warn"
future_not_send = "warn"
get_unwrap = "warn"
imprecise_flops = "warn"
infinite_loop = "warn"
iter_on_empty_collections = "warn"
iter_on_single_items = "warn"
iter_with_drain = "warn"
large_stack_frames = "warn"
literal_string_with_formatting_args = "warn"
lossy_float_literal = "warn"
mem_forget = "warn"
missing_const_for_fn = "warn"
mixed_read_write_in_expression = "warn"
mutex_atomic = "warn"
needless_collect = "warn"
needless_pass_by_ref_mut = "warn"
needless_type_cast = "warn"
negative_feature_names = "warn"
non_send_fields_in_send_ty = "warn"
nonstandard_macro_braces = "warn"
option_if_let_else = "warn"
or_fun_call = "warn"
path_buf_push_overwrite = "warn"
rc_buffer = "warn"
rc_mutex = "warn"
read_zero_byte_vec = "warn"
redundant_clone = "warn"
redundant_feature_names = "warn"
rest_pat_in_fully_bound_structs = "warn"
same_name_method = "warn"
search_is_some = "warn"
set_contains_or_insert = "warn"
significant_drop_in_scrutinee = "warn"
significant_drop_tightening = "warn"
single_option_map = "warn"
str_to_string = "warn"
string_lit_as_bytes = "warn"
string_slice = "warn"
suboptimal_flops = "warn"
suspicious_operation_groupings = "warn"
todo = "warn"
too_long_first_doc_paragraph = "warn"
trailing_empty_array = "warn"
trait_duplication_in_bounds = "warn"
transmute_undefined_repr = "warn"
trivial_regex = "warn"
tuple_array_conversions = "warn"
type_repetition_in_bounds = "warn"
undocumented_unsafe_blocks = "warn"
unimplemented = "warn"
uninhabited_references = "warn"
unnecessary_safety_comment = "warn"
unnecessary_safety_doc = "warn"
unnecessary_self_imports = "warn"
unnecessary_struct_initialization = "warn"
unneeded_field_pattern = "warn"
unused_peekable = "warn"
unused_rounding = "warn"
unwrap_in_result = "warn"
use_self = "warn"
useless_let_if_seq = "warn"
verbose_file_reads = "warn"
volatile_composites = "warn"
while_float = "warn"
wildcard_dependencies = "warn"
wildcard_enum_match_arm = "warn"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
ffi_unwind_calls = "warn"
let_underscore_drop = "warn"
meta_variable_misuse = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
non_ascii_idents = "deny"
redundant_lifetimes = "warn"
single_use_lifetimes = "warn"
trivial_casts = "warn"
trivial_numeric_casts = "warn"
unreachable_pub = "warn"
unsafe_code = "deny"
unused_import_braces = "warn"
unused_lifetimes = "warn"
unused_macro_rules = "warn"
unused_qualifications = "warn"
variant_size_differences = "warn"
[profile.bench]
strip = "none"
[profile.release]
lto = "thin"
codegen-units = 1
strip = "symbols"