modelplease 0.1.0

Provider-neutral language model client with streaming, media, capabilities, and optional provider integrations
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.94.1"
name = "modelplease"
version = "0.1.0"
authors = [
    "Thomas Santerre <opensource@moderately.ai>",
    "Moderately AI Inc. <opensource@moderately.ai>",
]
build = false
exclude = [
    ".github/**",
    "scripts/**",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Provider-neutral language model client with streaming, media, capabilities, and optional provider integrations"
homepage = "https://github.com/moderately-ai/modelplease"
documentation = "https://docs.rs/modelplease"
readme = "README.md"
keywords = [
    "llm",
    "ai",
    "openai",
    "anthropic",
    "bedrock",
]
categories = [
    "api-bindings",
    "asynchronous",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/moderately-ai/modelplease"

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

[features]
all-providers = [
    "anthropic",
    "openai",
    "ollama",
    "bedrock",
    "bedrock-mantle",
]
anthropic = [
    "dep:moka",
    "dep:reqwest",
]
bedrock = [
    "dep:moka",
    "dep:aws-config",
    "dep:aws-sdk-bedrock",
    "dep:aws-sdk-bedrockruntime",
    "dep:aws-smithy-types",
    "dep:rustc-hash",
]
bedrock-mantle = [
    "dep:moka",
    "dep:reqwest",
    "dep:aws-credential-types",
    "dep:aws-sdk-bedrock",
    "dep:aws-sdk-bedrockruntime",
    "dep:aws-sigv4",
    "dep:aws-smithy-runtime-api",
    "dep:http",
]
default = []
ollama = [
    "dep:moka",
    "dep:reqwest",
]
openai = [
    "dep:moka",
    "dep:reqwest",
]

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

[[example]]
name = "anthropic_test"
path = "examples/anthropic_test.rs"
required-features = ["anthropic"]

[[example]]
name = "bedrock_mantle_sweep"
path = "examples/bedrock_mantle_sweep.rs"
required-features = [
    "bedrock",
    "bedrock-mantle",
]

[[example]]
name = "bedrock_mantle_test"
path = "examples/bedrock_mantle_test.rs"
required-features = ["bedrock-mantle"]

[[example]]
name = "bedrock_test"
path = "examples/bedrock_test.rs"
required-features = ["bedrock"]

[[example]]
name = "ollama_test"
path = "examples/ollama_test.rs"
required-features = ["ollama"]

[[example]]
name = "openai_test"
path = "examples/openai_test.rs"
required-features = ["openai"]

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

[[test]]
name = "bedrock_mantle_live"
path = "tests/bedrock_mantle_live.rs"
required-features = ["bedrock-mantle"]

[dependencies.async-trait]
version = "=0.1.89"

[dependencies.aws-config]
version = "=1.10.1"
optional = true

[dependencies.aws-credential-types]
version = "=1.3.0"
optional = true

[dependencies.aws-sdk-bedrock]
version = "=1.150.0"
features = [
    "default-https-client",
    "rt-tokio",
]
optional = true
default-features = false

[dependencies.aws-sdk-bedrockruntime]
version = "=1.139.0"
features = [
    "default-https-client",
    "rt-tokio",
]
optional = true
default-features = false

[dependencies.aws-sigv4]
version = "=1.5.1"
optional = true

[dependencies.aws-smithy-runtime-api]
version = "=1.14.0"
optional = true

[dependencies.aws-smithy-types]
version = "=1.6.1"
optional = true

[dependencies.base64]
version = "=0.22.1"

[dependencies.bytes]
version = "=1.11.1"
features = ["serde"]

[dependencies.enumset]
version = "=1.1.5"
features = ["serde"]

[dependencies.futures]
version = "=0.3.32"

[dependencies.http]
version = "=1.4.0"
optional = true

[dependencies.moka]
version = "=0.12.14"
features = ["future"]
optional = true

[dependencies.parking_lot]
version = "=0.12.3"
features = ["send_guard"]

[dependencies.pin-project]
version = "=1.1.11"

[dependencies.reqwest]
version = "=0.12.28"
features = [
    "json",
    "multipart",
    "rustls-tls",
    "stream",
]
optional = true
default-features = false

[dependencies.rustc-hash]
version = "=2.1.1"
optional = true

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

[dependencies.serde_json]
version = "=1.0.149"
features = ["arbitrary_precision"]

[dependencies.thiserror]
version = "=2.0.18"

[dependencies.tokio]
version = "=1.50.0"
features = [
    "fs",
    "io-std",
    "io-util",
    "macros",
    "rt-multi-thread",
    "signal",
    "sync",
    "time",
]

[dependencies.tracing]
version = "=0.1.44"

[dev-dependencies.aws-config]
version = "=1.10.1"

[dev-dependencies.chrono]
version = "=0.4.44"
features = ["serde"]

[dev-dependencies.clap]
version = "=4.6.0"
features = [
    "derive",
    "env",
]

[dev-dependencies.reqwest]
version = "=0.12.28"
features = [
    "json",
    "rustls-tls",
]
default-features = false

[dev-dependencies.tokio]
version = "=1.50.0"
features = ["test-util"]

[dev-dependencies.tracing-subscriber]
version = "=0.3.23"
features = [
    "env-filter",
    "json",
    "registry",
]

[lints.clippy]
cast_lossless = "allow"
cast_possible_truncation = "allow"
cast_possible_wrap = "allow"
cast_precision_loss = "allow"
cast_sign_loss = "allow"
dbg_macro = "deny"
doc_markdown = "allow"
expect_used = "allow"
future_not_send = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
module_name_repetitions = "allow"
multiple_crate_versions = "allow"
panic = "allow"
print_stderr = "deny"
print_stdout = "deny"
result_large_err = "allow"
similar_names = "allow"
struct_excessive_bools = "allow"
too_many_arguments = "allow"
too_many_lines = "allow"
type_complexity = "allow"
unwrap_used = "allow"

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

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

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

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

[lints.rust]
unsafe_code = "deny"

[profile.dev]
debug = "line-tables-only"
split-debuginfo = "unpacked"

[profile.dev.package."*"]
opt-level = 1