This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch branch-1.11
in repository https://gitbox.apache.org/repos/asf/avro.git
The following commit(s) were added to refs/heads/branch-1.11 by this push:
new b11461107 Remove wrongly committed files
b11461107 is described below
commit b114611075caaba1391d095710c95836fbcf282a
Author: Martin Tzvetanov Grigorov <[email protected]>
AuthorDate: Tue Jul 9 08:07:26 2024 +0300
Remove wrongly committed files
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
---
lang/rust/avro/.cargo/config.toml.disabled | 49 ---------------------
lang/rust/avro/tests/test.rs | 70 ------------------------------
2 files changed, 119 deletions(-)
diff --git a/lang/rust/avro/.cargo/config.toml.disabled
b/lang/rust/avro/.cargo/config.toml.disabled
deleted file mode 100644
index e38b10c85..000000000
--- a/lang/rust/avro/.cargo/config.toml.disabled
+++ /dev/null
@@ -1,49 +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.
-
-[build]
-rustc-wrapper = '/home/martin/.cargo/bin/sccache'
-[target.x86_64-unknown-linux-gnu]
-rustflags = [
- '-Clink-arg=-fuse-ld=lld',
- '-Zshare-generics=y',
-]
-linker = '/usr/bin/clang'
-
-[target.x86_64-pc-windows-msvc]
-rustflags = ['-Zshare-generics=y']
-linker = 'rust-lld.exe'
-
-[target.x86_64-apple-darwin]
-rustflags = [
- '-C',
- 'link-arg=-fuse-ld=/usr/local/bin/zld',
- '-Zshare-generics=y',
- '-Csplit-debuginfo=unpacked',
-]
-[profile.dev]
-opt-level = 0
-debug = 2
-incremental = true
-codegen-units = 512
-
-[profile.release]
-opt-level = 3
-debug = 0
-incremental = false
-codegen-units = 256
-split-debuginfo = '...'
diff --git a/lang/rust/avro/tests/test.rs b/lang/rust/avro/tests/test.rs
deleted file mode 100644
index 2b14588b9..000000000
--- a/lang/rust/avro/tests/test.rs
+++ /dev/null
@@ -1,70 +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.
-
-use apache_avro::{
- schema_equality::{set_schemata_equality_comparator, SchemataEq,
StructFieldEq},
- types::Record,
- Codec, Schema, Writer,
-};
-use apache_avro_test_helper::TestResult;
-use bigdecimal::BigDecimal;
-use num_bigint::BigInt;
-
-#[test]
-#[ignore]
-fn test_11111() -> TestResult {
- let schema_str = r#"
- {
- "type": "record",
- "name": "test",
- "fields": [
- {
- "name": "field_name",
- "type": "bytes",
- "logicalType": "decimal", "precision": 4, "scale": 2
- }
- ]
- }
- "#;
- let schema = Schema::parse_str(schema_str)?;
-
- let mut record = Record::new(&schema).unwrap();
- let val = BigDecimal::new(BigInt::from(12), 2);
- record.put("field_name", val);
-
- let codec = Codec::Null;
- let mut writer = Writer::builder()
- .schema(&schema)
- .codec(codec)
- .writer(Vec::new())
- .build();
-
- writer.append(record.clone())?;
-
- Ok(())
-}
-
-#[test]
-fn test_avro_3939_22222() -> Result<(), Box<dyn SchemataEq>> {
- let a = StructFieldEq {
- include_attributes: false,
- };
-
- set_schemata_equality_comparator(Box::new(a))?;
-
- Ok(())
-}