From 139b5b567232745cd92ef8747f4098f617938a98 Mon Sep 17 00:00:00 2001 From: Matthijs Brobbel Date: Thu, 20 Feb 2025 16:32:34 +0100 Subject: [PATCH] Use `doc_auto_cfg`, logo and favicon for docs.rs (#14746) --- datafusion-cli/Cargo.toml | 3 +++ datafusion-cli/src/lib.rs | 5 +++++ datafusion/catalog-listing/Cargo.toml | 3 +++ datafusion/catalog-listing/src/mod.rs | 6 ++++++ datafusion/catalog/Cargo.toml | 3 +++ datafusion/catalog/src/lib.rs | 6 ++++++ datafusion/common-runtime/Cargo.toml | 4 +++- datafusion/common-runtime/src/lib.rs | 5 +++++ datafusion/common/Cargo.toml | 4 +++- datafusion/common/src/lib.rs | 5 +++++ datafusion/core/Cargo.toml | 7 +++---- datafusion/core/src/lib.rs | 5 +++++ datafusion/datasource/Cargo.toml | 3 +++ datafusion/datasource/src/mod.rs | 6 ++++++ datafusion/doc/Cargo.toml | 4 +++- datafusion/doc/src/lib.rs | 6 ++++++ datafusion/execution/Cargo.toml | 4 +++- datafusion/execution/src/lib.rs | 5 +++++ datafusion/expr-common/Cargo.toml | 6 +++--- datafusion/expr-common/src/lib.rs | 7 ++++++- datafusion/expr/Cargo.toml | 4 +++- datafusion/expr/src/lib.rs | 5 +++++ datafusion/ffi/Cargo.toml | 4 +++- datafusion/ffi/src/lib.rs | 5 +++++ datafusion/functions-aggregate-common/Cargo.toml | 6 +++--- datafusion/functions-aggregate-common/src/lib.rs | 5 +++++ datafusion/functions-aggregate/Cargo.toml | 6 +++--- datafusion/functions-aggregate/src/lib.rs | 5 +++++ datafusion/functions-nested/Cargo.toml | 8 +++----- datafusion/functions-nested/src/lib.rs | 5 +++++ datafusion/functions-table/Cargo.toml | 6 +++--- datafusion/functions-table/src/lib.rs | 6 ++++++ datafusion/functions-window-common/Cargo.toml | 6 +++--- datafusion/functions-window-common/src/lib.rs | 6 ++++++ datafusion/functions-window/Cargo.toml | 6 +++--- datafusion/functions-window/src/lib.rs | 6 ++++++ datafusion/functions/Cargo.toml | 6 +++--- datafusion/functions/src/lib.rs | 5 +++++ datafusion/macros/Cargo.toml | 3 +++ datafusion/macros/src/user_doc.rs | 6 ++++++ datafusion/optimizer/Cargo.toml | 4 +++- datafusion/optimizer/src/lib.rs | 5 +++++ datafusion/physical-expr-common/Cargo.toml | 4 +++- datafusion/physical-expr-common/src/lib.rs | 5 +++++ datafusion/physical-expr/Cargo.toml | 4 +++- datafusion/physical-expr/src/lib.rs | 5 +++++ datafusion/physical-optimizer/Cargo.toml | 3 +++ datafusion/physical-optimizer/src/lib.rs | 5 +++++ datafusion/physical-plan/Cargo.toml | 4 +++- datafusion/physical-plan/src/lib.rs | 6 +++++- datafusion/proto-common/Cargo.toml | 4 +++- datafusion/proto-common/src/lib.rs | 5 +++++ datafusion/proto/Cargo.toml | 4 +++- datafusion/proto/src/lib.rs | 5 +++++ datafusion/sql/Cargo.toml | 4 +++- datafusion/sql/src/lib.rs | 5 +++++ datafusion/sqllogictest/Cargo.toml | 4 +++- datafusion/sqllogictest/src/lib.rs | 6 ++++++ datafusion/substrait/src/lib.rs | 6 ++++++ datafusion/wasmtest/Cargo.toml | 3 +++ datafusion/wasmtest/src/lib.rs | 6 ++++++ 61 files changed, 257 insertions(+), 46 deletions(-) diff --git a/datafusion-cli/Cargo.toml b/datafusion-cli/Cargo.toml index d88f8fccb928..20cd1c4295e0 100644 --- a/datafusion-cli/Cargo.toml +++ b/datafusion-cli/Cargo.toml @@ -27,6 +27,9 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [dependencies] arrow = { workspace = true } async-trait = { workspace = true } diff --git a/datafusion-cli/src/lib.rs b/datafusion-cli/src/lib.rs index fbfc9242a61d..34fba6f79304 100644 --- a/datafusion-cli/src/lib.rs +++ b/datafusion-cli/src/lib.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] #![doc = include_str!("../README.md")] pub const DATAFUSION_CLI_VERSION: &str = env!("CARGO_PKG_VERSION"); diff --git a/datafusion/catalog-listing/Cargo.toml b/datafusion/catalog-listing/Cargo.toml index 68d0ca3a149f..c6f9ea8bd055 100644 --- a/datafusion/catalog-listing/Cargo.toml +++ b/datafusion/catalog-listing/Cargo.toml @@ -27,6 +27,9 @@ repository.workspace = true rust-version.workspace = true version.workspace = true +[package.metadata.docs.rs] +all-features = true + [dependencies] arrow = { workspace = true } async-trait = { workspace = true } diff --git a/datafusion/catalog-listing/src/mod.rs b/datafusion/catalog-listing/src/mod.rs index b98790e86455..cb0d86d8666e 100644 --- a/datafusion/catalog-listing/src/mod.rs +++ b/datafusion/catalog-listing/src/mod.rs @@ -15,4 +15,10 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + pub mod helpers; diff --git a/datafusion/catalog/Cargo.toml b/datafusion/catalog/Cargo.toml index 73ac44a0316e..864749411198 100644 --- a/datafusion/catalog/Cargo.toml +++ b/datafusion/catalog/Cargo.toml @@ -27,6 +27,9 @@ repository.workspace = true rust-version.workspace = true version.workspace = true +[package.metadata.docs.rs] +all-features = true + [dependencies] arrow = { workspace = true } async-trait = { workspace = true } diff --git a/datafusion/catalog/src/lib.rs b/datafusion/catalog/src/lib.rs index 0b8d73fabd25..a339d4916b8d 100644 --- a/datafusion/catalog/src/lib.rs +++ b/datafusion/catalog/src/lib.rs @@ -15,6 +15,12 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! Interfaces and default implementations of catalogs and schemas. //! //! Implementations diff --git a/datafusion/common-runtime/Cargo.toml b/datafusion/common-runtime/Cargo.toml index a21c72cd9f83..6fd9b7ac8fe8 100644 --- a/datafusion/common-runtime/Cargo.toml +++ b/datafusion/common-runtime/Cargo.toml @@ -28,12 +28,14 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true [lib] name = "datafusion_common_runtime" -path = "src/lib.rs" [dependencies] log = { workspace = true } diff --git a/datafusion/common-runtime/src/lib.rs b/datafusion/common-runtime/src/lib.rs index 51cb988ea06a..7bd8dc4cfe36 100644 --- a/datafusion/common-runtime/src/lib.rs +++ b/datafusion/common-runtime/src/lib.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![deny(clippy::clone_on_ref_ptr)] diff --git a/datafusion/common/Cargo.toml b/datafusion/common/Cargo.toml index 3be666ce7974..fc5c08ee2316 100644 --- a/datafusion/common/Cargo.toml +++ b/datafusion/common/Cargo.toml @@ -28,12 +28,14 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true [lib] name = "datafusion_common" -path = "src/lib.rs" [features] avro = ["apache-avro"] diff --git a/datafusion/common/src/lib.rs b/datafusion/common/src/lib.rs index df1ae100f581..d5b7c22a546c 100644 --- a/datafusion/common/src/lib.rs +++ b/datafusion/common/src/lib.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![deny(clippy::clone_on_ref_ptr)] diff --git a/datafusion/core/Cargo.toml b/datafusion/core/Cargo.toml index 8a706ca19f4d..e968967a2e75 100644 --- a/datafusion/core/Cargo.toml +++ b/datafusion/core/Cargo.toml @@ -29,13 +29,12 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true -[lib] -name = "datafusion" -path = "src/lib.rs" - [features] nested_expressions = ["datafusion-functions-nested"] # This feature is deprecated. Use the `nested_expressions` feature instead. diff --git a/datafusion/core/src/lib.rs b/datafusion/core/src/lib.rs index f4aa366500ef..9a0d0157c1ae 100644 --- a/datafusion/core/src/lib.rs +++ b/datafusion/core/src/lib.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![cfg_attr(not(test), deny(clippy::clone_on_ref_ptr))] #![warn(missing_docs, clippy::needless_borrow)] diff --git a/datafusion/datasource/Cargo.toml b/datafusion/datasource/Cargo.toml index caf1c60a785d..bf1f8789ac43 100644 --- a/datafusion/datasource/Cargo.toml +++ b/datafusion/datasource/Cargo.toml @@ -27,6 +27,9 @@ repository.workspace = true rust-version.workspace = true version.workspace = true +[package.metadata.docs.rs] +all-features = true + [features] compression = ["async-compression", "xz2", "bzip2", "flate2", "zstd", "tokio-util"] default = ["compression"] diff --git a/datafusion/datasource/src/mod.rs b/datafusion/datasource/src/mod.rs index c735c3108b3d..2fc2da64891d 100644 --- a/datafusion/datasource/src/mod.rs +++ b/datafusion/datasource/src/mod.rs @@ -15,6 +15,12 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! A table that uses the `ObjectStore` listing capability //! to get the list of files to process. diff --git a/datafusion/doc/Cargo.toml b/datafusion/doc/Cargo.toml index c188bcb2a535..fa316348a6da 100644 --- a/datafusion/doc/Cargo.toml +++ b/datafusion/doc/Cargo.toml @@ -27,9 +27,11 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true [lib] name = "datafusion_doc" -path = "src/lib.rs" diff --git a/datafusion/doc/src/lib.rs b/datafusion/doc/src/lib.rs index 6940a8ef3ca2..68ed1e2352ca 100644 --- a/datafusion/doc/src/lib.rs +++ b/datafusion/doc/src/lib.rs @@ -15,6 +15,12 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + #[allow(rustdoc::broken_intra_doc_links)] /// Documentation for use by [`ScalarUDFImpl`](ScalarUDFImpl), /// [`AggregateUDFImpl`](AggregateUDFImpl) and [`WindowUDFImpl`](WindowUDFImpl) functions. diff --git a/datafusion/execution/Cargo.toml b/datafusion/execution/Cargo.toml index bb86868a8214..8f642f3384d2 100644 --- a/datafusion/execution/Cargo.toml +++ b/datafusion/execution/Cargo.toml @@ -28,12 +28,14 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true [lib] name = "datafusion_execution" -path = "src/lib.rs" [dependencies] arrow = { workspace = true } diff --git a/datafusion/execution/src/lib.rs b/datafusion/execution/src/lib.rs index 317bd3203ab1..a9e3a27f8035 100644 --- a/datafusion/execution/src/lib.rs +++ b/datafusion/execution/src/lib.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![deny(clippy::clone_on_ref_ptr)] diff --git a/datafusion/expr-common/Cargo.toml b/datafusion/expr-common/Cargo.toml index abc78a9f084b..14717dd78135 100644 --- a/datafusion/expr-common/Cargo.toml +++ b/datafusion/expr-common/Cargo.toml @@ -27,14 +27,14 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true [lib] name = "datafusion_expr_common" -path = "src/lib.rs" - -[features] [dependencies] arrow = { workspace = true } diff --git a/datafusion/expr-common/src/lib.rs b/datafusion/expr-common/src/lib.rs index 179dd75ace85..fede0bb8e57e 100644 --- a/datafusion/expr-common/src/lib.rs +++ b/datafusion/expr-common/src/lib.rs @@ -19,10 +19,15 @@ //! //! This crate contains types and traits that are used by both Logical and Physical expressions. //! They are kept in their own crate to avoid physical expressions depending on logical expressions. -//! +//! //! //! [DataFusion]: +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![deny(clippy::clone_on_ref_ptr)] diff --git a/datafusion/expr/Cargo.toml b/datafusion/expr/Cargo.toml index b4f3f7fb680f..37e1ed1936fb 100644 --- a/datafusion/expr/Cargo.toml +++ b/datafusion/expr/Cargo.toml @@ -28,12 +28,14 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true [lib] name = "datafusion_expr" -path = "src/lib.rs" [features] recursive_protection = ["dep:recursive"] diff --git a/datafusion/expr/src/lib.rs b/datafusion/expr/src/lib.rs index 2f04f234eb1d..d2ea6e809150 100644 --- a/datafusion/expr/src/lib.rs +++ b/datafusion/expr/src/lib.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![deny(clippy::clone_on_ref_ptr)] diff --git a/datafusion/ffi/Cargo.toml b/datafusion/ffi/Cargo.toml index 4c396144347c..97914666688f 100644 --- a/datafusion/ffi/Cargo.toml +++ b/datafusion/ffi/Cargo.toml @@ -27,12 +27,14 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true [lib] name = "datafusion_ffi" -path = "src/lib.rs" crate-type = ["cdylib", "rlib"] [dependencies] diff --git a/datafusion/ffi/src/lib.rs b/datafusion/ffi/src/lib.rs index bbcdd85ff80a..4eabf91d892a 100644 --- a/datafusion/ffi/src/lib.rs +++ b/datafusion/ffi/src/lib.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![deny(clippy::clone_on_ref_ptr)] diff --git a/datafusion/functions-aggregate-common/Cargo.toml b/datafusion/functions-aggregate-common/Cargo.toml index cf6eb99e60c6..72c8a58a7e45 100644 --- a/datafusion/functions-aggregate-common/Cargo.toml +++ b/datafusion/functions-aggregate-common/Cargo.toml @@ -27,14 +27,14 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true [lib] name = "datafusion_functions_aggregate_common" -path = "src/lib.rs" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] ahash = { workspace = true } diff --git a/datafusion/functions-aggregate-common/src/lib.rs b/datafusion/functions-aggregate-common/src/lib.rs index cc50ff70913b..6f9dfca30c19 100644 --- a/datafusion/functions-aggregate-common/src/lib.rs +++ b/datafusion/functions-aggregate-common/src/lib.rs @@ -22,6 +22,11 @@ //! //! [DataFusion]: +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![deny(clippy::clone_on_ref_ptr)] diff --git a/datafusion/functions-aggregate/Cargo.toml b/datafusion/functions-aggregate/Cargo.toml index 007e1e76a3be..38052835f197 100644 --- a/datafusion/functions-aggregate/Cargo.toml +++ b/datafusion/functions-aggregate/Cargo.toml @@ -28,14 +28,14 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true [lib] name = "datafusion_functions_aggregate" -path = "src/lib.rs" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] ahash = { workspace = true } diff --git a/datafusion/functions-aggregate/src/lib.rs b/datafusion/functions-aggregate/src/lib.rs index 746873442d9a..f4bdb53efd55 100644 --- a/datafusion/functions-aggregate/src/lib.rs +++ b/datafusion/functions-aggregate/src/lib.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![deny(clippy::clone_on_ref_ptr)] diff --git a/datafusion/functions-nested/Cargo.toml b/datafusion/functions-nested/Cargo.toml index a63175b36e21..b33b415a868d 100644 --- a/datafusion/functions-nested/Cargo.toml +++ b/datafusion/functions-nested/Cargo.toml @@ -28,16 +28,14 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true -[features] - [lib] name = "datafusion_functions_nested" -path = "src/lib.rs" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] arrow = { workspace = true } diff --git a/datafusion/functions-nested/src/lib.rs b/datafusion/functions-nested/src/lib.rs index c47e4a696a1d..41ebb4366cff 100644 --- a/datafusion/functions-nested/src/lib.rs +++ b/datafusion/functions-nested/src/lib.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![deny(clippy::clone_on_ref_ptr)] diff --git a/datafusion/functions-table/Cargo.toml b/datafusion/functions-table/Cargo.toml index f722d698f3d3..78d59257dd48 100644 --- a/datafusion/functions-table/Cargo.toml +++ b/datafusion/functions-table/Cargo.toml @@ -28,14 +28,14 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true [lib] name = "datafusion_functions_table" -path = "src/lib.rs" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] arrow = { workspace = true } diff --git a/datafusion/functions-table/src/lib.rs b/datafusion/functions-table/src/lib.rs index f5436f7bf8a6..4a31760e7c4d 100644 --- a/datafusion/functions-table/src/lib.rs +++ b/datafusion/functions-table/src/lib.rs @@ -15,6 +15,12 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + pub mod generate_series; use datafusion_catalog::TableFunction; diff --git a/datafusion/functions-window-common/Cargo.toml b/datafusion/functions-window-common/Cargo.toml index b5df212b7d2a..466e7bc68b48 100644 --- a/datafusion/functions-window-common/Cargo.toml +++ b/datafusion/functions-window-common/Cargo.toml @@ -28,14 +28,14 @@ repository = { workspace = true } rust-version = { workspace = true } version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true [lib] name = "datafusion_functions_window_common" -path = "src/lib.rs" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] datafusion-common = { workspace = true } diff --git a/datafusion/functions-window-common/src/lib.rs b/datafusion/functions-window-common/src/lib.rs index da8d096da562..6f2a1ac0f33f 100644 --- a/datafusion/functions-window-common/src/lib.rs +++ b/datafusion/functions-window-common/src/lib.rs @@ -15,6 +15,12 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! Common user-defined window functionality for [DataFusion] //! //! [DataFusion]: diff --git a/datafusion/functions-window/Cargo.toml b/datafusion/functions-window/Cargo.toml index fc1bc51bcc66..e0c17c579b19 100644 --- a/datafusion/functions-window/Cargo.toml +++ b/datafusion/functions-window/Cargo.toml @@ -28,14 +28,14 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true [lib] name = "datafusion_functions_window" -path = "src/lib.rs" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] datafusion-common = { workspace = true } diff --git a/datafusion/functions-window/src/lib.rs b/datafusion/functions-window/src/lib.rs index 9f8e54a0423b..0d932bf84725 100644 --- a/datafusion/functions-window/src/lib.rs +++ b/datafusion/functions-window/src/lib.rs @@ -15,6 +15,12 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! Window Function packages for [DataFusion]. //! //! This crate contains a collection of various window function packages for DataFusion, diff --git a/datafusion/functions/Cargo.toml b/datafusion/functions/Cargo.toml index c00997853bb3..788bc67d970c 100644 --- a/datafusion/functions/Cargo.toml +++ b/datafusion/functions/Cargo.toml @@ -28,6 +28,9 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true @@ -60,9 +63,6 @@ unicode_expressions = ["unicode-segmentation"] [lib] name = "datafusion_functions" -path = "src/lib.rs" - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] arrow = { workspace = true } diff --git a/datafusion/functions/src/lib.rs b/datafusion/functions/src/lib.rs index ffb0ab5f51ec..de2571779d42 100644 --- a/datafusion/functions/src/lib.rs +++ b/datafusion/functions/src/lib.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![deny(clippy::clone_on_ref_ptr)] diff --git a/datafusion/macros/Cargo.toml b/datafusion/macros/Cargo.toml index 8946640f20bb..737d2ed72874 100644 --- a/datafusion/macros/Cargo.toml +++ b/datafusion/macros/Cargo.toml @@ -27,6 +27,9 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true diff --git a/datafusion/macros/src/user_doc.rs b/datafusion/macros/src/user_doc.rs index 6ca90ed376c3..c6510c156423 100644 --- a/datafusion/macros/src/user_doc.rs +++ b/datafusion/macros/src/user_doc.rs @@ -15,6 +15,12 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + extern crate proc_macro; use datafusion_expr::scalar_doc_sections::doc_sections_const; use proc_macro::TokenStream; diff --git a/datafusion/optimizer/Cargo.toml b/datafusion/optimizer/Cargo.toml index 3f5ec9b0da03..3413b365f67d 100644 --- a/datafusion/optimizer/Cargo.toml +++ b/datafusion/optimizer/Cargo.toml @@ -28,12 +28,14 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true [lib] name = "datafusion_optimizer" -path = "src/lib.rs" [features] recursive_protection = ["dep:recursive"] diff --git a/datafusion/optimizer/src/lib.rs b/datafusion/optimizer/src/lib.rs index 614284e1b477..61ca9b31cd29 100644 --- a/datafusion/optimizer/src/lib.rs +++ b/datafusion/optimizer/src/lib.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![deny(clippy::clone_on_ref_ptr)] diff --git a/datafusion/physical-expr-common/Cargo.toml b/datafusion/physical-expr-common/Cargo.toml index 14d6ca64d15e..a5a12b5527b7 100644 --- a/datafusion/physical-expr-common/Cargo.toml +++ b/datafusion/physical-expr-common/Cargo.toml @@ -28,12 +28,14 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true [lib] name = "datafusion_physical_expr_common" -path = "src/lib.rs" [dependencies] ahash = { workspace = true } diff --git a/datafusion/physical-expr-common/src/lib.rs b/datafusion/physical-expr-common/src/lib.rs index a05f1c96306f..440f044d88eb 100644 --- a/datafusion/physical-expr-common/src/lib.rs +++ b/datafusion/physical-expr-common/src/lib.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![deny(clippy::clone_on_ref_ptr)] diff --git a/datafusion/physical-expr/Cargo.toml b/datafusion/physical-expr/Cargo.toml index 38e8b44791ab..a3321f493388 100644 --- a/datafusion/physical-expr/Cargo.toml +++ b/datafusion/physical-expr/Cargo.toml @@ -28,12 +28,14 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true [lib] name = "datafusion_physical_expr" -path = "src/lib.rs" [dependencies] ahash = { workspace = true } diff --git a/datafusion/physical-expr/src/lib.rs b/datafusion/physical-expr/src/lib.rs index 11d6f54a7cc3..b68d10905cab 100644 --- a/datafusion/physical-expr/src/lib.rs +++ b/datafusion/physical-expr/src/lib.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![deny(clippy::clone_on_ref_ptr)] diff --git a/datafusion/physical-optimizer/Cargo.toml b/datafusion/physical-optimizer/Cargo.toml index c9c86e9c8d5c..e8473e6556d1 100644 --- a/datafusion/physical-optimizer/Cargo.toml +++ b/datafusion/physical-optimizer/Cargo.toml @@ -28,6 +28,9 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true diff --git a/datafusion/physical-optimizer/src/lib.rs b/datafusion/physical-optimizer/src/lib.rs index c2beab032049..2613b95bbdc0 100644 --- a/datafusion/physical-optimizer/src/lib.rs +++ b/datafusion/physical-optimizer/src/lib.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![deny(clippy::clone_on_ref_ptr)] diff --git a/datafusion/physical-plan/Cargo.toml b/datafusion/physical-plan/Cargo.toml index f0afdaa2de3d..676663114702 100644 --- a/datafusion/physical-plan/Cargo.toml +++ b/datafusion/physical-plan/Cargo.toml @@ -28,6 +28,9 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true @@ -36,7 +39,6 @@ force_hash_collisions = [] [lib] name = "datafusion_physical_plan" -path = "src/lib.rs" [dependencies] ahash = { workspace = true } diff --git a/datafusion/physical-plan/src/lib.rs b/datafusion/physical-plan/src/lib.rs index 9210e3b0273c..06fe23d2ff90 100644 --- a/datafusion/physical-plan/src/lib.rs +++ b/datafusion/physical-plan/src/lib.rs @@ -15,8 +15,12 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 - #![deny(clippy::clone_on_ref_ptr)] //! Traits for physical query plan, supporting parallel execution for partitioned relations. diff --git a/datafusion/proto-common/Cargo.toml b/datafusion/proto-common/Cargo.toml index 3454b26ebcf6..957cbc253616 100644 --- a/datafusion/proto-common/Cargo.toml +++ b/datafusion/proto-common/Cargo.toml @@ -31,9 +31,11 @@ rust-version = { workspace = true } # Exclude proto files so crates.io consumers don't need protoc exclude = ["*.proto"] +[package.metadata.docs.rs] +all-features = true + [lib] name = "datafusion_proto_common" -path = "src/lib.rs" [features] default = [] diff --git a/datafusion/proto-common/src/lib.rs b/datafusion/proto-common/src/lib.rs index 9272a4e87960..56cd42ee5067 100644 --- a/datafusion/proto-common/src/lib.rs +++ b/datafusion/proto-common/src/lib.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![deny(clippy::clone_on_ref_ptr)] diff --git a/datafusion/proto/Cargo.toml b/datafusion/proto/Cargo.toml index fb5d414dcec4..00d4969182cf 100644 --- a/datafusion/proto/Cargo.toml +++ b/datafusion/proto/Cargo.toml @@ -31,9 +31,11 @@ rust-version = { workspace = true } # Exclude proto files so crates.io consumers don't need protoc exclude = ["*.proto"] +[package.metadata.docs.rs] +all-features = true + [lib] name = "datafusion_proto" -path = "src/lib.rs" [features] default = ["parquet"] diff --git a/datafusion/proto/src/lib.rs b/datafusion/proto/src/lib.rs index 9f2973e3c958..5d84be1cff55 100644 --- a/datafusion/proto/src/lib.rs +++ b/datafusion/proto/src/lib.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![deny(clippy::clone_on_ref_ptr)] diff --git a/datafusion/sql/Cargo.toml b/datafusion/sql/Cargo.toml index c4a404975d29..4435ee0f56cb 100644 --- a/datafusion/sql/Cargo.toml +++ b/datafusion/sql/Cargo.toml @@ -28,12 +28,14 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true [lib] name = "datafusion_sql" -path = "src/lib.rs" [features] default = ["unicode_expressions", "unparser"] diff --git a/datafusion/sql/src/lib.rs b/datafusion/sql/src/lib.rs index 16a3d6d007cf..d552efa8254c 100644 --- a/datafusion/sql/src/lib.rs +++ b/datafusion/sql/src/lib.rs @@ -15,6 +15,11 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] // Make cheap clones clear: https://github.com/apache/datafusion/issues/11143 #![deny(clippy::clone_on_ref_ptr)] diff --git a/datafusion/sqllogictest/Cargo.toml b/datafusion/sqllogictest/Cargo.toml index f1d37c7202d6..88e34dd3b9c4 100644 --- a/datafusion/sqllogictest/Cargo.toml +++ b/datafusion/sqllogictest/Cargo.toml @@ -27,12 +27,14 @@ repository = { workspace = true } rust-version = { workspace = true } version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true [lib] name = "datafusion_sqllogictest" -path = "src/lib.rs" [dependencies] arrow = { workspace = true } diff --git a/datafusion/sqllogictest/src/lib.rs b/datafusion/sqllogictest/src/lib.rs index 0ea55782d34e..ee20e70d14f4 100644 --- a/datafusion/sqllogictest/src/lib.rs +++ b/datafusion/sqllogictest/src/lib.rs @@ -15,6 +15,12 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! DataFusion sqllogictest driver mod engines; diff --git a/datafusion/substrait/src/lib.rs b/datafusion/substrait/src/lib.rs index f33e86a2d20c..a7493a48e4c5 100644 --- a/datafusion/substrait/src/lib.rs +++ b/datafusion/substrait/src/lib.rs @@ -15,6 +15,12 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + //! Serialize / Deserialize DataFusion Plans to [Substrait.io] //! //! This crate provides support for serializing and deserializing both DataFusion diff --git a/datafusion/wasmtest/Cargo.toml b/datafusion/wasmtest/Cargo.toml index 7db051ad191f..6d64a15f4b99 100644 --- a/datafusion/wasmtest/Cargo.toml +++ b/datafusion/wasmtest/Cargo.toml @@ -27,6 +27,9 @@ license = { workspace = true } authors = { workspace = true } rust-version = { workspace = true } +[package.metadata.docs.rs] +all-features = true + [lints] workspace = true diff --git a/datafusion/wasmtest/src/lib.rs b/datafusion/wasmtest/src/lib.rs index c7c620d1be3a..e2ba50beb657 100644 --- a/datafusion/wasmtest/src/lib.rs +++ b/datafusion/wasmtest/src/lib.rs @@ -15,6 +15,12 @@ // specific language governing permissions and limitations // under the License. +#![doc( + html_logo_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg", + html_favicon_url = "https://raw.githubusercontent.com/apache/datafusion/19fe44cf2f30cbdd63d4a4f52c74055163c6cc38/docs/logos/standalone_logo/logo_original.svg" +)] +#![cfg_attr(docsrs, feature(doc_auto_cfg))] + extern crate wasm_bindgen; use datafusion_common::{DFSchema, ScalarValue};