This is an automated email from the ASF dual-hosted git repository.

tustvold pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow-rs.git


The following commit(s) were added to refs/heads/master by this push:
     new f6bd9b5b9 Minor: Remove parquet build script (#3257)
f6bd9b5b9 is described below

commit f6bd9b5b9944955c1bf4cb6e4aaf21f8f249ddba
Author: Raphael Taylor-Davies <[email protected]>
AuthorDate: Fri Dec 2 22:16:18 2022 +0000

    Minor: Remove parquet build script (#3257)
    
    * Remove parquet build script
    
    * Format
---
 parquet/Cargo.toml             |  1 -
 parquet/build.rs               | 24 ------------------------
 parquet/src/file/properties.rs |  3 ++-
 3 files changed, 2 insertions(+), 26 deletions(-)

diff --git a/parquet/Cargo.toml b/parquet/Cargo.toml
index b2d878dd5..eecfd55b9 100644
--- a/parquet/Cargo.toml
+++ b/parquet/Cargo.toml
@@ -25,7 +25,6 @@ repository = "https://github.com/apache/arrow-rs";
 authors = ["Apache Arrow <[email protected]>"]
 keywords = ["arrow", "parquet", "hadoop"]
 readme = "README.md"
-build = "build.rs"
 edition = "2021"
 rust-version = "1.62"
 
diff --git a/parquet/build.rs b/parquet/build.rs
deleted file mode 100644
index 8aada1835..000000000
--- a/parquet/build.rs
+++ /dev/null
@@ -1,24 +0,0 @@
-// 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.
-
-fn main() {
-    // Set Parquet version and "created by" string.
-    let version = env!("CARGO_PKG_VERSION");
-    let created_by = format!("parquet-rs version {}", version);
-    println!("cargo:rustc-env=PARQUET_VERSION={}", version);
-    println!("cargo:rustc-env=PARQUET_CREATED_BY={}", created_by);
-}
diff --git a/parquet/src/file/properties.rs b/parquet/src/file/properties.rs
index c8083fcf3..ae13eff20 100644
--- a/parquet/src/file/properties.rs
+++ b/parquet/src/file/properties.rs
@@ -81,7 +81,8 @@ const DEFAULT_DICTIONARY_PAGE_SIZE_LIMIT: usize = 
DEFAULT_PAGE_SIZE;
 const DEFAULT_STATISTICS_ENABLED: EnabledStatistics = EnabledStatistics::Page;
 const DEFAULT_MAX_STATISTICS_SIZE: usize = 4096;
 const DEFAULT_MAX_ROW_GROUP_SIZE: usize = 1024 * 1024;
-const DEFAULT_CREATED_BY: &str = env!("PARQUET_CREATED_BY");
+const DEFAULT_CREATED_BY: &str =
+    concat!("parquet-rs version ", env!("CARGO_PKG_VERSION"));
 /// default value for the false positive probability used in a bloom filter.
 pub const DEFAULT_BLOOM_FILTER_FPP: f64 = 0.05;
 /// default value for the expected number of distinct values used in a bloom 
filter.

Reply via email to