-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapi_manual.rs
63 lines (54 loc) · 1.6 KB
/
api_manual.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! Contains `extern "C"` functions, manually created.
//! The created functions can also be seen in the documentation.
//!
//! See also [`super::api`] for an example of how to automatically
//! create those functions.
use contract_interface::ci;
// #[cfg(target_arch = "wasm32")]
#[no_mangle]
pub extern "C" fn fn_array_manual() {
use ci::ServeStateless;
super::impl_trait_4::fn_array::Serve::extern_serve();
}
// #[cfg(target_arch = "wasm32")]
#[no_mangle]
pub extern "C" fn fn_paren_manual() {
use ci::ServeStateless;
super::impl_trait_4::fn_paren::Serve::extern_serve();
}
// #[cfg(target_arch = "wasm32")]
#[no_mangle]
pub extern "C" fn fn_path_manual() {
use ci::ServeStateless;
super::impl_trait_4::fn_path::Serve::extern_serve();
}
// #[cfg(target_arch = "wasm32")]
#[no_mangle]
pub extern "C" fn fn_ptr_manual() {
use ci::ServeStateless;
super::impl_trait_4::fn_ptr::Serve::extern_serve();
}
// #[cfg(target_arch = "wasm32")]
#[no_mangle]
pub extern "C" fn fn_ptr_mut_manual() {
use ci::ServeStateless;
super::impl_trait_4::fn_ptr_mut::Serve::extern_serve();
}
// #[cfg(target_arch = "wasm32")]
#[no_mangle]
pub extern "C" fn fn_ref_manual() {
use ci::ServeStateless;
super::impl_trait_4::fn_ref::Serve::extern_serve();
}
// #[cfg(target_arch = "wasm32")]
#[no_mangle]
pub extern "C" fn fn_ref_mut_manual() {
use ci::ServeStateless;
super::impl_trait_4::fn_ref_mut::Serve::extern_serve();
}
// #[cfg(target_arch = "wasm32")]
#[no_mangle]
pub extern "C" fn fn_tuple_manual() {
use ci::ServeStateless;
super::impl_trait_4::fn_tuple::Serve::extern_serve();
}