-
Notifications
You must be signed in to change notification settings - Fork 26
/
Cargo.toml
38 lines (33 loc) · 1.01 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
[package]
name = "openai-api"
version = "0.1.5-alpha.0"
authors = ["Josh Kuhn <[email protected]>"]
license-file = "LICENSE"
edition = "2018"
description = "OpenAI API library for rust"
homepage = "https://github.com/deontologician/openai-api-rust/"
repository = "https://github.com/deontologician/openai-api-rust/"
keywords = ["openai", "gpt3"]
categories = ["api-bindings", "asynchronous"]
[build]
rustdocflags = ["--all-features"]
[features]
default = ["sync", "async"]
sync = ["ureq"]
async = ["surf/hyper-client"]
[dependencies]
thiserror = "^1.0.22"
serde = { version = "^1.0.117", features = ["derive"] }
derive_builder = "^0.9.0"
log = "^0.4.11"
# Used by sync feature
ureq = { version = "^1.5.4", optional=true, features = ["json", "tls"] }
serde_json = { version="^1.0"}
# Used by async feature
surf = { version = "^2.1.0", optional=true, default-features=false}
[dev-dependencies]
mockito = "0.28.0"
maplit = "1.0.2"
tokio = { version = "^0.2.5", features = ["full"]}
env_logger = "0.8.2"
serde_json = "^1.0"