Skip to content

Commit f3323c9

Browse files
committed
Use openapi codegen
1 parent 5a716af commit f3323c9

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

typesense/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ description = "WIP client for typesense"
88

99
[features]
1010
default = ["derive"]
11+
codegen = ["typesense_codegen"]
1112
tokio-rt = ["hyper/runtime", "hyper/tcp", "hyper-tls"]
1213

1314
# Provide derive(Document) macro.
@@ -26,6 +27,7 @@ serde_json = "1"
2627
sha2 = "0.9.5"
2728
thiserror = "1.0.24"
2829
typesense_derive = { version = "0.1.0", path="../typesense_derive", optional = true }
30+
typesense_codegen = { verision = "0.24.0", path="../typesense_codegen", optional = true }
2931

3032
[dev-dependencies]
3133
serde_json = "1.0"

typesense/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
//!
66
//! Welcome to typesense, the rust library for the Typesense API.
77
8+
#[cfg(feature = "codegen")]
9+
pub use typesense_codegen as openapi_client;
10+
811
mod client;
912
pub mod collection;
1013
pub mod document;

0 commit comments

Comments
 (0)