[package]
edition = "2024"
name = "defi-tracker-lifecycle"
version = "0.1.5"
authors = ["Ohad Dahan <ohaddahan@gmail.com>"]
build = false
exclude = [
"docs-site",
"pkg",
"scripts",
".github",
"CLAUDE.md",
"FOR_USER.md",
"SECURITY.md",
".claude",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Pure-logic crate for DeFi order lifecycle tracking on Solana — classification, correlation, and state machine logic"
homepage = "https://defi-tracker-lifecycle.turbine.cash/"
documentation = "https://docs.rs/defi-tracker-lifecycle"
readme = "README.md"
keywords = [
"solana",
"defi",
"lifecycle",
"jupiter",
"kamino",
]
categories = ["cryptography::cryptocurrencies"]
license = "MIT"
repository = "https://github.com/ohaddahan/defi-tracker-lifecycle"
[features]
default = ["native"]
native = [
"dep:solana-pubkey",
"dep:carbon-jupiter-dca-decoder",
"dep:carbon-jupiter-limit-order-decoder",
"dep:carbon-jupiter-limit-order-2-decoder",
"dep:carbon-kamino-limit-order-decoder",
]
wasm = [
"dep:wasm-bindgen",
"dep:serde-wasm-bindgen",
]
[lib]
name = "defi_tracker_lifecycle"
crate-type = [
"cdylib",
"rlib",
]
path = "src/lib.rs"
[[test]]
name = "adapter_fixtures"
path = "tests/adapter_fixtures.rs"
[dependencies.carbon-jupiter-dca-decoder]
version = "0.12"
optional = true
[dependencies.carbon-jupiter-limit-order-2-decoder]
version = "0.12"
optional = true
[dependencies.carbon-jupiter-limit-order-decoder]
version = "0.12"
optional = true
[dependencies.carbon-kamino-limit-order-decoder]
version = "0.12"
optional = true
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde-wasm-bindgen]
version = "0.6"
optional = true
[dependencies.serde_json]
version = "1"
[dependencies.solana-pubkey]
version = "3"
optional = true
[dependencies.strum]
version = "0.26"
[dependencies.strum_macros]
version = "0.26"
[dependencies.thiserror]
version = "2"
[dependencies.tracing]
version = "0.1"
[dependencies.wasm-bindgen]
version = "0.2"
optional = true
[dev-dependencies.cargo-husky]
version = "1"
features = [
"precommit-hook",
"run-cargo-test",
"run-cargo-clippy",
"run-cargo-fmt",
"run-for-all",
]
default-features = false
[lints.clippy]
allow_attributes_without_reason = "deny"
case_sensitive_file_extension_comparisons = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
default_trait_access = "allow"
doc_markdown = "allow"
fn_params_excessive_bools = "allow"
format_push_string = "allow"
items_after_statements = "allow"
manual_let_else = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_pass_by_value = "allow"
no_effect_underscore_binding = "allow"
redundant_closure_for_method_calls = "allow"
ref_option = "allow"
ref_option_ref = "allow"
result_large_err = "allow"
return_self_not_must_use = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
todo = "deny"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
unimplemented = "deny"
uninlined_format_args = "warn"
unnecessary_wraps = "allow"
unused_async = "allow"
used_underscore_binding = "allow"
wildcard_imports = "allow"
[lints.clippy.pedantic]
level = "warn"
priority = -1