contextgraph-types 2.0.0

Context Graph Protocol wire types: context frames, queries, capabilities, provenance. MIT, zero deps beyond serde — publishable to crates.io independently of any stella code.
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"
rust-version = "1.90"
name = "contextgraph-types"
version = "2.0.0"
build = false
publish = true
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Context Graph Protocol wire types: context frames, queries, capabilities, provenance. MIT, zero deps beyond serde — publishable to crates.io independently of any stella code."
homepage = "https://contextgraphprotocol.org"
documentation = "https://docs.rs/contextgraph-types"
readme = "README.md"
keywords = [
    "contextgraph",
    "context",
    "protocol",
    "agents",
    "llm",
]
categories = [
    "encoding",
    "api-bindings",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/macanderson/context-graph-protocol"

[package.metadata.docs.rs]
all-features = true

[features]
attestation = [
    "dep:sha2",
    "dep:ed25519-dalek",
]
default = []
record-attestation = [
    "record-hash",
    "attestation",
]
record-hash = [
    "dep:sha2",
    "dep:serde_json",
    "dep:serde_json_canonicalizer",
]

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

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

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

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

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

[dependencies.ed25519-dalek]
version = "2"
optional = true

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

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

[dependencies.serde_json_canonicalizer]
version = "0.3.2"
optional = true

[dependencies.sha2]
version = "0.10"
optional = true

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