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 804206f4d AVRO-3533: Rust: Update dependencies (#1716)
804206f4d is described below

commit 804206f4d1302320183bc84cd457dcbdce16d845
Author: Martin Grigorov <[email protected]>
AuthorDate: Thu Jun 9 23:53:03 2022 +0300

    AVRO-3533: Rust: Update dependencies (#1716)
    
    * AVRO-3533: Rust: Update dependencies
    
    Add 'default-features = false' consistently for all [dev-]dependencies.
    Fix Rustdoc warning.
    
    Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
    
    * AVRO-3533: Use "std" feature for proptest
    
    Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
    (cherry picked from commit d00865afecaea95b80eb3c511b8a018fd3070d99)
---
 lang/rust/avro/Cargo.toml             | 48 +++++++++++++++++------------------
 lang/rust/avro/src/schema.rs          |  5 ++--
 lang/rust/avro_derive/Cargo.toml      | 16 ++++++------
 lang/rust/avro_test_helper/Cargo.toml | 12 ++++-----
 4 files changed, 41 insertions(+), 40 deletions(-)

diff --git a/lang/rust/avro/Cargo.toml b/lang/rust/avro/Cargo.toml
index 042184bdd..c33500a12 100644
--- a/lang/rust/avro/Cargo.toml
+++ b/lang/rust/avro/Cargo.toml
@@ -56,31 +56,31 @@ harness = false
 byteorder = { default-features = false, version = "1.4.3" }
 bzip2 = { default-features = false, version = "0.4.3", optional = true }
 crc32fast = { default-features = false, version = "1.3.2", optional = true }
-digest = { default-features = false, version="0.10.3", features = ["core-api"] 
}
-libflate = { default-features = false, version="1.2.0" }
-xz2 = { default-features = false, version = "0.1.6", optional = true }
-num-bigint = { default-features = false, version="0.4.3" }
-rand = { default-features = false, version="0.8.5", features = ["default"] }
-regex = { default-features = false, version="1.5.5", features = ["std"] }
-serde_json = { default-features = false, version="1.0.79", features = ["std"] }
-serde = { default-features = false, version = "1.0.136", features = ["derive"] 
}
+digest = { default-features = false, version = "0.10.3", features = 
["core-api"] }
+libflate = { default-features = false, version = "1.2.0" }
+xz2 = { default-features = false, version = "0.1.7", optional = true }
+num-bigint = { default-features = false, version = "0.4.3" }
+rand = { default-features = false, version = "0.8.5", features = ["default"] }
+regex = { default-features = false, version = "1.5.6", features = ["std"] }
+serde_json = { default-features = false, version = "1.0.81", features = 
["std"] }
+serde = { default-features = false, version = "1.0.137", features = ["derive"] 
}
 snap = { default-features = false, version = "1.0.5", optional = true }
-strum = { default-features = false, version="0.24.0" }
-strum_macros = { default-features = false, version="0.24.0" }
-thiserror = { default-features = false, version="1.0.30" }
-typed-builder = { default-features = false, version="0.10.0" }
-uuid = { default-features = false, version = "1.0.0", features = ["serde", 
"std", "v4"] }
-zerocopy = { default-features = false, version="0.6.1" }
-lazy_static = { default-features = false, version="1.4.0" }
-log = { default-features = false, version="0.4.16" }
-zstd = { default-features = false, version = "0.11.1+zstd.1.5.2", optional = 
true }
+strum = { default-features = false, version = "0.24.0" }
+strum_macros = { default-features = false, version = "0.24.0" }
+thiserror = { default-features = false, version = "1.0.31" }
+typed-builder = { default-features = false, version = "0.10.0" }
+uuid = { default-features = false, version = "1.1.1", features = ["serde", 
"std", "v4"] }
+zerocopy = { default-features = false, version = "0.6.1" }
+lazy_static = { default-features = false, version = "1.4.0" }
+log = { default-features = false, version = "0.4.17" }
+zstd = { default-features = false, version = "0.11.2+zstd.1.5.2", optional = 
true }
 apache-avro-derive = { default-features = false, version= "0.14.0", path = 
"../avro_derive", optional = true }
 
 [dev-dependencies]
-anyhow = "1.0.56"
-apache-avro-test-helper = { version= "0.1.0", path = "../avro_test_helper" }
-criterion = "0.3.5"
-hex-literal = "0.3.4"
-md-5 = "0.10.1"
-pretty_assertions = "1.2.1"
-sha2 = "0.10.2"
+anyhow = { default-features = false, version = "1.0.57", features = ["std"] }
+apache-avro-test-helper = { default-features = false, version = "0.1.0", path 
= "../avro_test_helper" }
+criterion = { default-features = false, version = "0.3.5" }
+hex-literal = { default-features = false, version = "0.3.4" }
+md-5 = { default-features = false, version = "0.10.1" }
+pretty_assertions = { default-features = false, version = "1.2.1", features = 
["std"] }
+sha2 = { default-features = false, version = "0.10.2" }
diff --git a/lang/rust/avro/src/schema.rs b/lang/rust/avro/src/schema.rs
index dfb9b146e..d8719932d 100644
--- a/lang/rust/avro/src/schema.rs
+++ b/lang/rust/avro/src/schema.rs
@@ -1694,8 +1694,9 @@ fn field_ordering_position(field: &str) -> Option<usize> {
 }
 
 /// Trait for types that serve as an Avro data model. Derive implementation 
available
-/// through `derive` feature. Do not implement directly, implement 
[`derive::AvroSchemaComponent`]
-/// to get this trait through a blanket implementation.
+/// through `derive` feature. Do not implement directly!
+/// Implement `apache_avro::schema::derive::AvroSchemaComponent` to get this 
trait
+/// through a blanket implementation.
 pub trait AvroSchema {
     fn get_schema() -> Schema;
 }
diff --git a/lang/rust/avro_derive/Cargo.toml b/lang/rust/avro_derive/Cargo.toml
index 90299c730..5e55da100 100644
--- a/lang/rust/avro_derive/Cargo.toml
+++ b/lang/rust/avro_derive/Cargo.toml
@@ -32,13 +32,13 @@ documentation = "https://docs.rs/apache-avro-derive";
 proc-macro = true
 
 [dependencies]
-darling = { default-features = false, version="0.14.0" }
-quote = { default-features = false, version="1.0.18" }
-syn = { default-features = false, version="1.0.91", features=["full", "fold"]}
-proc-macro2 = { default-features = false, version="1.0.37" }
-serde_json = { default-features = false, version="1.0.79", features=["std"]}
+darling = { default-features = false, version = "0.14.1" }
+quote = { default-features = false, version = "1.0.18" }
+syn = { default-features = false, version = "1.0.96", features=["full", 
"fold"]}
+proc-macro2 = { default-features = false, version = "1.0.39" }
+serde_json = { default-features = false, version = "1.0.81", features=["std"]}
 
 [dev-dependencies]
-apache-avro = { path = "../avro", features = ["derive"] }
-proptest = "1.0.0"
-serde = { version = "1.0.136", features = ["derive"] }
+apache-avro = { default-features = false, path = "../avro", features = 
["derive"] }
+proptest = { default-features = false, version = "1.0.0", features = ["std"] }
+serde = { default-features = false, version = "1.0.137", features = ["derive"] 
}
diff --git a/lang/rust/avro_test_helper/Cargo.toml 
b/lang/rust/avro_test_helper/Cargo.toml
index c7b3aa19e..93b3d6e3d 100644
--- a/lang/rust/avro_test_helper/Cargo.toml
+++ b/lang/rust/avro_test_helper/Cargo.toml
@@ -22,9 +22,9 @@ edition = "2018"
 description = "Avro test helper. This crate is not supposed to be published!"
 
 [dependencies]
-ctor = "0.1.22"
-color-backtrace = { version = "0.5" }
-env_logger = "0.9.0"
-lazy_static = { default-features = false, version="1.4.0" }
-log = { default-features = false, version="0.4.16" }
-ref_thread_local = "0.1.1"
+ctor = { default-features = false, version = "0.1.22" }
+color-backtrace = { default-features = false, version = "0.5.1" }
+env_logger = { default-features = false, version = "0.9.0" }
+lazy_static = { default-features = false, version = "1.4.0" }
+log = { default-features = false, version = "0.4.17" }
+ref_thread_local = { default-features = false, version = "0.1.1" }

Reply via email to