File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ description = "WIP client for typesense"
88
99[features ]
1010default  = [" derive"  ]
11+ codegen  = [" typesense_codegen"  ]
1112tokio-rt  = [" hyper/runtime"  , " hyper/tcp"  , " hyper-tls"  ]
1213
1314#  Provide derive(Document) macro.
@@ -26,6 +27,7 @@ serde_json = "1"
2627sha2  = " 0.9.5" 
2728thiserror  = " 1.0.24" 
2829typesense_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 ]
3133serde_json  = " 1.0" 
Original file line number Diff line number Diff line change 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+ 
811mod  client; 
912pub  mod  collection; 
1013pub  mod  document; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments