Skip to content

Commit

Permalink
experiment: can we use #[deprecated(since = "TBD")] for soft deprec…
Browse files Browse the repository at this point in the history
…ation?
  • Loading branch information
dherman committed Sep 28, 2024
1 parent 7f1d108 commit 84ee9ec
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/neon/src/object/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ pub trait Object: Value {
})
}

#[doc(hidden)]
#[deprecated(since = "TBD", note = "use `Object::prop()` instead")]
fn get_opt<'a, V: Value, C: Context<'a>, K: PropertyKey>(
&self,
cx: &mut C,
Expand All @@ -312,7 +312,7 @@ pub trait Object: Value {
v.downcast_or_throw(cx).map(Some)
}

#[doc(hidden)]
#[deprecated(since = "TBD", note = "use `Object::prop()` instead")]
fn get_value<'a, C: Context<'a>, K: PropertyKey>(
&self,
cx: &mut C,
Expand All @@ -323,7 +323,7 @@ pub trait Object: Value {
})
}

#[doc(hidden)]
#[deprecated(since = "TBD", note = "use `Object::prop()` instead")]
fn get<'a, V: Value, C: Context<'a>, K: PropertyKey>(
&self,
cx: &mut C,
Expand Down Expand Up @@ -368,7 +368,7 @@ pub trait Object: Value {
}
}

#[doc(hidden)]
#[deprecated(since = "TBD", note = "use `Object::prop()` instead")]
fn set<'a, C: Context<'a>, K: PropertyKey, W: Value>(
&self,
cx: &mut C,
Expand All @@ -389,7 +389,7 @@ pub trait Object: Value {
Root::new(cx, self)
}

#[doc(hidden)]
#[deprecated(since = "TBD", note = "use `Object::method()` instead")]
fn call_method_with<'a, C, K>(&self, cx: &mut C, method: K) -> NeonResult<CallOptions<'a>>
where
C: Context<'a>,
Expand Down

0 comments on commit 84ee9ec

Please sign in to comment.