Skip to content

Commit 28e1084

Browse files
authored
Release 0.12.0 (#168)
* 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>
1 parent 565b46d commit 28e1084

File tree

7 files changed

+9
-4
lines changed

7 files changed

+9
-4
lines changed

libvcx/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libvcx/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "libvcx"
4-
version = "0.11.0"
4+
version = "0.12.0"
55
authors = ["Absa Group Limited", "Hyperledger Indy Contributors <hyperledger-indy@lists.hyperledger.org>"]
66
publish = false
77
description = "Absa's fork of HL LibVCX"

libvcx/src/api/credential.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -536,6 +536,7 @@ pub extern fn vcx_credential_get_offers(command_handle: CommandHandle,
536536
/// #Returns
537537
/// Error code as a u32
538538
#[no_mangle]
539+
#[deprecated(since = "0.12.0", note = "Use vcx_v2_credential_update_state instead.")]
539540
pub extern fn vcx_credential_update_state(command_handle: CommandHandle,
540541
credential_handle: u32,
541542
cb: Option<extern fn(xcommand_handle: CommandHandle, err: u32, state: u32)>) -> u32 {

libvcx/src/api/disclosed_proof.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -500,6 +500,7 @@ pub extern fn vcx_disclosed_proof_get_proof_request_attachment(command_handle: C
500500
/// #Returns
501501
/// Error code as a u32
502502
#[no_mangle]
503+
#[deprecated(since = "0.12.0", note = "Use vcx_v2_disclosed_proof_update_state instead.")]
503504
pub extern fn vcx_disclosed_proof_update_state(command_handle: CommandHandle,
504505
proof_handle: u32,
505506
cb: Option<extern fn(xcommand_handle: CommandHandle, err: u32, state: u32)>) -> u32 {

libvcx/src/api/issuer_credential.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,7 @@ pub extern fn vcx_issuer_get_credential_offer_msg(command_handle: CommandHandle,
271271
/// #Returns
272272
/// Error code as a u32
273273
#[no_mangle]
274+
#[deprecated(since = "0.12.0", note = "Use vcx_v2_issuer_credential_update_state instead.")]
274275
pub extern fn vcx_issuer_credential_update_state(command_handle: CommandHandle,
275276
credential_handle: u32,
276277
cb: Option<extern fn(xcommand_handle: CommandHandle, err: u32, state: u32)>) -> u32 {

libvcx/src/api/proof.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ pub extern fn vcx_proof_create(command_handle: CommandHandle,
172172
/// #Returns
173173
/// Error code as a u32
174174
#[no_mangle]
175+
#[deprecated(since = "0.12.0", note = "Use vcx_v2_proof_update_state instead.")]
175176
pub extern fn vcx_proof_update_state(command_handle: CommandHandle,
176177
proof_handle: u32,
177178
cb: Option<extern fn(xcommand_handle: CommandHandle, err: u32, state: u32)>) -> u32 {

libvcx/src/api/vcx.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ use utils::version_constants;
2727
/// #Returns
2828
/// Error code as a u32
2929
#[no_mangle]
30+
#[deprecated(since = "0.12.0", note = "Use vcx_init_core + vcx_open_pool + vcx_open_wallet")]
3031
pub extern fn vcx_init_with_config(command_handle: CommandHandle,
3132
config: *const c_char,
3233
cb: Option<extern fn(xcommand_handle: CommandHandle, err: u32)>) -> u32 {
33-
// Todo: Either deprecate function this, or refactor to reuse code in vcx_init_core
3434
info!("vcx_init_with_config >>>");
3535

3636
check_useful_c_str!(config,VcxErrorKind::InvalidOption);
@@ -202,6 +202,7 @@ pub extern fn vcx_open_wallet(command_handle: CommandHandle, cb: extern fn(xcomm
202202
/// #Returns
203203
/// Error code as a u32
204204
#[no_mangle]
205+
#[deprecated(since = "0.12.0", note = "Use vcx_init_core + vcx_open_pool + vcx_open_wallet")]
205206
pub extern fn vcx_init(command_handle: CommandHandle,
206207
config_path: *const c_char,
207208
cb: Option<extern fn(xcommand_handle: CommandHandle, err: u32)>) -> u32 {
@@ -334,8 +335,8 @@ fn _finish_init(command_handle: CommandHandle, cb: extern fn(xcommand_handle: Co
334335
/// #Returns
335336
/// Error code as u32
336337
#[no_mangle]
338+
#[deprecated(since = "0.12.0", note = "Use vcx_init_core + vcx_open_pool + vcx_open_wallet")]
337339
pub extern fn vcx_init_minimal(config: *const c_char) -> u32 {
338-
// todo: Consider deprecating this, we now have more fine-grained init functions - vcx_init_core, vcx_open_wallet, vcx_open_pool
339340
check_useful_c_str!(config,VcxErrorKind::InvalidOption);
340341

341342
trace!("vcx_init_minimal(config: {:?})", config);

0 commit comments

Comments
 (0)