File tree Expand file tree Collapse file tree 11 files changed +0
-297
lines changed Expand file tree Collapse file tree 11 files changed +0
-297
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ members = [
8
8
" rustler_tests/native/rustler_test" ,
9
9
" rustler_tests/native/rustler_bigint_test" ,
10
10
" rustler_tests/native/rustler_serde_test" ,
11
- " rustler_tests/native/deprecated_macros" ,
12
11
" rustler_tests/native/dynamic_load" ,
13
12
" rustler_tests/native/rustler_compile_tests" ,
14
13
" rustler_benchmarks/native/benchmark" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ pub mod thread;
60
60
pub use crate :: thread:: { spawn, JobSpawner , ThreadSpawner } ;
61
61
62
62
pub mod error;
63
- pub mod export;
64
63
pub use crate :: error:: Error ;
65
64
66
65
pub mod r#return;
Original file line number Diff line number Diff line change @@ -261,14 +261,6 @@ where
261
261
}
262
262
}
263
263
264
- #[ macro_export]
265
- #[ deprecated( since = "0.22.0" , note = "Please use `resource!` instead." ) ]
266
- macro_rules! resource_struct_init {
267
- ( $struct_name: ty, $env: ident) => {
268
- $crate:: resource!( $struct_name, $env)
269
- } ;
270
- }
271
-
272
264
#[ macro_export]
273
265
macro_rules! resource {
274
266
( $struct_name: ty, $env: ident) => {
Original file line number Diff line number Diff line change @@ -226,44 +226,6 @@ macro_rules! atoms {
226
226
} ;
227
227
}
228
228
229
- #[ macro_export]
230
- #[ deprecated( since = "0.22.0" , note = "Please use `atoms!` instead." ) ]
231
- macro_rules! rustler_atoms {
232
- {
233
- $(
234
- $( #[ $attr: meta] ) *
235
- atom $name: ident $( = $str: expr ) ?;
236
- ) *
237
- } => {
238
- #[ allow( non_snake_case) ]
239
- struct RustlerAtoms {
240
- $( $name : $crate:: types:: atom:: Atom ) ,*
241
- }
242
- $crate:: lazy_static:: lazy_static! {
243
- static ref RUSTLER_ATOMS : RustlerAtoms = $crate:: env:: OwnedEnv :: new( ) . run( |env| {
244
- RustlerAtoms {
245
- $( $name: $crate:: rustler_atoms!( @internal_make_atom( env, $name $( = $str) ? ) ) ) ,*
246
- }
247
- } ) ;
248
- }
249
- $(
250
- $( #[ $attr] ) *
251
- pub fn $name( ) -> $crate:: types:: atom:: Atom {
252
- RUSTLER_ATOMS . $name
253
- }
254
- ) *
255
- } ;
256
-
257
- // Internal helper macros.
258
- { @internal_make_atom( $env: ident, $name: ident) } => {
259
- $crate:: rustler_atoms!( @internal_make_atom( $env, $name = stringify!( $name) ) )
260
- } ;
261
- { @internal_make_atom( $env: ident, $name: ident = $str: expr) } => {
262
- $crate:: types:: atom:: Atom :: from_str( $env, $str)
263
- . expect( "rustler::atoms!: bad atom string" )
264
- } ;
265
- }
266
-
267
229
atoms ! {
268
230
/// The `nif_panicked` atom.
269
231
nif_panicked,
Original file line number Diff line number Diff line change @@ -31,14 +31,6 @@ pub mod tuple;
31
31
pub mod local_pid;
32
32
pub use self :: local_pid:: LocalPid ;
33
33
34
- #[ deprecated( since = "0.22.0" , note = "Please use local_pid instead" ) ]
35
- pub mod pid {
36
- #[ deprecated( since = "0.22.0" , note = "Please use LocalPid instead" ) ]
37
- pub use super :: LocalPid as Pid ;
38
- }
39
- #[ deprecated( since = "0.22.0" , note = "Please use LocalPid instead" ) ]
40
- pub use self :: LocalPid as Pid ;
41
-
42
34
pub mod truthy;
43
35
44
36
pub mod elixir_struct;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -35,20 +35,6 @@ defmodule Rustler.Compiler.Config do
35
35
def from ( otp_app , config , opts ) do
36
36
crate = config [ :crate ] || opts [ :crate ] || otp_app
37
37
38
- # TODO: Remove in 1.0
39
- rustler_crates =
40
- if mix_config = Mix.Project . config ( ) [ :rustler_crates ] do
41
- IO . warn (
42
- ":rustler_crates in mix.exs is deprecated, please explicitly pass options on `use Rustler` or configure the module in your `config/*.exs` files"
43
- )
44
-
45
- mix_config
46
- else
47
- [ ]
48
- end
49
-
50
- legacy_config = rustler_crates [ to_atom ( crate ) ] || [ ]
51
-
52
38
defaults = % Config {
53
39
crate: crate ,
54
40
load_from: { otp_app , "priv/native/lib#{ crate } " } ,
@@ -61,7 +47,6 @@ defmodule Rustler.Compiler.Config do
61
47
defaults
62
48
|> Map . from_struct ( )
63
49
|> Enum . into ( [ ] )
64
- |> Keyword . merge ( legacy_config )
65
50
|> Keyword . merge ( opts )
66
51
|> Keyword . merge ( config )
67
52
|> build ( )
@@ -147,10 +132,4 @@ defmodule Rustler.Compiler.Config do
147
132
|> Enum . filter ( & ( & 1 [ "name" ] == name ) )
148
133
|> List . first ( )
149
134
end
150
-
151
- defp to_atom ( name ) when is_binary ( name ) ,
152
- do: String . to_atom ( name )
153
-
154
- defp to_atom ( name ) when is_atom ( name ) ,
155
- do: name
156
135
end
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments