File tree Expand file tree Collapse file tree 9 files changed +16
-3122
lines changed
Expand file tree Collapse file tree 9 files changed +16
-3122
lines changed Original file line number Diff line number Diff line change 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 # - {
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
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ members = [
77]
88
99[workspace .package ]
10- version = " 0.10.2 "
10+ version = " 1.0.0 "
1111authors = [" wangfenjin <wangfenj@gmail.com>" ]
1212edition = " 2021"
1313repository = " https://github.com/wangfenjin/duckdb-rs"
@@ -19,8 +19,8 @@ license = "MIT"
1919categories = [" 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" }
2424duckdb-loadable-macros = { version = " 0.1.1" , path = " crates/duckdb-loadable-macros" }
2525autocfg = " 1.0"
2626bindgen = { version = " 0.69" , default-features = false }
Original file line number Diff line number Diff line change 11[package ]
22name = " duckdb"
3- version = " 0.10.2 "
3+ version = " 1.0.0 "
44authors.workspace = true
55edition.workspace = true
66repository.workspace = true
Original file line number Diff line number Diff line change 11[package ]
22name = " libduckdb-sys"
3- version = " 0.10.2 "
3+ version = " 1.0.0 "
44authors.workspace = true
55edition.workspace = true
66license.workspace = true
Load Diff Large diffs are not rendered by default.
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ def get_sources(extensions):
7575)
7676
7777subprocess .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):
8787print (
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)
9494subprocess .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 ,
Original file line number Diff line number Diff line change @@ -5,12 +5,12 @@ CUR_DIR=$(pwd -P)
55echo " $SCRIPT_DIR "
66cd " $SCRIPT_DIR " || { echo " fatal error" >&2 ; exit 1; }
77cargo clean
8- mkdir -p " $SCRIPT_DIR /../target" " $SCRIPT_DIR /duckdb"
8+ mkdir -p " $SCRIPT_DIR /../../ target" " $SCRIPT_DIR /duckdb"
99export DUCKDB_LIB_DIR=" $SCRIPT_DIR /duckdb"
1010export DU_INCLUDE_DIR=" $DUCKDB_LIB_DIR "
1111
1212# Download and extract amalgamation
13- DUCKDB_VERSION=v0.10.2
13+ DUCKDB_VERSION=v1.0.0
1414git submodule update --init --checkout
1515cd " $SCRIPT_DIR /duckdb-sources" || { echo " fatal error" >&2 ; exit 1; }
1616git fetch
@@ -22,9 +22,9 @@ python3 "$SCRIPT_DIR/update_sources.py"
2222rm -f " $SCRIPT_DIR /src/bindgen_bundled_version.rs"
2323cargo 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 {} \;
2626env 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
3030cd " $SCRIPT_DIR /.." || { echo " fatal error" >&2 ; exit 1; }
Original file line number Diff line number Diff line change 2222
2323echo " 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
You can’t perform that action at this time.
0 commit comments