File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
173162type BuildStep = fn ( & mut Build ) -> Result < ( ) > ;
Original file line number Diff line number Diff line change @@ -65,19 +65,6 @@ pub struct RouteContext<D> {
6565}
6666
6767impl < 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)
You can’t perform that action at this time.
0 commit comments