1- use std:: alloc:: { Layout , alloc, dealloc} ;
1+ use std:: alloc:: { alloc, dealloc, Layout } ;
22
33const HEADER : usize = 8 ;
44const ALIGNMENT : usize = 8 ;
@@ -26,6 +26,8 @@ pub unsafe extern "C" fn enif_free(ptr: *mut u8) {
2626#[ no_mangle]
2727pub static enif_alloc_binary: usize = 0 ;
2828#[ no_mangle]
29+ pub static enif_alloc_resource: usize = 0 ;
30+ #[ no_mangle]
2931pub static enif_alloc_env: usize = 0 ;
3032#[ no_mangle]
3133pub static enif_binary_to_term: usize = 0 ;
@@ -98,6 +100,8 @@ pub static enif_is_ref: usize = 0;
98100#[ no_mangle]
99101pub static enif_is_tuple: usize = 0 ;
100102#[ no_mangle]
103+ pub static enif_keep_resource: usize = 0 ;
104+ #[ no_mangle]
101105pub static enif_make_atom_len: usize = 0 ;
102106#[ no_mangle]
103107pub static enif_make_badarg: usize = 0 ;
@@ -132,6 +136,10 @@ pub static enif_make_new_map: usize = 0;
132136#[ no_mangle]
133137pub static enif_make_reverse_list: usize = 0 ;
134138#[ no_mangle]
139+ pub static enif_make_resource: usize = 0 ;
140+ #[ no_mangle]
141+ pub static enif_make_resource_binary: usize = 0 ;
142+ #[ no_mangle]
135143pub static enif_make_sub_binary: usize = 0 ;
136144#[ no_mangle]
137145pub static enif_make_tuple_from_array: usize = 0 ;
@@ -158,12 +166,20 @@ pub static enif_realloc_binary: usize = 0;
158166#[ no_mangle]
159167pub static enif_release_binary: usize = 0 ;
160168#[ no_mangle]
169+ pub static enif_release_resource: usize = 0 ;
170+ #[ no_mangle]
161171pub static enif_schedule_nif: usize = 0 ;
162172#[ no_mangle]
163173pub static enif_self: usize = 0 ;
164174#[ no_mangle]
175+ pub static enif_send: usize = 0 ;
176+ #[ no_mangle]
165177pub static enif_snprintf: usize = 0 ;
166178#[ no_mangle]
167179pub static enif_term_to_binary: usize = 0 ;
168180#[ no_mangle]
169181pub static enif_term_type: usize = 0 ;
182+ #[ no_mangle]
183+ pub static enif_thread_type: usize = 0 ;
184+ #[ no_mangle]
185+ pub static enif_whereis_pid: usize = 0 ;
0 commit comments