-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCargo.toml
65 lines (54 loc) · 2.05 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[package]
name = "logfire"
version = "0.4.0"
edition = "2024"
license = "MIT"
rust-version = "1.85"
description = "Rust SDK for Pydantic Logfire"
documentation = "https://docs.rs/logfire"
homepage = "https://github.com/pydantic/logfire-rust"
repository = "https://github.com/pydantic/logfire-rust"
[dependencies]
log = "0.4"
env_filter = "0.1"
# deps for grpc export
http = { version = "1.2", optional = true }
tonic = { version = "0.12", optional = true }
rand = "0.9.0"
opentelemetry = { version = "0.28", default-features = false, features = ["trace"] }
opentelemetry_sdk = { version = "0.28", default-features = false, features = ["trace"] }
opentelemetry-otlp = { version = "0.28", default-features = false, features = ["trace", "metrics"] }
futures-util = "0.3"
tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
tracing-opentelemetry = "0.29"
thiserror = "2"
serde = { version = "1", features = ["derive"], optional = true }
nu-ansi-term = "0.50.1"
chrono = "0.4.39"
regex = "1.11.1"
[dev-dependencies]
async-trait = "0.1.88"
insta = "1.42.1"
opentelemetry_sdk = { version = "0.28", default-features = false, features = ["testing"] }
regex = "1.11.1"
tokio = {version = "1.44.1", features = ["test-util"] }
ulid = "1.2.0"
[features]
default = ["export-http-protobuf"]
serde = ["dep:serde"]
# FIXME might need rustls feature on all of these?
export-grpc = ["opentelemetry-otlp/grpc-tonic", "opentelemetry-otlp/tls", "dep:http", "dep:tonic"]
export-http-protobuf = ["opentelemetry-otlp/http-proto", "opentelemetry-otlp/reqwest-blocking-client", "opentelemetry-otlp/reqwest-rustls"]
export-http-json = ["opentelemetry-otlp/http-json", "opentelemetry-otlp/reqwest-blocking-client", "opentelemetry-otlp/reqwest-rustls"]
[lints.rust]
missing_docs = "warn"
[lints.clippy]
print_stdout = "deny"
print_stderr = "deny"
dbg_macro = "deny"
unwrap_used = "deny"
# in general we lint against the pedantic group, but we will whitelist
# certain lints which we don't want to enforce (for now)
pedantic = { level = "deny", priority = -1 }
implicit_hasher = "allow"