Skip to content

Commit 15ead11

Browse files
Update duckdb-rs to DuckDB v1.0.0 (#336)
* Update Rust to v1.0.0 * Remove define again * Update crates/libduckdb-sys/build.rs Co-authored-by: Murali S <[email protected]> * Update build.rs * Remove patch again * Disable Windows for now --------- Co-authored-by: Murali S <[email protected]>
1 parent 88dd455 commit 15ead11

File tree

9 files changed

+16
-3122
lines changed

9 files changed

+16
-3122
lines changed

.github/workflows/rust.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ jobs:
1414
fail-fast: true
1515
matrix:
1616
include:
17-
- { target: x86_64-pc-windows-msvc, os: windows-latest, duckdb: libduckdb-windows-amd64.zip }
1817
- { target: x86_64-unknown-linux-gnu, os: ubuntu-latest, duckdb: libduckdb-linux-amd64.zip }
1918
#- { target: x86_64-apple-darwin, os: macos-latest }
2019
#- {
@@ -38,7 +37,7 @@ jobs:
3837
name: Download duckdb
3938
with:
4039
repository: "duckdb/duckdb"
41-
tag: "v0.10.1"
40+
tag: "v1.0.0"
4241
fileName: ${{ matrix.duckdb }}
4342
out-file-path: .
4443

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ members = [
77
]
88

99
[workspace.package]
10-
version = "0.10.2"
10+
version = "1.0.0"
1111
authors = ["wangfenjin <[email protected]>"]
1212
edition = "2021"
1313
repository = "https://github.com/wangfenjin/duckdb-rs"
@@ -19,8 +19,8 @@ license = "MIT"
1919
categories = ["database"]
2020

2121
[workspace.dependencies]
22-
duckdb = { version = "0.10.2", path = "crates/duckdb" }
23-
libduckdb-sys = { version = "0.10.2", path = "crates/libduckdb-sys" }
22+
duckdb = { version = "1.0.0", path = "crates/duckdb" }
23+
libduckdb-sys = { version = "1.0.0", path = "crates/libduckdb-sys" }
2424
duckdb-loadable-macros = { version = "0.1.1", path = "crates/duckdb-loadable-macros" }
2525
autocfg = "1.0"
2626
bindgen = { version = "0.69", default-features = false }

crates/duckdb/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "duckdb"
3-
version = "0.10.2"
3+
version = "1.0.0"
44
authors.workspace = true
55
edition.workspace = true
66
repository.workspace = true

crates/libduckdb-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libduckdb-sys"
3-
version = "0.10.2"
3+
version = "1.0.0"
44
authors.workspace = true
55
edition.workspace = true
66
license.workspace = true

crates/libduckdb-sys/duckdb.tar.gz

89.1 KB
Binary file not shown.

crates/libduckdb-sys/src/bindgen_bundled_version.rs

Lines changed: 1 addition & 3106 deletions
Large diffs are not rendered by default.

crates/libduckdb-sys/update_sources.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def get_sources(extensions):
7575
)
7676

7777
subprocess.check_call(
78-
'find "' + SCRIPT_DIR + '/../target" -type f -name bindgen.rs -exec rm {} \;',
78+
'find "' + SCRIPT_DIR + '/../../target" -type f -name bindgen.rs -exec rm {} \;',
7979
shell=True,
8080
)
8181

@@ -87,14 +87,14 @@ def get_sources(extensions):
8787
print(
8888
'find "'
8989
+ SCRIPT_DIR
90-
+ '/../target" -type f -name "bindgen.rs" -exec cp {} "'
90+
+ '/../../target" -type f -name "bindgen.rs" -exec cp {} "'
9191
+ SRC_DIR
9292
+ '/bindgen_bundled_version.rs" \;'
9393
)
9494
subprocess.check_call(
9595
'find "'
9696
+ SCRIPT_DIR
97-
+ '/../target" -type f -name "bindgen.rs" -exec cp {} "'
97+
+ '/../../target" -type f -name "bindgen.rs" -exec cp {} "'
9898
+ SRC_DIR
9999
+ '/bindgen_bundled_version.rs" \;',
100100
shell=True,

crates/libduckdb-sys/upgrade.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ CUR_DIR=$(pwd -P)
55
echo "$SCRIPT_DIR"
66
cd "$SCRIPT_DIR" || { echo "fatal error" >&2; exit 1; }
77
cargo clean
8-
mkdir -p "$SCRIPT_DIR/../target" "$SCRIPT_DIR/duckdb"
8+
mkdir -p "$SCRIPT_DIR/../../target" "$SCRIPT_DIR/duckdb"
99
export DUCKDB_LIB_DIR="$SCRIPT_DIR/duckdb"
1010
export DU_INCLUDE_DIR="$DUCKDB_LIB_DIR"
1111

1212
# Download and extract amalgamation
13-
DUCKDB_VERSION=v0.10.2
13+
DUCKDB_VERSION=v1.0.0
1414
git submodule update --init --checkout
1515
cd "$SCRIPT_DIR/duckdb-sources" || { echo "fatal error" >&2; exit 1; }
1616
git fetch
@@ -22,9 +22,9 @@ python3 "$SCRIPT_DIR/update_sources.py"
2222
rm -f "$SCRIPT_DIR/src/bindgen_bundled_version.rs"
2323
cargo update
2424
# Just to make sure there is only one bindgen.rs file in target dir
25-
find "$SCRIPT_DIR/../target" -type f -name bindgen.rs -exec rm {} \;
25+
find "$SCRIPT_DIR/../../target" -type f -name bindgen.rs -exec rm {} \;
2626
env LIBDUCKDB_SYS_BUNDLING=1 cargo test --features "extensions-full buildtime_bindgen"
27-
find "$SCRIPT_DIR/../target" -type f -name bindgen.rs -exec cp {} "$SCRIPT_DIR/src/bindgen_bundled_version.rs" \;
27+
find "$SCRIPT_DIR/../../target" -type f -name bindgen.rs -exec cp {} "$SCRIPT_DIR/src/bindgen_bundled_version.rs" \;
2828

2929
# Sanity checks
3030
cd "$SCRIPT_DIR/.." || { echo "fatal error" >&2; exit 1; }

upgrade.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ fi
2222

2323
echo "Start to upgrade from $duckdb_rs_version to $duckdb_version"
2424

25-
sed -i '' "s/$duckdb_rs_version/$duckdb_version/g" Cargo.toml libduckdb-sys/upgrade.sh libduckdb-sys/Cargo.toml .github/workflows/rust.yaml
26-
./libduckdb-sys/upgrade.sh
25+
sed -i '' "s/$duckdb_rs_version/$duckdb_version/g" Cargo.toml crates/libduckdb-sys/upgrade.sh crates/libduckdb-sys/Cargo.toml .github/workflows/rust.yaml
26+
./crates/libduckdb-sys/upgrade.sh

0 commit comments

Comments
 (0)