agentid-core 0.1.0

Cryptographic identity for AI agents. Replaces hardcoded API keys with offline-verifiable Ed25519 tokens.
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 = "2021"
name = "agentid-core"
version = "0.1.0"
authors = ["Samvardhan Singh"]
build = "build.rs"
exclude = [
    "target/",
    "*.node",
    "native/",
    ".cargo/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Cryptographic identity for AI agents. Replaces hardcoded API keys with offline-verifiable Ed25519 tokens."
readme = "README.md"
keywords = [
    "agent",
    "identity",
    "ed25519",
    "authentication",
    "ai",
]
categories = [
    "cryptography",
    "authentication",
    "network-programming",
]
license = "Apache-2.0"
repository = "https://github.com/samvardhan03/AgentID"

[features]
default = ["server"]
napi-bindings = [
    "dep:napi",
    "dep:napi-derive",
]
server = [
    "dep:tonic",
    "dep:prost",
    "dep:tokio",
]

[lib]
name = "agentid_core"
crate-type = [
    "cdylib",
    "rlib",
]
path = "src/lib.rs"

[[bin]]
name = "agentid-server"
path = "src/bin/agentid-server.rs"
required-features = ["server"]

[dependencies.dirs]
version = "5"

[dependencies.ed25519-dalek]
version = "2.1"
features = [
    "std",
    "fast",
    "zeroize",
]
default-features = false

[dependencies.hex]
version = "0.4"

[dependencies.hkdf]
version = "0.12"

[dependencies.napi]
version = "2.16"
features = ["napi6"]
optional = true
default-features = false

[dependencies.napi-derive]
version = "2.16"
optional = true

[dependencies.prost]
version = "0.12"
optional = true

[dependencies.ring]
version = "0.17"

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

[dependencies.serde_json]
version = "1"

[dependencies.sha2]
version = "0.10"

[dependencies.thiserror]
version = "1"

[dependencies.tokio]
version = "1.36"
features = [
    "rt-multi-thread",
    "macros",
    "signal",
    "net",
]
optional = true

[dependencies.tonic]
version = "0.11"
optional = true

[dependencies.zeroize]
version = "1.7"
features = ["zeroize_derive"]

[build-dependencies.napi-build]
version = "2"

[build-dependencies.tonic-build]
version = "0.11"

[profile.bench]
opt-level = 3
lto = "fat"

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
strip = "symbols"