You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//! my-project/client/src/lib.rsstructClient<T:Provider>;/// Shared logic for both testing and productionimpl<T:Provider>Client<T>{pubfnupload_program(self) -> Result<()>;}implClient<Rpc>{pubfncomplex_logic_for_production();}/// Logic for deployment in productionpubfndeploy_prod() -> Result<()>{let client:Client<Rpc> = Client::rpc();
client.upload_code()}/// Same logic for testing deployment#[tokio::test]asyncfntest_deploy() -> Result<()>{let client:Client<GTest> = Client::gtest();
client.upload_code()}
Notes
No response
The text was updated successfully, but these errors were encountered:
Problem to Solve
gtest
andgclient
have different logic layout in users' code that users have to write client-style code for twice forfor their programs
Possible Solution
keep the current logic of
gclient
, introduce a micro provider for the runtime ofgtest
in gclientabstraction
for users' client library
Notes
No response
The text was updated successfully, but these errors were encountered: