Skip to content

Commit

Permalink
Release 0.12.0 (#168)
Browse files Browse the repository at this point in the history
* Release 0.11.1

Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>

* Bump minor instead of patch

Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>

* Deprecate old update state and inits

Signed-off-by: Miroslav Kovar <miroslavkovar@protonmail.com>
  • Loading branch information
mirgee authored Oct 27, 2020
1 parent 565b46d commit 28e1084
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libvcx/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion libvcx/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]

name = "libvcx"
version = "0.11.0"
version = "0.12.0"
authors = ["Absa Group Limited", "Hyperledger Indy Contributors <hyperledger-indy@lists.hyperledger.org>"]
publish = false
description = "Absa's fork of HL LibVCX"
Expand Down
1 change: 1 addition & 0 deletions libvcx/src/api/credential.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<extern fn(xcommand_handle: CommandHandle, err: u32, state: u32)>) -> u32 {
Expand Down
1 change: 1 addition & 0 deletions libvcx/src/api/disclosed_proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<extern fn(xcommand_handle: CommandHandle, err: u32, state: u32)>) -> u32 {
Expand Down
1 change: 1 addition & 0 deletions libvcx/src/api/issuer_credential.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<extern fn(xcommand_handle: CommandHandle, err: u32, state: u32)>) -> u32 {
Expand Down
1 change: 1 addition & 0 deletions libvcx/src/api/proof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<extern fn(xcommand_handle: CommandHandle, err: u32, state: u32)>) -> u32 {
Expand Down
5 changes: 3 additions & 2 deletions libvcx/src/api/vcx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<extern fn(xcommand_handle: CommandHandle, err: u32)>) -> 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);
Expand Down Expand Up @@ -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<extern fn(xcommand_handle: CommandHandle, err: u32)>) -> u32 {
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 28e1084

Please sign in to comment.