[package]
edition = "2024"
rust-version = "1.93.1"
name = "langfuse-sdk"
version = "0.1.1"
authors = ["Brandon Martin <brandontm@gmail.com>"]
build = false
exclude = [
".github/",
".sisyphus/",
"src/tracing/AGENTS.md",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Langfuse SDK for Rust — LLM observability, prompt management, and evaluation"
homepage = "https://github.com/weshipwork/langfuse-rs"
documentation = "https://docs.rs/langfuse-sdk"
readme = "README.md"
keywords = [
"langfuse",
"tracing",
"llm",
"observability",
"prompts",
]
categories = [
"api-bindings",
"development-tools::debugging",
]
license = "MIT OR Apache-2.0"
repository = "https://github.com/weshipwork/langfuse-rs"
resolver = "2"
[lib]
name = "langfuse"
path = "src/lib.rs"
[[example]]
name = "advanced_features"
path = "examples/advanced_features.rs"
[[example]]
name = "basic_tracing"
path = "examples/basic_tracing.rs"
[[example]]
name = "experiment"
path = "examples/experiment.rs"
[[example]]
name = "prompt_management"
path = "examples/prompt_management.rs"
[[test]]
name = "advanced_config_test"
path = "tests/advanced_config_test.rs"
[[test]]
name = "baggage_propagation_test"
path = "tests/baggage_propagation_test.rs"
[[test]]
name = "client_test"
path = "tests/client_test.rs"
[[test]]
name = "context_apis_test"
path = "tests/context_apis_test.rs"
[[test]]
name = "datasets_test"
path = "tests/datasets_test.rs"
[[test]]
name = "evaluation_test"
path = "tests/evaluation_test.rs"
[[test]]
name = "event_test"
path = "tests/event_test.rs"
[[test]]
name = "exporter_test"
path = "tests/exporter_test.rs"
[[test]]
name = "lifecycle_test"
path = "tests/lifecycle_test.rs"
[[test]]
name = "media_test"
path = "tests/media_test.rs"
[[test]]
name = "observation_types_test"
path = "tests/observation_types_test.rs"
[[test]]
name = "observe_test"
path = "tests/observe_test.rs"
[[test]]
name = "prompt_crud_test"
path = "tests/prompt_crud_test.rs"
[[test]]
name = "prompts_test"
path = "tests/prompts_test.rs"
[[test]]
name = "score_tracing_test"
path = "tests/score_tracing_test.rs"
[[test]]
name = "scoring_test"
path = "tests/scoring_test.rs"
[[test]]
name = "span_scoring_test"
path = "tests/span_scoring_test.rs"
[[test]]
name = "span_test"
path = "tests/span_test.rs"
[[test]]
name = "stream_observe_test"
path = "tests/stream_observe_test.rs"
[dependencies.async-trait]
version = "0.1"
[dependencies.backoff]
version = "0.4"
features = ["tokio"]
[dependencies.base64]
version = "0.22"
[dependencies.chrono]
version = "0.4"
features = ["serde"]
[dependencies.dashmap]
version = "6"
[dependencies.futures]
version = "0.3"
[dependencies.langfuse-core]
version = "0.1.1"
[dependencies.langfuse-macros]
version = "0.1.1"
[dependencies.opentelemetry]
version = "0.31"
[dependencies.opentelemetry-otlp]
version = "0.31"
features = [
"http-proto",
"reqwest-rustls",
]
[dependencies.opentelemetry_sdk]
version = "0.31"
features = ["trace"]
[dependencies.pin-project-lite]
version = "0.2"
[dependencies.reqwest]
version = "0.12"
features = [
"json",
"rustls-tls",
]
default-features = false
[dependencies.serde]
version = "1"
features = ["derive"]
[dependencies.serde_json]
version = "1"
[dependencies.thiserror]
version = "2"
[dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
"time",
"sync",
]
[dependencies.tracing]
version = "0.1"
[dependencies.uuid]
version = "1"
features = [
"v4",
"serde",
]
[dev-dependencies.async-openai]
version = "0.33"
features = [
"chat-completion",
"embedding",
]