# 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 = "2021"
name = "ries"
version = "2.0.1"
authors = ["Maxwell Santoro"]
build = false
exclude = [
    ".playwright-mcp/**",
    ".codex-playwright/**",
    "node_modules/**",
    "pkg/**",
    "pkg-*/*",
    "web/**",
    "package.json",
    "package-lock.json",
    "playwright.config.ts",
    "tests/web-smoke.spec.ts",
    "ries-py/**",
    "docs/plans/**",
    "docs/archive/**",
    "output/**",
    "test-results/**",
    "playwright-report/**",
    ".cargo/**",
    "Cargo.toml.orig",
    "AGENTS.md",
    "CLAUDE.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Find algebraic equations given their solution - Rust implementation"
homepage = "https://maxwellsantoro.com/projects/ries-rs"
documentation = "https://docs.rs/ries"
readme = "README.md"
keywords = [
    "math",
    "equation",
    "solver",
    "algebraic",
    "ries",
]
categories = [
    "mathematics",
    "science",
]
license = "MIT"
repository = "https://github.com/maxwellsantoro/ries-rs"

[features]
default = ["parallel"]
highprec = ["rug"]
parallel = ["rayon"]
wasm = [
    "wasm-bindgen",
    "js-sys",
    "serde-wasm-bindgen",
    "console_error_panic_hook",
]
wasm-threads = [
    "wasm",
    "parallel",
    "wasm-bindgen-rayon",
]

[lib]
name = "ries_rs"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "ries-rs"
path = "src/main.rs"

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

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

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

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

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

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

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

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

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

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

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

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

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

[[bench]]
name = "evaluation"
path = "benches/evaluation.rs"
harness = false

[[bench]]
name = "generation"
path = "benches/generation.rs"
harness = false

[[bench]]
name = "search"
path = "benches/search.rs"
harness = false

[dependencies.clap]
version = "4.5"
features = ["derive"]

[dependencies.console_error_panic_hook]
version = "0.1"
optional = true

[dependencies.dirs]
version = "5.0"

[dependencies.js-sys]
version = "0.3"
optional = true

[dependencies.ordered-float]
version = "4.2"

[dependencies.rayon]
version = "1.10"
optional = true

[dependencies.rug]
version = "1.24"
optional = true

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

[dependencies.serde-wasm-bindgen]
version = "0.6"
optional = true

[dependencies.serde_json]
version = "1.0"

[dependencies.smallvec]
version = "1.13"

[dependencies.thiserror]
version = "1.0"

[dependencies.wasm-bindgen]
version = "0.2"
optional = true

[dependencies.wasm-bindgen-rayon]
version = "1.2"
optional = true

[dev-dependencies.wasm-bindgen-test]
version = "0.3"

[target.'cfg(all(target_arch = "wasm32", target_os = "unknown"))'.dev-dependencies.getrandom]
version = "0.3"
features = ["wasm_js"]

[target.'cfg(not(all(target_arch = "wasm32", target_os = "unknown")))'.dev-dependencies.criterion]
version = "0.5"

[target.'cfg(not(all(target_arch = "wasm32", target_os = "unknown")))'.dev-dependencies.proptest]
version = "1.4"

[target."cfg(unix)".dependencies.libc]
version = "0.2"

[profile.bench]
inherits = "release"

[profile.release]
opt-level = 3
lto = true
codegen-units = 1
panic = "abort"
