| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you under the Apache License, Version 2.0 (the |
| # "License"); you may not use this file except in compliance |
| # with the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, |
| # software distributed under the License is distributed on an |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| # KIND, either express or implied. See the License for the |
| # specific language governing permissions and limitations |
| # under the License. |
| |
| [package] |
| name = "datafusion-examples" |
| description = "DataFusion usage examples" |
| keywords = ["arrow", "query", "sql"] |
| publish = false |
| readme = "README.md" |
| version = { workspace = true } |
| edition = { workspace = true } |
| homepage = { workspace = true } |
| repository = { workspace = true } |
| license = { workspace = true } |
| authors = { workspace = true } |
| rust-version = { workspace = true } |
| |
| # Note: add additional linter rules in lib.rs. |
| # Rust does not support workspace + new linter rules in subcrates yet |
| # https://github.com/rust-lang/cargo/issues/13157 |
| [lints] |
| workspace = true |
| |
| [[example]] |
| name = "dataframe_to_s3" |
| path = "examples/external_dependency/dataframe-to-s3.rs" |
| |
| [[example]] |
| name = "query_aws_s3" |
| path = "examples/external_dependency/query-aws-s3.rs" |
| |
| [[example]] |
| name = "custom_file_casts" |
| path = "examples/custom_file_casts.rs" |
| |
| [dev-dependencies] |
| arrow = { workspace = true } |
| # arrow_schema is required for record_batch! macro :sad: |
| arrow-flight = { workspace = true } |
| arrow-schema = { workspace = true } |
| async-trait = { workspace = true } |
| bytes = { workspace = true } |
| dashmap = { workspace = true } |
| # note only use main datafusion crate for examples |
| base64 = "0.22.1" |
| datafusion = { workspace = true, default-features = true, features = ["parquet_encryption"] } |
| datafusion-ffi = { workspace = true } |
| datafusion-physical-expr-adapter = { workspace = true } |
| datafusion-proto = { workspace = true } |
| env_logger = { workspace = true } |
| futures = { workspace = true } |
| log = { workspace = true } |
| mimalloc = { version = "0.1", default-features = false } |
| object_store = { workspace = true, features = ["aws", "http"] } |
| prost = { workspace = true } |
| rand = { workspace = true } |
| serde_json = { workspace = true } |
| tempfile = { workspace = true } |
| test-utils = { path = "../test-utils" } |
| tokio = { workspace = true, features = ["rt-multi-thread", "parking_lot"] } |
| tonic = "0.14" |
| tracing = { version = "0.1" } |
| tracing-subscriber = { version = "0.3" } |
| url = { workspace = true } |
| uuid = "1.18" |
| |
| [target.'cfg(not(target_os = "windows"))'.dev-dependencies] |
| nix = { version = "0.30.1", features = ["fs"] } |