Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Jan 15, 2025
1 parent 6c66e1f commit 2c3040f
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions crates/sdk/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,6 @@ use crate::cuda::builder::CudaProverBuilder;
pub struct ProverClient;

impl ProverClient {
/// Creates a new [`EnvProver`] from the environment.
///
/// # Example
/// ```no_run
/// use sp1_sdk::ProverClient;
///
/// std::env::set_var("SP1_PROVER", "network");
/// std::env::set_var("NETWORK_PRIVATE_KEY", "...");
/// std::env::set_var("NETWORK_RPC_URL", "...");
/// let prover = ProverClient::from_env();
/// ```
#[deprecated(since = "4.0.0", note = "use `ProverClient::from_env()` instead")]
#[allow(clippy::new_ret_no_self)]
#[must_use]
pub fn new() -> EnvProver {
Self::from_env()
}

/// Builds an [`EnvProver`], which loads the mode and any settings from the environment.
///
/// # Usage
Expand All @@ -58,6 +40,24 @@ impl ProverClient {
pub fn builder() -> ProverClientBuilder {
ProverClientBuilder
}

/// Creates a new [`EnvProver`] from the environment.
///
/// # Example
/// ```no_run
/// use sp1_sdk::ProverClient;
///
/// std::env::set_var("SP1_PROVER", "network");
/// std::env::set_var("NETWORK_PRIVATE_KEY", "...");
/// std::env::set_var("NETWORK_RPC_URL", "...");
/// let prover = ProverClient::from_env();
/// ```
#[deprecated(since = "4.0.0", note = "use `ProverClient::from_env()` instead")]
#[allow(clippy::new_ret_no_self)]
#[must_use]
pub fn new() -> EnvProver {
Self::from_env()
}
}

/// A builder to define which proving client to use.
Expand Down

0 comments on commit 2c3040f

Please sign in to comment.