146.0 error[E0308]: mismatched types 146.0 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/mongocrypt-0.1.2/src/ctx.rs:230:77 146.0 | 146.0 230 | if !sys::mongocrypt_ctx_setopt_query_type(*self.inner.borrow(), s, len) { 146.0 | ------------------------------------- ^ expected `*const u8`, found `*const i8` 146.0 | | 146.0 | arguments to this function are incorrect 146.0 | 146.0 = note: expected raw pointer `*const u8` 146.0 found raw pointer `*const i8` 146.0 note: function defined here 146.0 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/mongocrypt-sys-0.1.2+1.8.0-alpha1/src/bindings.rs:524:12 146.0 | 146.0 524 | pub fn mongocrypt_ctx_setopt_query_type( 146.0 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 146.0 146.0 error[E0308]: mismatched types 146.0 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/mongocrypt-0.1.2/src/ctx.rs:272:17 146.0 | 146.0 270 | if !sys::mongocrypt_ctx_encrypt_init( 146.0 | -------------------------------- arguments to this function are incorrect 146.0 271 | *self.inner.borrow(), 146.0 272 | db_bytes, 146.0 | ^^^^^^^^ expected `*const u8`, found `*const i8` 146.0 | 146.0 = note: expected raw pointer `*const u8` 146.0 found raw pointer `*const i8` 146.0 note: function defined here 146.0 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/mongocrypt-sys-0.1.2+1.8.0-alpha1/src/bindings.rs:281:12 146.0 | 146.0 281 | pub fn mongocrypt_ctx_encrypt_init( 146.0 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 146.0 146.0 error[E0308]: mismatched types 146.0 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/mongocrypt-0.1.2/src/error.rs:146:67 146.0 | 146.0 146 | sys::mongocrypt_status_set(*self.native(), typ, code, message_ptr, message_len); 146.0 | -------------------------- ^^^^^^^^^^^ expected `*const u8`, found `*const i8` 146.0 | | 146.0 | arguments to this function are incorrect 146.0 | 146.0 = note: expected raw pointer `*const u8` 146.0 found raw pointer `*const i8` 146.0 note: function defined here 146.0 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/mongocrypt-sys-0.1.2+1.8.0-alpha1/src/bindings.rs:54:12 146.0 | 146.0 54 | pub fn mongocrypt_status_set( 146.0 | ^^^^^^^^^^^^^^^^^^^^^ 146.0 146.0 error[E0308]: mismatched types 146.0 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/mongocrypt-0.1.2/src/hooks.rs:363:17 146.0 | 146.0 359 | sys::mongocrypt_status_set( 146.0 | -------------------------- arguments to this function are incorrect 146.1 ... 146.1 363 | b"Failed to record error, see logs for details\0".as_ptr() as *const i8, 146.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8` 146.1 | 146.1 = note: expected raw pointer `*const u8` 146.1 found raw pointer `*const i8` 146.1 note: function defined here 146.1 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/mongocrypt-sys-0.1.2+1.8.0-alpha1/src/bindings.rs:54:12 146.1 | 146.1 54 | pub fn mongocrypt_status_set( 146.1 | ^^^^^^^^^^^^^^^^^^^^^ 146.1 146.1 error[E0308]: mismatched types 146.1 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/mongocrypt-0.1.2/src/lib.rs:163:17 146.1 | 146.1 161 | sys::mongocrypt_setopt_append_crypt_shared_lib_search_path( 146.1 | ---------------------------------------------------------- arguments to this function are incorrect 146.1 162 | *self.inner.borrow(), 146.1 163 | tmp.as_ptr() as *const i8, 146.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8` 146.1 | 146.1 = note: expected raw pointer `*const u8` 146.1 found raw pointer `*const i8` 146.1 note: function defined here 146.1 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/mongocrypt-sys-0.1.2+1.8.0-alpha1/src/bindings.rs:160:12 146.1 | 146.1 160 | pub fn mongocrypt_setopt_append_crypt_shared_lib_search_path( 146.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 146.1 146.1 error[E0308]: mismatched types 146.1 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/mongocrypt-0.1.2/src/lib.rs:192:17 146.1 | 146.1 190 | sys::mongocrypt_setopt_set_crypt_shared_lib_path_override( 146.1 | --------------------------------------------------------- arguments to this function are incorrect 146.1 191 | *self.inner.borrow(), 146.1 192 | tmp.as_ptr() as *const i8, 146.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `*const u8`, found `*const i8` 146.1 | 146.1 = note: expected raw pointer `*const u8` 146.1 found raw pointer `*const i8` 146.1 note: function defined here 146.1 --> /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/mongocrypt-sys-0.1.2+1.8.0-alpha1/src/bindings.rs:167:12 146.1 | 146.1 167 | pub fn mongocrypt_setopt_set_crypt_shared_lib_path_override( 146.1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 146.1 146.1 For more information about this error, try `rustc --explain E0308`. 146.1 error: could not compile `mongocrypt` (lib) due to 6 previous errors 146.1 warning: build failed, waiting for other jobs to finish... 147.3 error: failed to compile `cache_manager_rs v0.1.0 (/CacheManager)`, intermediate artifacts can be found at `/CacheManager/target`. 147.3 To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path. ------ Dockerfile:39 -------------------- 37 | ENV MONGOCRYPT_LIB_DIR="/usr/lib/aarch64-linux-gnu" 38 | 39 | >>> RUN cargo install --path . 40 | 41 | -------------------- ERROR: failed to solve: process "/bin/sh -c cargo install --path ." did not complete successfully: exit code: 101