From 3c6171f2c4f310ff1d5c016adce424ef24ac9ba0 Mon Sep 17 00:00:00 2001 From: Xing Guo Date: Wed, 17 Jul 2024 20:23:45 +0800 Subject: [PATCH] Update lightgbm-rs to a newer version. There will be compiling errors with older lightgbm-rs. ``` error[E0425]: cannot find function, tuple struct or tuple variant `LGBM_GetLastError` in crate `lightgbm_sys` --> /home/v/.cargo/git/checkouts/lightgbm-rs-8bd319b78c888ced/e20d7b9/src/error.rs:41:59 | 41 | let c_str = unsafe { CStr::from_ptr(lightgbm_sys::LGBM_GetLastError()) }; | ^^^^^^^^^^^^^^^^^ not found in `lightgbm_sys` error[E0425]: cannot find function, tuple struct or tuple variant `LGBM_DatasetCreateFromMat` in crate `lightgbm_sys` --> /home/v/.cargo/git/checkouts/lightgbm-rs-8bd319b78c888ced/e20d7b9/src/dataset.rs:70:34 | 70 | lgbm_call!(lightgbm_sys::LGBM_DatasetCreateFromMat( | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `lightgbm_sys` error[E0425]: cannot find function, tuple struct or tuple variant `LGBM_DatasetSetField` in crate `lightgbm_sys` --> /home/v/.cargo/git/checkouts/lightgbm-rs-8bd319b78c888ced/e20d7b9/src/dataset.rs:81:34 | 81 | lgbm_call!(lightgbm_sys::LGBM_DatasetSetField( | ^^^^^^^^^^^^^^^^^^^^ not found in `lightgbm_sys` error[E0425]: cannot find function, tuple struct or tuple variant `LGBM_DatasetCreateFromMat` in crate `lightgbm_sys` --> /home/v/.cargo/git/checkouts/lightgbm-rs-8bd319b78c888ced/e20d7b9/src/dataset.rs:115:34 | 115 | lgbm_call!(lightgbm_sys::LGBM_DatasetCreateFromMat( | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in `lightgbm_sys` ``` This patch helps bump lightgbm-rs to a newer version. --- pgml-extension/Cargo.lock | 39 +++++---------------------------------- 1 file changed, 5 insertions(+), 34 deletions(-) diff --git a/pgml-extension/Cargo.lock b/pgml-extension/Cargo.lock index 5f34e9d8f..d6b6511d4 100644 --- a/pgml-extension/Cargo.lock +++ b/pgml-extension/Cargo.lock @@ -195,29 +195,6 @@ dependencies = [ "serde", ] -[[package]] -name = "bindgen" -version = "0.68.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "726e4313eb6ec35d2730258ad4e15b547ee75d6afaa1361a922e78e59b7d8078" -dependencies = [ - "bitflags 2.4.1", - "cexpr", - "clang-sys", - "lazy_static", - "lazycell", - "log", - "peeking_take_while", - "prettyplease", - "proc-macro2", - "quote 1.0.35", - "regex", - "rustc-hash", - "shlex", - "syn 2.0.46", - "which", -] - [[package]] name = "bindgen" version = "0.69.4" @@ -1200,7 +1177,7 @@ dependencies = [ [[package]] name = "lightgbm" version = "0.2.3" -source = "git+https://github.com/postgresml/lightgbm-rs?branch=main#e20d7b905b28a29d8e8bd2bed84f70835c342eea" +source = "git+https://github.com/postgresml/lightgbm-rs?branch=main#978dd69f6c7aafb8500ecb255f2248fde80ebc97" dependencies = [ "derive_builder 0.5.1", "libc", @@ -1211,9 +1188,9 @@ dependencies = [ [[package]] name = "lightgbm-sys" version = "0.3.0" -source = "git+https://github.com/postgresml/lightgbm-rs?branch=main#e20d7b905b28a29d8e8bd2bed84f70835c342eea" +source = "git+https://github.com/postgresml/lightgbm-rs?branch=main#978dd69f6c7aafb8500ecb255f2248fde80ebc97" dependencies = [ - "bindgen 0.68.1", + "bindgen", "cmake", "libc", ] @@ -1711,12 +1688,6 @@ dependencies = [ "libc", ] -[[package]] -name = "peeking_take_while" -version = "0.1.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099" - [[package]] name = "percent-encoding" version = "2.3.1" @@ -1841,7 +1812,7 @@ version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f40315259c41fede51eb23b791b48d0a112b0f47d0dcb6862b798d1fa1db6ea" dependencies = [ - "bindgen 0.69.4", + "bindgen", "clang-sys", "eyre", "libc", @@ -3433,7 +3404,7 @@ name = "xgboost-sys" version = "0.2.0" source = "git+https://github.com/postgresml/rust-xgboost?branch=master#a11d05d486395dcc059abf9106af84f70b2f5291" dependencies = [ - "bindgen 0.69.4", + "bindgen", "cmake", "libc", ] pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy