# 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 = "2024"
rust-version = "1.89"
name = "sangha"
version = "1.0.0"
build = false
exclude = [
    ".claude/",
    ".github/",
    "docs/",
    "scripts/",
]
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Sangha — sociology engine for social networks, game theory, and group dynamics"
homepage = "https://github.com/MacCracken/sangha"
documentation = "https://docs.rs/sangha"
readme = "README.md"
keywords = [
    "sociology",
    "network",
    "game-theory",
    "groups",
    "population",
]
categories = [
    "science",
    "simulation",
]
license = "GPL-3.0-only"
repository = "https://github.com/MacCracken/sangha"

[features]
default = ["std"]
full = [
    "std",
    "logging",
    "hisab",
    "pramana",
]
hisab = ["dep:hisab"]
logging = ["dep:tracing-subscriber"]
pramana = ["dep:pramana"]
std = [
    "serde/std",
    "thiserror/std",
]

[lib]
name = "sangha"
path = "src/lib.rs"

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

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

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

[dependencies.hisab]
version = "1"
optional = true

[dependencies.pramana]
version = "1"
optional = true

[dependencies.serde]
version = "1"
features = [
    "derive",
    "alloc",
]
default-features = false

[dependencies.thiserror]
version = "2"
default-features = false

[dependencies.tracing]
version = "0.1"
default-features = false

[dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
]
optional = true

[dev-dependencies.criterion]
version = "0.8"
features = ["html_reports"]

[dev-dependencies.serde_json]
version = "1"
