sof 0.6.3

Solana Observer Framework for low-latency shred ingestion and plugin-driven transaction observation
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
name = "sof"
version = "0.6.3"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Solana Observer Framework for low-latency shred ingestion and plugin-driven transaction observation"
homepage = "https://github.com/Lythaeon/sof"
documentation = "https://docs.rs/sof"
readme = "README.md"
keywords = [
    "solana",
    "observer",
    "shreds",
    "plugins",
    "ingestion",
]
categories = [
    "network-programming",
    "cryptography::cryptocurrencies",
]
license = "Apache-2.0 OR MIT"
repository = "https://github.com/Lythaeon/sof"

[package.metadata.docs.rs]
rustdoc-args = ["--html-no-source"]

[features]
default = []
gossip-bootstrap = ["dep:solana-gossip"]
kernel-bypass = ["dep:xdp"]

[lib]
name = "sof"
path = "src/lib.rs"

[[example]]
name = "af_xdp_kernel_bypass_ingress_metrics"
path = "examples/af_xdp_kernel_bypass_ingress_metrics.rs"

[[example]]
name = "derived_state_slot_mirror"
path = "examples/derived_state_slot_mirror.rs"

[[example]]
name = "kernel_bypass_ingress_metrics"
path = "examples/kernel_bypass_ingress_metrics.rs"

[[example]]
name = "non_vote_tx_logger"
path = "examples/non_vote_tx_logger.rs"

[[example]]
name = "observer_runtime"
path = "examples/observer_runtime.rs"

[[example]]
name = "observer_with_multiple_plugins"
path = "examples/observer_with_multiple_plugins.rs"

[[example]]
name = "observer_with_non_vote_plugin"
path = "examples/observer_with_non_vote_plugin.rs"

[[example]]
name = "raydium_contract"
path = "examples/raydium_contract.rs"

[[example]]
name = "runtime_extension_observer_ingress"
path = "examples/runtime_extension_observer_ingress.rs"

[[example]]
name = "runtime_extension_shared_stream"
path = "examples/runtime_extension_shared_stream.rs"

[[example]]
name = "runtime_extension_udp_listener"
path = "examples/runtime_extension_udp_listener.rs"

[[example]]
name = "runtime_extension_websocket_connector"
path = "examples/runtime_extension_websocket_connector.rs"

[[example]]
name = "runtime_extension_with_plugins"
path = "examples/runtime_extension_with_plugins.rs"

[[example]]
name = "tpu_leader_logger"
path = "examples/tpu_leader_logger.rs"

[[test]]
name = "derived_state_runtime_restart_e2e"
path = "tests/derived_state_runtime_restart_e2e.rs"

[[test]]
name = "kernel_bypass_ingress_e2e"
path = "tests/kernel_bypass_ingress_e2e.rs"

[dependencies.arcshift]
version = "0.4.2"

[dependencies.async-trait]
version = "0.1"

[dependencies.bincode]
version = "1.3.3"

[dependencies.core_affinity]
version = "0.8"

[dependencies.crossbeam-queue]
version = "0.3"

[dependencies.crossbeam-skiplist]
version = "0.1"

[dependencies.ed25519-dalek]
version = "2.1"

[dependencies.futures-util]
version = "0.3"
features = [
    "sink",
    "std",
]
default-features = false

[dependencies.nix]
version = "0.30"
features = [
    "net",
    "uio",
]

[dependencies.reed-solomon-erasure]
version = "6.0.0"
features = ["simd-accel"]

[dependencies.reqwest]
version = "0.12"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "rc",
]

[dependencies.serde_json]
version = "1.0"

[dependencies.sha2]
version = "0.10"

[dependencies.socket2]
version = "0.5"

[dependencies.solana-entry]
version = "3.1.8"
features = ["agave-unstable-api"]

[dependencies.solana-gossip]
version = "3.1.8"
features = ["agave-unstable-api"]
optional = true

[dependencies.solana-keypair]
version = "3.0.1"

[dependencies.solana-net-utils]
version = "3.1.8"

[dependencies.solana-pubkey]
version = "3.0.0"
features = ["serde"]

[dependencies.solana-sdk-ids]
version = "3.1.0"

[dependencies.solana-signature]
version = "3.1.0"
features = ["serde"]

[dependencies.solana-signer]
version = "3.0.0"

[dependencies.solana-streamer]
version = "3.1.8"

[dependencies.solana-transaction]
version = "3.0.2"
features = ["serde"]

[dependencies.thiserror]
version = "2.0"

[dependencies.tokio]
version = "1.48"
features = [
    "io-util",
    "macros",
    "rt-multi-thread",
    "net",
    "sync",
    "time",
]

[dependencies.tokio-tungstenite]
version = "0.28"
features = [
    "connect",
    "handshake",
    "rustls-tls-webpki-roots",
]
default-features = false

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
]

[dependencies.wincode]
version = "=0.1.2"

[dependencies.xdp]
version = "0.7.3"
optional = true

[lints.clippy]
arithmetic_side_effects = "deny"
assertions_on_constants = "deny"
await_holding_lock = "deny"
await_holding_refcell_ref = "deny"
bool_assert_comparison = "deny"
borrowed_box = "deny"
box_collection = "deny"
cmp_owned = "deny"
dbg_macro = "deny"
enum_glob_use = "deny"
expect_used = "deny"
filter_map_next = "deny"
flat_map_option = "deny"
float_arithmetic = "deny"
float_cmp = "deny"
format_push_string = "deny"
if_same_then_else = "deny"
ignored_unit_patterns = "deny"
implicit_clone = "deny"
indexing_slicing = "deny"
inefficient_to_string = "deny"
iter_not_returning_iterator = "deny"
large_enum_variant = "deny"
let_underscore_must_use = "deny"
lossy_float_literal = "deny"
manual_string_new = "deny"
map_err_ignore = "deny"
map_flatten = "deny"
match_bool = "deny"
match_ref_pats = "deny"
match_wild_err_arm = "deny"
missing_const_for_fn = "deny"
missing_docs_in_private_items = "deny"
missing_errors_doc = "deny"
missing_panics_doc = "deny"
must_use_candidate = "deny"
mutable_key_type = "deny"
mutex_atomic = "deny"
needless_borrow = "deny"
needless_collect = "deny"
needless_lifetimes = "deny"
needless_pass_by_value = "deny"
ok_expect = "deny"
option_if_let_else = "deny"
or_fun_call = "deny"
panic = "deny"
panic_in_result_fn = "deny"
ptr_arg = "deny"
redundant_clone = "deny"
result_large_err = "deny"
shadow_unrelated = "deny"
single_char_lifetime_names = "deny"
str_to_string = "deny"
string_add = "deny"
todo = "deny"
trait_duplication_in_bounds = "deny"
trivially_copy_pass_by_ref = "deny"
undocumented_unsafe_blocks = "deny"
unimplemented = "deny"
unnecessary_box_returns = "deny"
unnecessary_wraps = "deny"
unreachable = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"
useless_asref = "deny"
vec_box = "deny"
wildcard_dependencies = "deny"
wildcard_enum_match_arm = "deny"
wrong_self_convention = "deny"

[lints.rust]
deprecated_safe_2024 = "warn"
missing_docs = "deny"
rust_2024_guarded_string_incompatible_syntax = "warn"
rust_2024_incompatible_pat = "warn"
rust_2024_prelude_collisions = "warn"