[package]
edition = "2024"
name = "csp-solver"
version = "0.2.0"
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Generic constraint satisfaction problem solver with backtracking, AC-3 constraint propagation, and ordering heuristics."
readme = "README.md"
license = "MIT"
repository = "https://github.com/mkbabb/csp-solver"
resolver = "2"
[features]
alloc-count = []
default = []
py = ["dep:pyo3"]
[lib]
name = "csp_solver"
crate-type = ["lib"]
path = "src/lib.rs"
[[example]]
name = "alloc_count"
path = "examples/alloc_count.rs"
[[example]]
name = "gac_ab_corpus"
path = "examples/gac_ab_corpus.rs"
[[example]]
name = "generate_templates"
path = "examples/generate_templates.rs"
[[example]]
name = "parity_probe"
path = "examples/parity_probe.rs"
[[example]]
name = "probe_futoshiki_gen"
path = "examples/probe_futoshiki_gen.rs"
[[example]]
name = "profile_csp"
path = "examples/profile_csp.rs"
[[example]]
name = "profile_sudoku"
path = "examples/profile_sudoku.rs"
[[example]]
name = "time_sudoku"
path = "examples/time_sudoku.rs"
[[test]]
name = "all_different_except"
path = "tests/all_different_except.rs"
[[test]]
name = "assignment_builder"
path = "tests/assignment_builder.rs"
[[test]]
name = "assignment_proptest"
path = "tests/assignment_proptest.rs"
[[test]]
name = "cost_finite"
path = "tests/cost_finite.rs"
[[test]]
name = "difficulty_parity"
path = "tests/difficulty_parity.rs"
[[test]]
name = "futoshiki"
path = "tests/futoshiki.rs"
[[test]]
name = "lattice"
path = "tests/lattice.rs"
[[test]]
name = "nogoods"
path = "tests/nogoods.rs"
[[test]]
name = "optimize"
path = "tests/optimize.rs"
[[test]]
name = "restart_nogood_soundness"
path = "tests/restart_nogood_soundness.rs"
[[test]]
name = "solution_set_invariance"
path = "tests/solution_set_invariance.rs"
[[test]]
name = "solver"
path = "tests/solver.rs"
[[test]]
name = "sudoku"
path = "tests/sudoku.rs"
[[bench]]
name = "assignment"
path = "benches/assignment.rs"
harness = false
[[bench]]
name = "cost_finite_domain"
path = "benches/cost_finite_domain.rs"
harness = false
[[bench]]
name = "lattice"
path = "benches/lattice.rs"
harness = false
[[bench]]
name = "map_coloring"
path = "benches/map_coloring.rs"
harness = false
[[bench]]
name = "queens"
path = "benches/queens.rs"
harness = false
[[bench]]
name = "sudoku"
path = "benches/sudoku.rs"
harness = false
[dependencies.include_dir]
version = "0.7.4"
[dependencies.pyo3]
version = "0.24"
features = ["extension-module"]
optional = true
[dev-dependencies.criterion]
version = "0.5"
features = ["html_reports"]
[dev-dependencies.hungarian]
version = "1"
[dev-dependencies.proptest]
version = "1"