diff --git a/Cargo.toml b/Cargo.toml index 9757360f..c5674e9b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -85,7 +85,7 @@ path = "libduckdb-sys" version = "0.10.1" [package.metadata.docs.rs] -features = [] +features = ['vtab', 'chrono'] all-features = false no-default-features = true default-target = "x86_64-unknown-linux-gnu" diff --git a/src/config.rs b/src/config.rs index 7c5a3b95..66e37c4b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -41,7 +41,7 @@ pub enum DefaultNullOrder { } /// duckdb configuration -/// Refer to https://github.com/duckdb/duckdb/blob/master/src/main/config.cpp +/// Refer to #[derive(Default)] pub struct Config { config: Option, diff --git a/src/vtab/arrow.rs b/src/vtab/arrow.rs index 20082534..e0c7a137 100644 --- a/src/vtab/arrow.rs +++ b/src/vtab/arrow.rs @@ -208,7 +208,6 @@ pub fn to_duckdb_logical_type(data_type: &DataType) -> Result #[repr(u32)] #[derive(Debug, PartialEq, Eq)] pub enum LogicalTypeId { @@ -109,7 +109,7 @@ impl From for LogicalTypeId { } /// DuckDB Logical Type. -/// https://duckdb.org/docs/sql/data_types/overview +/// pub struct LogicalType { pub(crate) ptr: duckdb_logical_type, } diff --git a/src/vtab/mod.rs b/src/vtab/mod.rs index 4a634fec..40717819 100644 --- a/src/vtab/mod.rs +++ b/src/vtab/mod.rs @@ -59,7 +59,7 @@ pub trait Free { /// Duckdb table function trait /// /// See to the HelloVTab example for more details -/// https://duckdb.org/docs/api/c/table_functions +/// pub trait VTab: Sized { /// The data type of the bind data type InitData: Sized + Free;