84b75ee6b5
The upstream libhackrf v0.1.1 crate fails to compile on ARM because c_char is u8 on ARM (not i8 like on x86). The transmute at lib.rs:102 explicitly casts &[i8] -> &[u8], but on ARM the source is already &[u8], causing a type mismatch. Vendored the crate at vendor/libhackrf/ with the transmute replaced by slice::from_raw_parts with a pointer cast, which works on both architectures. Also cleaned up transmute calls in transfer.rs. Fixes #1
64 lines
1.1 KiB
TOML
64 lines
1.1 KiB
TOML
[package]
|
|
name = "kat"
|
|
version = "1.1.3"
|
|
edition = "2021"
|
|
description = "Keyfob Analysis Toolkit - HackRF/RTL-SDR signal capture, decode, and transmit (HackRF only)"
|
|
authors = ["KAT Team"]
|
|
license = "BSD-3-Clause"
|
|
|
|
[dependencies]
|
|
# TUI
|
|
ratatui = "0.29"
|
|
crossterm = "0.28"
|
|
|
|
# HackRF library
|
|
libhackrf = "0.1"
|
|
|
|
# RTL-SDR (receive-only support, e.g. RTL433 hardware)
|
|
rtl-sdr-rs = "0.3"
|
|
|
|
# Signal processing
|
|
num-complex = "0.4"
|
|
|
|
# Async runtime
|
|
tokio = { version = "1.43", features = ["full"] }
|
|
|
|
# Serialization
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
toml = "0.8"
|
|
|
|
# INI config
|
|
configparser = "3"
|
|
|
|
# Config directory
|
|
dirs = "5.0"
|
|
|
|
# Time handling
|
|
chrono = { version = "0.4", features = ["serde"] }
|
|
|
|
# Error handling
|
|
anyhow = "1.0"
|
|
thiserror = "2.0"
|
|
|
|
# Logging
|
|
tracing = "0.1"
|
|
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
|
|
|
|
# Bit manipulation
|
|
bitvec = "1.0"
|
|
|
|
# TTY detection
|
|
atty = "0.2"
|
|
|
|
[build-dependencies]
|
|
pkg-config = "0.3"
|
|
|
|
[patch.crates-io]
|
|
# Vendored with ARM fix: c_char is u8 on ARM, so the upstream transmute fails
|
|
libhackrf = { path = "vendor/libhackrf" }
|
|
|
|
[profile.release]
|
|
opt-level = 3
|
|
lto = true
|