oxgraph-snapshot 0.2.4

Topology-agnostic byte-level snapshot container.
Documentation
# 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-snapshot"
version = "0.2.4"
authors = ["oxgraph contributors"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Topology-agnostic byte-level snapshot container."
readme = "README.md"
keywords = [
    "graph",
    "topology",
    "zero-copy",
]
categories = ["data-structures"]
license = "MIT"
repository = "https://github.com/oxgraph/oxgraph"

[features]
alloc = ["oxgraph-layout-util/alloc"]
default = []
std = ["alloc"]

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.oxgraph-layout-util]
version = "0.2.4"
default-features = false

[dependencies.zerocopy]
version = "0.8.48"
features = ["derive"]
default-features = false

[dev-dependencies.criterion]
version = "0.8.2"
features = [
    "cargo_bench_support",
    "html_reports",
    "plotters",
]
default-features = false

[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)"]