File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -810,6 +810,7 @@ impl Client {
810810 /// let client = client::Client::new(MEILISEARCH_HOST, token);
811811 /// # });
812812 /// ```
813+ #[ cfg( not( target_arch = "wasm32" ) ) ]
813814 pub fn generate_tenant_token (
814815 & self ,
815816 api_key_uid : String ,
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ use time::OffsetDateTime;
66use uuid:: Uuid ;
77
88#[ derive( Debug , Serialize , Deserialize ) ]
9+ #[ cfg( not( target_arch = "wasm32" ) ) ]
910#[ serde( rename_all = "camelCase" ) ]
1011struct TenantTokenClaim {
1112 api_key_uid : String ,
@@ -14,6 +15,7 @@ struct TenantTokenClaim {
1415 exp : Option < OffsetDateTime > ,
1516}
1617
18+ #[ cfg( not( target_arch = "wasm32" ) ) ]
1719pub fn generate_tenant_token (
1820 api_key_uid : String ,
1921 search_rules : Value ,
You can’t perform that action at this time.
0 commit comments