This is an automated email from the ASF dual-hosted git repository.
mgrigorov pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/avro-rs.git
The following commit(s) were added to refs/heads/main by this push:
new 0c38f3f chore: Remove deprecated items in 0.11.0 and 0.15.0 (#236)
0c38f3f is described below
commit 0c38f3fe848b2c06ed497c54fcd59d4c78d6430a
Author: Martin Grigorov <[email protected]>
AuthorDate: Mon Jul 21 09:40:20 2025 +0300
chore: Remove deprecated items in 0.11.0 and 0.15.0 (#236)
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
---
avro/src/schema.rs | 10 ----------
avro/src/types.rs | 18 ------------------
2 files changed, 28 deletions(-)
diff --git a/avro/src/schema.rs b/avro/src/schema.rs
index 342b605..9859683 100644
--- a/avro/src/schema.rs
+++ b/avro/src/schema.rs
@@ -934,16 +934,6 @@ impl UnionSchema {
self.schemas.iter().any(|x| matches!(x, Schema::Null))
}
- /// Optionally returns a reference to the schema matched by this value, as
well as its position
- /// within this union.
- #[deprecated(
- since = "0.15.0",
- note = "Please use `find_schema_with_known_schemata` instead"
- )]
- pub fn find_schema(&self, value: &types::Value) -> Option<(usize,
&Schema)> {
- self.find_schema_with_known_schemata::<Schema>(value, None, &None)
- }
-
/// Optionally returns a reference to the schema matched by this value, as
well as its position
/// within this union.
///
diff --git a/avro/src/types.rs b/avro/src/types.rs
index 2c5bdb0..71e64b5 100644
--- a/avro/src/types.rs
+++ b/avro/src/types.rs
@@ -126,24 +126,6 @@ pub enum Value {
Uuid(Uuid),
}
-/// Any structure implementing the [ToAvro](trait.ToAvro.html) trait will be
usable
-/// from a [Writer](../writer/struct.Writer.html).
-#[deprecated(
- since = "0.11.0",
- note = "Please use Value::from, Into::into or value.into() instead"
-)]
-pub trait ToAvro {
- /// Transforms this value into an Avro-compatible [Value](enum.Value.html).
- fn avro(self) -> Value;
-}
-
-#[allow(deprecated)]
-impl<T: Into<Value>> ToAvro for T {
- fn avro(self) -> Value {
- self.into()
- }
-}
-
macro_rules! to_value(
($type:ty, $variant_constructor:expr) => (
impl From<$type> for Value {