# 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"
rust-version = "1.80"
name = "lattix"
version = "0.1.1"
authors = ["Arc <attobop@gmail.com>"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Graph/KG substrate: triples + PageRank + random walks"
readme = false
license = "MIT OR Apache-2.0"
repository = "https://github.com/arclabs561/lattix"

[features]
algo = [
    "dep:rand",
    "dep:rand_xorshift",
    "dep:rand_distr",
    "dep:rayon",
]
binary = ["dep:bincode"]
default = [
    "formats",
    "algo",
]
formats = [
    "dep:rio_api",
    "dep:rio_turtle",
    "dep:oxiri",
    "dep:csv",
]
sophia = ["dep:sophia_api"]

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

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

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

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

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

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

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

[dependencies.bincode]
version = "1.3.3"
optional = true

[dependencies.csv]
version = "1.4.0"
optional = true

[dependencies.oxiri]
version = "0.2.11"
features = ["serde"]
optional = true

[dependencies.petgraph]
version = "0.6"
features = ["serde-1"]

[dependencies.rand]
version = "0.9"
optional = true

[dependencies.rand_distr]
version = "0.5"
optional = true

[dependencies.rand_xorshift]
version = "0.4.0"
optional = true

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

[dependencies.rio_api]
version = "0.8.4"
features = ["generalized"]
optional = true

[dependencies.rio_turtle]
version = "0.8.4"
features = ["generalized"]
optional = true

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

[dependencies.serde_json]
version = "1.0"

[dependencies.sophia_api]
version = "0.8"
optional = true

[dependencies.thiserror]
version = "2.0"

[dev-dependencies.criterion]
version = "0.7"

[dev-dependencies.proptest]
version = "1.9"

[lints.clippy]
unwrap_used = "warn"

[lints.rust]
missing_docs = "warn"
