Skip to content

Commit a11c95b

Browse files
committed
0.7 deprecations
1 parent e121075 commit a11c95b

2 files changed

Lines changed: 0 additions & 24 deletions

File tree

worker-build/src/build/mod.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -157,17 +157,6 @@ pub struct BuildOptions {
157157
#[clap(long, hide = true)]
158158
/// Pass-through for --no-panic-recovery
159159
pub no_panic_recovery: bool,
160-
161-
#[deprecated(note = "runtime-detected")]
162-
#[allow(dead_code)]
163-
#[clap(long = "weak-refs", hide = true)]
164-
/// Enable usage of the JS weak references proposal.
165-
pub weak_refs: bool,
166-
167-
#[deprecated(note = "automatically inferred from the Wasm features")]
168-
#[clap(long = "reference-types", hide = true)]
169-
/// Enable usage of WebAssembly reference types.
170-
pub reference_types: bool,
171160
}
172161

173162
type BuildStep = fn(&mut Build) -> Result<()>;

worker/src/router.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,19 +65,6 @@ pub struct RouteContext<D> {
6565
}
6666

6767
impl<D> RouteContext<D> {
68-
/// Get a reference to the generic associated data provided to the `Router`.
69-
#[deprecated(since = "0.0.8", note = "please use the `data` field directly")]
70-
pub fn data(&self) -> &D {
71-
&self.data
72-
}
73-
74-
/// Get the `Env` for this Worker. Typically users should opt for the `secret`, `var`, `kv` and
75-
/// `durable_object` methods on the `RouteContext` instead.
76-
#[deprecated(since = "0.0.8", note = "please use the `env` field directly")]
77-
pub fn get_env(self) -> Env {
78-
self.env
79-
}
80-
8168
/// Get a Secret value associated with this Worker, should one exist.
8269
pub fn secret(&self, binding: &str) -> Result<Secret> {
8370
self.env.secret(binding)

0 commit comments

Comments
 (0)