mongo-rust-driver icon indicating copy to clipboard operation
mongo-rust-driver copied to clipboard

Problems with libicu

Open MightyPork opened this issue 3 years ago • 3 comments

I upgraded to a newer version of the library to get support for mongodb 6.

However, it now needs libicu of a particular version, this is a problem for distribution as different linuxes have different icu version available.

I think this can be solved by adding ENABLE_ICU=OFF to the build script of mongoc-sys, i'm going to try making a local fork with that option added...

MightyPork avatar Oct 10 '22 12:10 MightyPork

Okay so, this worked, probably MONGOC_ENABLE_ICU is enough, it seems to be stronger.

cmake.arg("-DMONGOC_ENABLE_ICU=OFF");
cmake.arg("-DENABLE_ICU=OFF");

MightyPork avatar Oct 10 '22 12:10 MightyPork

I had some trouble with this as well. Is there a disadvantage to turning this off?

thijsc avatar Oct 11 '22 13:10 thijsc

I tried to find what it's used for, I believe it's only needed for usernames and passwords (and maybe collection names etc.) that use non-ASCII. For me that's not needed at all. I also got away with disabling ZSTD compression in the build so it's now a little smaller and more portable.

MightyPork avatar Oct 11 '22 13:10 MightyPork