-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
95 lines (85 loc) · 2.5 KB
/
Cargo.toml
File metadata and controls
95 lines (85 loc) · 2.5 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
[package]
name = "otari"
version = "0.1.0"
edition = "2021"
rust-version = "1.83"
description = "A unified Rust SDK for interacting with LLMs via the Otari gateway"
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/mozilla-ai/otari-sdk-rust"
homepage = "https://github.com/mozilla-ai/otari-sdk-rust"
documentation = "https://docs.rs/otari"
keywords = ["llm", "ai", "gateway", "api-gateway", "otari"]
categories = ["api-bindings", "asynchronous", "web-programming"]
authors = ["Mozilla AI <otari@mozilla.ai>"]
[dependencies]
# Async runtime
tokio = { version = "1", features = ["full"] }
futures = "0.3"
# Serialization
serde = { version = "1", features = ["derive"] }
serde_json = "1"
# HTTP client
reqwest = { version = "0.12", features = ["json", "stream"] }
reqwest-eventsource = "0.6"
# Error handling
thiserror = "2"
[dev-dependencies]
tokio-test = "0.4"
pretty_assertions = "1"
wiremock = "0.6"
dotenvy = "0.15"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
[lints.rust]
unsafe_code = "forbid"
[lints.clippy]
# Lint groups with explicit priorities
all = { level = "warn", priority = -1 }
pedantic = { level = "warn", priority = -1 }
nursery = { level = "warn", priority = -1 }
# Allow certain patterns that are acceptable
module_name_repetitions = "allow"
must_use_candidate = "allow"
missing_errors_doc = "allow"
missing_panics_doc = "allow"
# These are too noisy for this codebase
use_self = "allow"
doc_markdown = "allow"
missing_const_for_fn = "allow"
redundant_pub_crate = "allow"
option_if_let_else = "allow"
significant_drop_tightening = "allow"
future_not_send = "allow"
match_wildcard_for_single_variants = "allow"
derive_partial_eq_without_eq = "allow"
struct_excessive_bools = "allow"
too_many_lines = "allow"
similar_names = "allow"
items_after_statements = "allow"
ref_option = "allow"
return_self_not_must_use = "allow"
redundant_closure_for_method_calls = "allow"
should_implement_trait = "allow"
unnecessary_wraps = "allow"
or_fun_call = "allow"
match_same_arms = "allow"
useless_vec = "allow"
needless_pass_by_value = "allow"
uninlined_format_args = "allow"
default_trait_access = "allow"
redundant_else = "allow"
derivable_impls = "allow"
manual_let_else = "allow"
cognitive_complexity = "allow"
cast_possible_truncation = "allow"
assigning_clones = "allow"
map_unwrap_or = "allow"
single_match_else = "allow"
if_not_else = "allow"
match_bool = "allow"
unnecessary_cast = "allow"
cast_lossless = "allow"
needless_continue = "allow"
redundant_closure = "allow"