[package]
edition = "2024"
rust-version = "1.94.0"
name = "converge-optimization"
version = "2.1.0"
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.0"
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]
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
comparison_chain = "allow"
if_not_else = "allow"
if_same_then_else = "allow"
ignore_without_reason = "allow"
items_after_statements = "allow"
manual_let_else = "allow"
map_unwrap_or = "allow"
module_name_repetitions = "allow"
overly_complex_bool_expr = "allow"
semicolon_if_nothing_returned = "allow"
similar_names = "allow"
single_match_else = "allow"
too_many_lines = "allow"
unnecessary_wraps = "allow"
unused_self = "allow"
vec_init_then_push = "allow"
[lints.clippy.all]
level = "warn"
priority = -1
[lints.clippy.pedantic]
level = "warn"
priority = -1
[lints.rust]
unsafe_code = "forbid"