diff --git a/libvcx/Cargo.lock b/libvcx/Cargo.lock index ce46f110e6..015e68b3df 100644 --- a/libvcx/Cargo.lock +++ b/libvcx/Cargo.lock @@ -652,7 +652,7 @@ dependencies = [ [[package]] name = "libvcx" -version = "0.11.0" +version = "0.12.0" dependencies = [ "android_logger", "base64 0.8.0", diff --git a/libvcx/Cargo.toml b/libvcx/Cargo.toml index a0ddd5fc9b..401e312d34 100644 --- a/libvcx/Cargo.toml +++ b/libvcx/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "libvcx" -version = "0.11.0" +version = "0.12.0" authors = ["Absa Group Limited", "Hyperledger Indy Contributors "] publish = false description = "Absa's fork of HL LibVCX" diff --git a/libvcx/src/api/credential.rs b/libvcx/src/api/credential.rs index 76d6d4db71..de58da30b8 100644 --- a/libvcx/src/api/credential.rs +++ b/libvcx/src/api/credential.rs @@ -536,6 +536,7 @@ pub extern fn vcx_credential_get_offers(command_handle: CommandHandle, /// #Returns /// Error code as a u32 #[no_mangle] +#[deprecated(since = "0.12.0", note = "Use vcx_v2_credential_update_state instead.")] pub extern fn vcx_credential_update_state(command_handle: CommandHandle, credential_handle: u32, cb: Option) -> u32 { diff --git a/libvcx/src/api/disclosed_proof.rs b/libvcx/src/api/disclosed_proof.rs index 11cdc42337..c112cee18d 100644 --- a/libvcx/src/api/disclosed_proof.rs +++ b/libvcx/src/api/disclosed_proof.rs @@ -500,6 +500,7 @@ pub extern fn vcx_disclosed_proof_get_proof_request_attachment(command_handle: C /// #Returns /// Error code as a u32 #[no_mangle] +#[deprecated(since = "0.12.0", note = "Use vcx_v2_disclosed_proof_update_state instead.")] pub extern fn vcx_disclosed_proof_update_state(command_handle: CommandHandle, proof_handle: u32, cb: Option) -> u32 { diff --git a/libvcx/src/api/issuer_credential.rs b/libvcx/src/api/issuer_credential.rs index 17052a9bdb..162391470c 100644 --- a/libvcx/src/api/issuer_credential.rs +++ b/libvcx/src/api/issuer_credential.rs @@ -271,6 +271,7 @@ pub extern fn vcx_issuer_get_credential_offer_msg(command_handle: CommandHandle, /// #Returns /// Error code as a u32 #[no_mangle] +#[deprecated(since = "0.12.0", note = "Use vcx_v2_issuer_credential_update_state instead.")] pub extern fn vcx_issuer_credential_update_state(command_handle: CommandHandle, credential_handle: u32, cb: Option) -> u32 { diff --git a/libvcx/src/api/proof.rs b/libvcx/src/api/proof.rs index 011127cc81..6cde778b29 100644 --- a/libvcx/src/api/proof.rs +++ b/libvcx/src/api/proof.rs @@ -172,6 +172,7 @@ pub extern fn vcx_proof_create(command_handle: CommandHandle, /// #Returns /// Error code as a u32 #[no_mangle] +#[deprecated(since = "0.12.0", note = "Use vcx_v2_proof_update_state instead.")] pub extern fn vcx_proof_update_state(command_handle: CommandHandle, proof_handle: u32, cb: Option) -> u32 { diff --git a/libvcx/src/api/vcx.rs b/libvcx/src/api/vcx.rs index 4bdd4da334..3b00308b59 100644 --- a/libvcx/src/api/vcx.rs +++ b/libvcx/src/api/vcx.rs @@ -27,10 +27,10 @@ use utils::version_constants; /// #Returns /// Error code as a u32 #[no_mangle] +#[deprecated(since = "0.12.0", note = "Use vcx_init_core + vcx_open_pool + vcx_open_wallet")] pub extern fn vcx_init_with_config(command_handle: CommandHandle, config: *const c_char, cb: Option) -> u32 { - // Todo: Either deprecate function this, or refactor to reuse code in vcx_init_core info!("vcx_init_with_config >>>"); check_useful_c_str!(config,VcxErrorKind::InvalidOption); @@ -202,6 +202,7 @@ pub extern fn vcx_open_wallet(command_handle: CommandHandle, cb: extern fn(xcomm /// #Returns /// Error code as a u32 #[no_mangle] +#[deprecated(since = "0.12.0", note = "Use vcx_init_core + vcx_open_pool + vcx_open_wallet")] pub extern fn vcx_init(command_handle: CommandHandle, config_path: *const c_char, cb: Option) -> u32 { @@ -334,8 +335,8 @@ fn _finish_init(command_handle: CommandHandle, cb: extern fn(xcommand_handle: Co /// #Returns /// Error code as u32 #[no_mangle] +#[deprecated(since = "0.12.0", note = "Use vcx_init_core + vcx_open_pool + vcx_open_wallet")] pub extern fn vcx_init_minimal(config: *const c_char) -> u32 { - // todo: Consider deprecating this, we now have more fine-grained init functions - vcx_init_core, vcx_open_wallet, vcx_open_pool check_useful_c_str!(config,VcxErrorKind::InvalidOption); trace!("vcx_init_minimal(config: {:?})", config);