diff --git a/Cargo.toml b/Cargo.toml index 996ad2c..1e886f1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chdb-rust" -version = "1.1.0" +version = "1.2.0" edition = "2021" authors = ["Auxten"] description = "chDB FFI bindings for Rust(Experimental)" diff --git a/build.rs b/build.rs index 82c8f78..90b8e93 100644 --- a/build.rs +++ b/build.rs @@ -24,16 +24,16 @@ fn find_libchdb_or_download(out_dir: &Path) -> Result<(PathBuf, PathBuf), Box Option<(PathBuf, PathBuf)> { if Path::new("./libchdb.so").exists() && Path::new("./chdb.h").exists() { return Some((PathBuf::from("."), PathBuf::from("./chdb.h"))); } - + // Check system installation let system_lib_path = Path::new("/usr/local/lib"); let system_header_path = Path::new("/usr/local/include/chdb.h"); - + if system_header_path.exists() { if system_lib_path.join("libchdb.so").exists() || system_lib_path.join("libchdb.dylib").exists() { return Some((system_lib_path.to_path_buf(), system_header_path.to_path_buf())); } } - + None } fn download_libchdb_to_out_dir(out_dir: &Path) -> Result<(), Box> { let platform = get_platform_string()?; - let version = "v3.6.0"; + let version = "v3.7.2"; let url = format!( "https://github.com/chdb-io/chdb/releases/download/{}/{}", version, platform