-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathCargo.toml
More file actions
90 lines (82 loc) · 2.5 KB
/
Copy pathCargo.toml
File metadata and controls
90 lines (82 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
[workspace]
members = ["wasm"]
# Scratch crates (spec-compile.sh, ad-hoc generator runs) live under tmp/;
# they must never be adopted into this workspace.
exclude = ["tmp"]
[package]
name = "openapi-to-rust"
version = "0.12.0"
edition = "2024"
rust-version = "1.88.0"
autobins = false
default-run = "openapi-to-rust"
authors = ["James Lal"]
license = "MIT"
description = "Generate typed Rust models, HTTP/SSE clients, and Axum servers from OpenAPI 3.0/3.1 (experimental 3.2)"
repository = "https://github.com/gpu-cli/openapi-to-rust"
homepage = "https://openapi-to-rust.dev"
keywords = ["openapi", "rust", "sdk-generator", "api-client", "axum"]
categories = ["development-tools", "web-programming"]
readme = "README.md"
include = [
"/src/**",
"/Cargo.toml",
"/README.md",
"/CHANGELOG.md",
"/CONTRIBUTING.md",
"/CODE_OF_CONDUCT.md",
"/SECURITY.md",
"/SUPPORT.md",
"/LICENSE",
]
[dependencies]
clap = { version = "4.5", features = ["derive"], optional = true }
once_cell = "1.19"
prettyplease = "0.2"
proc-macro2 = "1.0"
quote = "1.0"
reqwest = { version = "0.13", default-features = false, features = ["blocking", "query", "rustls"], optional = true }
url = "2"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_yaml = "0.9"
syn = { version = "2.0", features = ["parsing"] }
thiserror = "2.0"
tempfile = { version = "3.0", optional = true }
insta = { version = "1.41", features = ["yaml"], optional = true }
toml = "0.8"
toml_edit = "0.22"
specta = { version = "2.0.0-rc", features = ["derive"], optional = true }
heck = "0.5"
jsonschema = { version = "0.49", default-features = false }
regex = "1"
[dev-dependencies]
serde_yaml = "0.9"
insta = { version = "1.41", features = ["yaml"] }
tempfile = "3.0"
[features]
default = ["cli"]
cli = ["dep:clap", "dep:reqwest", "http-error"]
http-error = ["dep:reqwest"]
internal-tools = []
specta = ["dep:specta"]
test-helpers = ["dep:insta", "dep:tempfile"]
[[bin]]
name = "openapi-to-rust"
path = "src/bin/openapi-to-rust.rs"
required-features = ["cli"]
[[bin]]
name = "catalog-gen"
path = "src/bin/catalog-gen.rs"
required-features = ["internal-tools"]
[[bin]]
name = "file-beads"
path = "src/bin/file-beads.rs"
required-features = ["internal-tools"]
[lints.clippy]
unwrap_used = "deny"
expect_used = "warn"
# Newer Clippy releases flag the repository's established nested-condition
# style now that let-chains are stable. Keep `-D warnings` focused on the other
# lints while that mechanical cleanup is handled separately.
collapsible_if = "allow"