# 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"
name = "oxgraph-csc"
version = "0.4.0"
authors = ["oxgraph contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Borrowed compressed-sparse-column (inbound) graph views over snapshot sections."
readme = "README.md"
keywords = [
    "graph",
    "topology",
    "zero-copy",
]
categories = ["data-structures"]
license = "MIT"
repository = "https://github.com/oxgraph/oxgraph"

[features]
build = [
    "oxgraph-csr/build",
    "oxgraph-snapshot/alloc",
]
default = []

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

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

[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"
required-features = []

[dependencies.oxgraph-csr]
version = "0.4.0"

[dependencies.oxgraph-graph]
version = "0.4.0"

[dependencies.oxgraph-layout-util]
version = "0.4.0"

[dependencies.oxgraph-snapshot]
version = "0.4.0"

[dependencies.oxgraph-topology]
version = "0.4.0"

[dev-dependencies.oxgraph-csr]
version = "0.4.0"
features = ["build"]

[dev-dependencies.oxgraph-snapshot]
version = "0.4.0"
features = ["alloc"]

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

[lints.clippy]
allow_attributes = "deny"
allow_attributes_without_reason = "deny"
cognitive_complexity = "deny"
excessive_nesting = "deny"
expect_used = "deny"
missing_docs_in_private_items = "deny"
too_many_arguments = "deny"
too_many_lines = "deny"
type_complexity = "deny"
unwrap_used = "deny"

[lints.clippy.all]
level = "deny"
priority = -1

[lints.clippy.cargo]
level = "deny"
priority = -1

[lints.clippy.module_name_repetitions]
level = "allow"
priority = 1

[lints.clippy.multiple_crate_versions]
level = "allow"
priority = 1

[lints.clippy.nursery]
level = "deny"
priority = -1

[lints.clippy.pedantic]
level = "deny"
priority = -1

[lints.rust]
missing_docs = "deny"
unreachable_pub = "deny"
unsafe_code = "forbid"

[lints.rust.rust_2024_compatibility]
level = "deny"
priority = -1

[lints.rust.unexpected_cfgs]
level = "deny"
priority = 0
check-cfg = ["cfg(kani)"]
