Skip to content

Commit c26fc38

Browse files
authored
RUST-1605 Remove bindings to fle2v2 function (#26)
1 parent 83599a8 commit c26fc38

File tree

4 files changed

+2
-16
lines changed

4 files changed

+2
-16
lines changed

mongocrypt-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "mongocrypt-sys"
33
description = "FFI bindings to libmongocrypt"
4-
version = "0.1.1+1.8.0-alpha0"
4+
version = "0.1.2+1.8.0-alpha1"
55
edition = "2021"
66
license = "Apache-2.0"
77
authors = [

mongocrypt-sys/src/bindings.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@ extern "C" {
109109
#[doc = " Allocate a new @ref mongocrypt_t object.\n\n Set options using mongocrypt_setopt_* functions, then initialize with @ref\n mongocrypt_init. When done with the @ref mongocrypt_t, free with @ref\n mongocrypt_destroy.\n\n @returns A new @ref mongocrypt_t object."]
110110
pub fn mongocrypt_new() -> *mut mongocrypt_t;
111111
}
112-
extern "C" {
113-
#[doc = " Enable/disable the use of FLE2v2 payload types for write.\n\n @param[in] crypt The @ref mongocrypt_t object.\n @param[in] enable Whether to enable use of FLE2v2 payloads.\n\n @returns A boolean indicating success. If false, an error status is set.\n Retrieve it with @ref mongocrypt_status"]
114-
pub fn mongocrypt_setopt_fle2v2(crypt: *mut mongocrypt_t, enable: bool) -> bool;
115-
}
116112
extern "C" {
117113
#[doc = " Set a handler on the @ref mongocrypt_t object to get called on every log\n message.\n\n @param[in] crypt The @ref mongocrypt_t object.\n @param[in] log_fn The log callback.\n @param[in] log_ctx A context passed as an argument to the log callback every\n invocation.\n @pre @ref mongocrypt_init has not been called on @p crypt.\n @returns A boolean indicating success. If false, an error status is set.\n Retrieve it with @ref mongocrypt_ctx_status"]
118114
pub fn mongocrypt_setopt_log_handler(

mongocrypt/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "mongocrypt"
33
description = "Rust-idiomatic wrapper around mongocrypt-sys"
4-
version = "0.1.1"
4+
version = "0.1.2"
55
edition = "2021"
66
license = "Apache-2.0"
77
authors = [

mongocrypt/src/lib.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -224,16 +224,6 @@ impl CryptBuilder {
224224
self
225225
}
226226

227-
/// Enable/disable the use of FLE2v2 payload types for write.
228-
pub fn fle2v2(self, enable: bool) -> Result<Self> {
229-
unsafe {
230-
if !sys::mongocrypt_setopt_fle2v2(*self.inner.borrow(), enable) {
231-
return Err(self.status().as_error());
232-
}
233-
}
234-
Ok(self)
235-
}
236-
237227
pub fn build(mut self) -> Result<Crypt> {
238228
let _guard = CRYPT_LOCK.lock().unwrap();
239229

0 commit comments

Comments
 (0)