Skip to content

Commit f37341f

Browse files
committed
Merge remote-tracking branch 'origin/main' into fix-convert-arrow-list-type
2 parents 244a1c0 + 1aca078 commit f37341f

File tree

14 files changed

+33
-75
lines changed

14 files changed

+33
-75
lines changed

.github/workflows/rust.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,12 @@ jobs:
114114
runs-on: ubuntu-latest
115115
steps:
116116
- uses: actions/checkout@v2
117-
# Need nightly rust.
118117
- uses: actions-rust-lang/setup-rust-toolchain@v1
119118
with:
120-
toolchain: nightly
121-
components: "rust-src"
122-
# Install LLVM tools
119+
toolchain: nightly-2025-08-15
120+
components: rust-src
123121
- name: Install LLVM
124-
run: |
125-
sudo apt-get install -y llvm
122+
run: sudo apt-get install -y llvm
126123
- name: Tests with asan
127124
env:
128125
RUSTFLAGS: -Zsanitizer=address -C debuginfo=0

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,15 @@ members = [
99
[workspace.package]
1010
version = "1.3.2"
1111
authors = ["wangfenjin <[email protected]>"]
12-
edition = "2021"
1312
repository = "https://github.com/duckdb/duckdb-rs"
1413
homepage = "https://github.com/duckdb/duckdb-rs"
1514
documentation = "http://docs.rs/duckdb/"
1615
readme = "README.md"
1716
keywords = ["duckdb", "database", "ffi"]
1817
license = "MIT"
1918
categories = ["database"]
19+
edition = "2021"
20+
rust-version = "1.82.0"
2021

2122
[workspace.dependencies]
2223
duckdb = { version = "=1.3.2", path = "crates/duckdb" }

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ If you use the `bundled` features, you will get pregenerated bindings for the
200200
bundled version of DuckDB. If you want to run `bindgen` at buildtime to
201201
produce your own bindings, use the `buildtime_bindgen` Cargo feature.
202202

203+
## Rust version compatibility
204+
205+
duckdb-rs is built and tested with stable Rust, and will keep a rolling MSRV (minimum supported Rust version) that can only be updated in major and minor releases on a need by basis (e.g. project dependencies bump their MSRV or a particular Rust feature is useful for us etc.). The new MSRV will be at least 6 months old. Patch releases are guaranteed to have the same MSRV.
206+
203207
## Contributing
204208

205209
We welcome contributions! Take a look at [CONTRIBUTING.md](CONTRIBUTING.md) for more information.

crates/duckdb-loadable-macros/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
name = "duckdb-loadable-macros"
33
version = "0.1.9"
44
authors = { workspace = true }
5-
edition = { workspace = true }
65
license = { workspace = true }
76
repository = { workspace = true }
87
homepage = { workspace = true }
98
keywords = { workspace = true }
109
readme = { workspace = true }
1110
categories = ["external-ffi-bindings", "database"]
1211
description = "Native bindings to the libduckdb library, C API; build loadable extensions"
12+
edition = { workspace = true }
13+
rust-version = { workspace = true }
1314

1415
[dependencies]
1516
darling = "0.20.10"

crates/duckdb/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
name = "duckdb"
33
version = "1.3.2"
44
authors = { workspace = true }
5-
edition = { workspace = true }
65
repository = { workspace = true }
76
homepage = { workspace = true }
87
documentation = { workspace = true }
@@ -11,6 +10,8 @@ keywords = { workspace = true }
1110
license = { workspace = true }
1211
categories = { workspace = true }
1312
description = "Ergonomic wrapper for DuckDB"
13+
edition = { workspace = true }
14+
rust-version = { workspace = true }
1415

1516
[lib]
1617
name = "duckdb"

crates/duckdb/src/appender_params.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use sealed::Sealed;
1010
/// Trait used for [sets of parameter][params] passed into SQL
1111
/// statements/queries.
1212
///
13-
/// [params]: https://www.sqlite.org/c3ref/bind_blob.html
13+
/// [params]: https://duckdb.org/docs/stable/clients/c/prepared.html
1414
///
1515
/// Note: Currently, this trait can only be implemented inside this crate.
1616
/// Additionally, it's methods (which are `doc(hidden)`) should currently not be

crates/duckdb/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ pub use crate::{
8383
params::{params_from_iter, Params, ParamsFromIter},
8484
row::{AndThenRows, Map, MappedRows, Row, RowIndex, Rows},
8585
statement::Statement,
86-
transaction::{DropBehavior, Transaction, TransactionBehavior},
86+
transaction::{DropBehavior, Transaction},
8787
types::ToSql,
8888
};
8989
#[cfg(feature = "polars")]

crates/duckdb/src/params.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ use sealed::Sealed;
1010
/// Trait used for [sets of parameter][params] passed into SQL
1111
/// statements/queries.
1212
///
13-
/// [params]: https://www.sqlite.org/c3ref/bind_blob.html
13+
/// [params]: https://duckdb.org/docs/stable/clients/c/prepared.html
1414
///
1515
/// Note: Currently, this trait can only be implemented inside this crate.
16-
/// Additionally, it's methods (which are `doc(hidden)`) should currently not be
16+
/// Additionally, its methods (which are `doc(hidden)`) should currently not be
1717
/// considered part of the stable API, although it's possible they will
1818
/// stabilize in the future.
1919
///
20-
/// # Passing parameters to SQLite
20+
/// # Passing parameters to DuckDB
2121
///
22-
/// Many functions in this library let you pass parameters to SQLite. Doing this
22+
/// Many functions in this library let you pass parameters to DuckDB. Doing this
2323
/// lets you avoid any risk of SQL injection, and is simpler than escaping
2424
/// things manually. Aside from deprecated functions and a few helpers, this is
2525
/// indicated by the function taking a generic argument that implements `Params`

crates/duckdb/src/pragma.rs

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,6 @@ impl Connection {
146146
///
147147
/// Some pragmas will return multiple rows/values which cannot be retrieved
148148
/// with this method.
149-
///
150-
/// Prefer [PRAGMA function](https://sqlite.org/pragma.html#pragfunc) introduced in DuckDB 3.20:
151-
/// `SELECT user_version FROM pragma_user_version;`
152149
pub fn pragma_query_value<T, F>(&self, schema_name: Option<DatabaseName<'_>>, pragma_name: &str, f: F) -> Result<T>
153150
where
154151
F: FnOnce(&Row<'_>) -> Result<T>,
@@ -159,9 +156,6 @@ impl Connection {
159156
}
160157

161158
/// Query the current rows/values of `pragma_name`.
162-
///
163-
/// Prefer [PRAGMA function](https://sqlite.org/pragma.html#pragfunc) introduced in DuckDB 3.20:
164-
/// `SELECT * FROM pragma_collation_list;`
165159
pub fn pragma_query<F>(&self, schema_name: Option<DatabaseName<'_>>, pragma_name: &str, mut f: F) -> Result<()>
166160
where
167161
F: FnMut(&Row<'_>) -> Result<()>,
@@ -176,15 +170,11 @@ impl Connection {
176170
Ok(())
177171
}
178172

179-
/// Query the current value(s) of `pragma_name` associated to
180-
/// `pragma_value`.
173+
/// Query the current value(s) of `pragma_name` associated to `pragma_value`.
181174
///
182175
/// This method can be used with query-only pragmas which need an argument
183176
/// (e.g. `table_info('one_tbl')`) or pragmas which returns value(s)
184177
/// (e.g. `integrity_check`).
185-
///
186-
/// Prefer [PRAGMA function](https://sqlite.org/pragma.html#pragfunc) introduced in DuckDB 3.20:
187-
/// `SELECT * FROM pragma_table_info(?);`
188178
pub fn pragma<F>(
189179
&self,
190180
schema_name: Option<DatabaseName<'_>>,

0 commit comments

Comments
 (0)