[package]
edition = "2024"
rust-version = "1.92"
name = "deadeye-optimizer"
version = "0.1.3"
authors = ["Deadeye Contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "EV-maximizing trade picker and LP P&L math for Deadeye normal markets."
homepage = "https://github.com/teddyjfpender/deadeye-rs"
readme = "README.md"
keywords = [
"starknet",
"prediction-markets",
"amm",
"market-making",
"sdk",
]
categories = [
"api-bindings",
"finance",
"cryptography::cryptocurrencies",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/teddyjfpender/deadeye-rs"
[features]
default = []
[lib]
name = "deadeye_optimizer"
path = "src/lib.rs"
[[example]]
name = "sigma_arb_debug"
path = "examples/sigma_arb_debug.rs"
[[example]]
name = "sigma_arb_probe"
path = "examples/sigma_arb_probe.rs"
[[test]]
name = "grid_existence"
path = "tests/grid_existence.rs"
[dependencies.deadeye-collateral]
version = "0.1.0"
[dependencies.deadeye-core]
version = "0.1.0"
[dev-dependencies.proptest]
version = "1.6"
features = ["std"]
default-features = false
[lints.clippy]
allow_attributes_without_reason = "deny"
assertions_on_result_states = "deny"
big_endian_bytes = "deny"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
clone_on_ref_ptr = "deny"
create_dir = "deny"
dbg_macro = "deny"
deref_by_slicing = "warn"
disallowed_script_idents = "deny"
empty_drop = "deny"
empty_enum_variants_with_brackets = "deny"
empty_structs_with_brackets = "deny"
exit = "deny"
filetype_is_file = "deny"
float_cmp_const = "deny"
fn_to_numeric_cast_any = "deny"
format_push_string = "warn"
future_not_send = "allow"
get_unwrap = "deny"
host_endian_bytes = "deny"
infinite_loop = "deny"
lossy_float_literal = "deny"
mem_forget = "deny"
missing_assert_message = "warn"
missing_const_for_fn = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
mixed_read_write_in_expression = "deny"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
multiple_inherent_impl = "warn"
must_use_candidate = "allow"
mutex_atomic = "deny"
option_if_let_else = "allow"
panic = "warn"
panic_in_result_fn = "deny"
pathbuf_init_then_push = "deny"
print_stderr = "warn"
print_stdout = "warn"
pub_without_shorthand = "deny"
rc_buffer = "deny"
rc_mutex = "deny"
ref_patterns = "warn"
rest_pat_in_fully_bound_structs = "deny"
same_name_method = "deny"
self_named_module_files = "deny"
semicolon_inside_block = "warn"
shadow_unrelated = "warn"
similar_names = "allow"
str_to_string = "deny"
string_add = "deny"
string_slice = "deny"
suspicious_xor_used_as_pow = "deny"
tests_outside_test_module = "deny"
todo = "warn"
too_many_lines = "allow"
try_err = "deny"
undocumented_unsafe_blocks = "deny"
unimplemented = "warn"
unnecessary_safety_comment = "deny"
unnecessary_safety_doc = "deny"
unnecessary_self_imports = "deny"
unwrap_in_result = "deny"
unwrap_used = "deny"
verbose_file_reads = "warn"
wildcard_enum_match_arm = "warn"
[lints.clippy.all]
level = "deny"
priority = -2
[lints.clippy.cargo]
level = "warn"
priority = -1
[lints.clippy.nursery]
level = "deny"
priority = -1
[lints.clippy.pedantic]
level = "deny"
priority = -1
[lints.rust]
elided_lifetimes_in_paths = "warn"
missing_copy_implementations = "warn"
missing_debug_implementations = "warn"
missing_docs = "warn"
trivial_casts = "warn"
unreachable_pub = "warn"
unsafe_code = "forbid"
unused_lifetimes = "warn"
[lints.rust.nonstandard_style]
level = "deny"
priority = -1
[lints.rust.rust_2018_idioms]
level = "deny"
priority = -1