File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change 44 port = 8080 ;
55};
66
7- import " E:/projects/rust/cli/target/release/plugin_name .dll" as plg ;
7+ import " path/to/std_plugin_name .dll" as std ;
88
99global_error_handler(error ) {
1010 Response.status(500 );
@@ -40,18 +40,18 @@ route "/test2" GET {
4040};
4141
4242route " /test3" GET {
43- val a = plg :: is_email_valid(
" [email protected] " )?;
44- val b = plg :: is_ip_valid(" 127.0.0.1" )?;
45- val c = plg :: env_var(" HOME" )?;
46- val d = plg :: random(1 , 100 )?;
47- val e = plg :: to_uppercase(" this is lowercase" )?;
48- val f = plg :: to_lowercase(" THIS IS UPPERCASE" )?;
49- val now = plg :: now()?;
50- plg :: sleep(2 )?;
51- val after = plg :: now()?;
43+ val a = std :: is_email_valid(
" [email protected] " )?;
44+ val b = std :: is_ip_valid(" 127.0.0.1" )?;
45+ val c = std :: env_var(" HOME" )?;
46+ val d = std :: random(1 , 100 )?;
47+ val e = std :: to_uppercase(" this is lowercase" )?;
48+ val f = std :: to_lowercase(" THIS IS UPPERCASE" )?;
49+ val now = std :: now()?;
50+ std :: sleep(2 )?;
51+ val after = std :: now()?;
5252
5353 val res = " a = " + a + " \n " + " b = " + b + " \n " + " c = " + c + " \n " + " d = " + d + " \n " + " e = " + e + " \n " + " f = " + f + " \n\n " + " before = " + now + " \n " + " after = " + after ;
5454
5555 Response.body(res );
5656 Response.send();
57- };
57+ };
You can’t perform that action at this time.
0 commit comments