[package]
edition = "2024"
rust-version = "1.94.0"
name = "converge-optimization"
version = "2.1.2"
build = false
exclude = [
"target/*",
"target/",
"ortools/*",
"ortools/",
"build/*",
"build/",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Optimization algorithms for converge.zone - Rust reimplementation of OR-Tools subset"
readme = false
keywords = [
"optimization",
"constraint",
"graph",
"scheduling",
"assignment",
]
categories = [
"algorithms",
"mathematics",
"science",
]
license = "MIT"
repository = "https://github.com/Reflective-Labs/converge.zone"
resolver = "2"
[features]
default = []
ffi = ["dep:ortools-sys"]
full = [
"ffi",
"sat",
]
sat = ["dep:varisat"]
[lib]
name = "converge_optimization"
path = "src/lib.rs"
[[bench]]
name = "assignment"
path = "benches/assignment.rs"
harness = false
[[bench]]
name = "cp_comparison"
path = "benches/cp_comparison.rs"
harness = false
required-features = [
"sat",
"ffi",
]
[[bench]]
name = "graph"
path = "benches/graph.rs"
harness = false
[dependencies.bitvec]
version = "1"
[dependencies.indexmap]
version = "2"
[dependencies.num-traits]
version = "0.2"
[dependencies.ordered-float]
version = "4"
[dependencies.ortools-sys]
version = "2.1.2"
features = ["link"]
optional = true
[dependencies.petgraph]
version = "0.7"
[dependencies.rayon]
version = "1.10"
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
features = ["preserve_order"]
[dependencies.smallvec]
version = "1.13"
[dependencies.thiserror]
version = "2"
[dependencies.tracing]
version = "0.1"
[dependencies.varisat]
version = "0.2"
optional = true
[dev-dependencies.approx]
version = "0.5"
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.proptest]
version = "1.5"
[dev-dependencies.rand]
version = "0.8"
[lints.clippy]
assigning_clones = "allow"
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
cloned_instead_of_copied = "allow"
collapsible_if = "allow"
comparison_chain = "allow"
default_constructed_unit_structs = "allow"
default_trait_access = "allow"
derivable_impls = "allow"
doc_markdown = "allow"
elidable_lifetime_names = "allow"
enum_glob_use = "allow"
explicit_iter_loop = "allow"
extend_with_drain = "allow"
field_reassign_with_default = "allow"
float_cmp = "allow"
format_collect = "allow"
format_push_string = "allow"
if_not_else = "allow"
if_same_then_else = "allow"
ignore_without_reason = "allow"
ignored_unit_patterns = "allow"
implicit_clone = "allow"
implicit_hasher = "allow"
items_after_statements = "allow"
large_enum_variant = "allow"
len_zero = "allow"
manual_clamp = "allow"
manual_is_multiple_of = "allow"
manual_let_else = "allow"
manual_midpoint = "allow"
manual_range_contains = "allow"
manual_string_new = "allow"
many_single_char_names = "allow"
map_unwrap_or = "allow"
match_same_arms = "allow"
missing_errors_doc = "allow"
missing_fields_in_debug = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
must_use_candidate = "allow"
needless_borrow = "allow"
needless_pass_by_value = "allow"
needless_range_loop = "allow"
needless_raw_string_hashes = "allow"
neg_multiply = "allow"
no_effect_underscore_binding = "allow"
overly_complex_bool_expr = "allow"
redundant_closure_for_method_calls = "allow"
ref_option = "allow"
ref_option_ref = "allow"
return_self_not_must_use = "allow"
semicolon_if_nothing_returned = "allow"
should_implement_trait = "allow"
similar_names = "allow"
single_char_pattern = "allow"
single_match_else = "allow"
struct_excessive_bools = "allow"
struct_field_names = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
trivially_copy_pass_by_ref = "allow"
uninlined_format_args = "allow"
unnecessary_literal_bound = "allow"
unnecessary_map_or = "allow"
unnecessary_wraps = "allow"
unreadable_literal = "allow"
unused_async = "allow"
unused_self = "allow"
vec_init_then_push = "allow"
wildcard_imports = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
deprecated = "allow"
unsafe_code = "forbid"