This repository has been archived by the owner on Jul 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
/
Cargo.toml
60 lines (52 loc) · 1.94 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
[package]
name = "chatgpt_rs"
version = "1.2.3"
edition = "2021"
description = "ChatGPT API Wrapper"
authors = ["Maxuss <[email protected]>"]
license = "MIT"
repository = "https://github.com/Maxuss/chatgpt_rs"
keywords = ["ChatGPT", "OpenAI"]
categories = ["api-bindings"]
[lib]
name = "chatgpt"
path = "./src/chatgpt.rs"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
reqwest = { version = "0.11.20", features = [
"json",
"rustls-tls",
], default-features = false }
tokio = { version = "1.32.0", features = ["macros"] }
serde = { version = "1.0.188", features = ["derive"] }
serde_json = { version = "1.0.107", optional = true }
thiserror = "1.0.48"
url = { version = "2.4.1", features = ["serde"] }
derive_builder = "0.12.0"
postcard = { version = "1.0.7", features = ["alloc"], optional = true }
eventsource-stream = { version = "0.2.3", optional = true }
futures = { version = "0.3.28", optional = true }
futures-util = { version = "0.3.28", optional = true }
gpt_fn_macros = { path = "./fn_macros", version = "1.0.0", optional = true }
schemars = { version = "0.8.13", optional = true }
async-trait = { version = "0.1.73", optional = true }
async-recursion = { version = "1.0.5", optional = true }
[dev-dependencies]
tokio = { version = "1.32.0", features = ["macros", "rt-multi-thread"] }
chatgpt_rs = { path = ".", features = [
"json",
"streams",
"postcard",
"functions",
] }
lazy_static = "1.4.0"
[features]
default = ["json"]
streams = ["dep:eventsource-stream", "dep:futures-util", "dep:futures", "reqwest/stream"]
functions = ["dep:gpt_fn_macros", "dep:schemars", "dep:async-trait", "dep:serde_json", "dep:async-recursion"]
functions_extra = ["schemars/chrono", "schemars/url", "schemars/uuid1", "schemars/either"]
json = ["dep:serde_json", "tokio/fs"]
postcard = ["dep:postcard", "tokio/fs"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]