grokbot_api 1.2.0

Unofficial async client for the (undocumented) Grok Bot gateway API
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.89"
name = "grokbot_api"
version = "1.2.0"
authors = [
    "Michael Christenson II <m3talsmith@gmail.com>",
    "Weird Brains <weirdbrains@gmail.com>",
]
build = false
include = [
    "/src",
    "/tests",
    "/examples",
    "/*.md",
    "/LICENSE",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unofficial async client for the (undocumented) Grok Bot gateway API"
homepage = "https://github.com/WeirdBrains/grokbot_api"
documentation = "https://docs.rs/grokbot_api"
readme = "README.md"
keywords = [
    "grok",
    "grokbot",
    "api-client",
    "gateway",
    "async",
]
categories = [
    "api-bindings",
    "web-programming::http-client",
    "asynchronous",
]
license = "BSD-3-Clause"
repository = "https://github.com/WeirdBrains/grokbot_api"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = []
desktop-session = [
    "dep:base64",
    "dep:aes",
    "dep:cbc",
    "dep:pbkdf2",
    "dep:hmac",
    "dep:sha1",
    "dep:aes-gcm",
]

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

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

[[example]]
name = "desktop_session"
path = "examples/desktop_session.rs"
required-features = ["desktop-session"]

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

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

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

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

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

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

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

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

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

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

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

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

[dependencies.aes]
version = "0.9.3"
optional = true

[dependencies.base64]
version = "0.23.1"
optional = true

[dependencies.cbc]
version = "0.2.1"
features = ["alloc"]
optional = true

[dependencies.hmac]
version = "0.13.0"
optional = true

[dependencies.pbkdf2]
version = "0.13.0"
optional = true
default-features = false

[dependencies.reqwest]
version = "0.13.5"
features = [
    "json",
    "rustls",
]
default-features = false

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

[dependencies.serde_json]
version = "1"

[dependencies.sha1]
version = "0.11.0"
optional = true

[dependencies.sha2]
version = "0.11"

[dependencies.thiserror]
version = "2"

[dependencies.tokio]
version = "1"
features = ["time"]
default-features = false

[dependencies.uuid]
version = "1"
features = ["v4"]

[dev-dependencies.aes-gcm]
version = "0.11.1"

[dev-dependencies.tempfile]
version = "3"

[dev-dependencies.tokio]
version = "1"
features = [
    "rt-multi-thread",
    "macros",
]

[dev-dependencies.wiremock]
version = "0.6"

[target."cfg(windows)".dependencies.aes-gcm]
version = "0.11.1"
optional = true