From cf9555c8ac07d0f58db2135d0a9a19c6b716e338 Mon Sep 17 00:00:00 2001 From: Sam Ansmink Date: Mon, 16 Sep 2024 13:22:01 +0200 Subject: [PATCH] format --- crates/duckdb-loadable-macros/src/lib.rs | 1 + crates/libduckdb-sys/build.rs | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/crates/duckdb-loadable-macros/src/lib.rs b/crates/duckdb-loadable-macros/src/lib.rs index cda845fc..d852c703 100644 --- a/crates/duckdb-loadable-macros/src/lib.rs +++ b/crates/duckdb-loadable-macros/src/lib.rs @@ -21,6 +21,7 @@ struct CEntryPointMacroArgs { } /// Wraps an entrypoint function to expose an unsafe extern "C" function of the same name. +/// Warning: experimental! #[proc_macro_attribute] pub fn duckdb_entrypoint_c_api(attr: TokenStream, item: TokenStream) -> TokenStream { let attr_args = match NestedMeta::parse_meta_list(attr.into()) { diff --git a/crates/libduckdb-sys/build.rs b/crates/libduckdb-sys/build.rs index 38b78660..d788d2b1 100644 --- a/crates/libduckdb-sys/build.rs +++ b/crates/libduckdb-sys/build.rs @@ -106,8 +106,9 @@ mod build_bundled { "src/bindgen_bundled_version.rs", #[cfg(feature = "loadable_extension")] "src/bindgen_bundled_version_loadable.rs", - out_path - ).expect("Could not copy bindings to output directory"); + out_path, + ) + .expect("Could not copy bindings to output directory"); } let manifest_file = std::fs::File::open(format!("{out_dir}/{lib_name}/manifest.json")).expect("manifest file"); @@ -235,7 +236,9 @@ mod build_linked { "src/bindgen_bundled_version.rs", #[cfg(feature = "loadable_extension")] "src/bindgen_bundled_version_loadable.rs", - out_path).expect("Could not copy bindings to output directory"); + out_path, + ) + .expect("Could not copy bindings to output directory"); } #[cfg(feature = "buildtime_bindgen")]