Yet more packages into plugins.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
use rhai::plugin::*;
|
||||
use rhai::{Engine, EvalAltResult, INT};
|
||||
|
||||
|
||||
#[export_fn]
|
||||
pub fn add_together(x: INT, y: INT) -> INT {
|
||||
x + y
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#![cfg(not(any(feature = "no_index", feature = "no_module")))]
|
||||
|
||||
use rhai::plugin::*;
|
||||
use rhai::{Engine, EvalAltResult, INT, Module};
|
||||
use rhai::{Engine, EvalAltResult, Module, INT};
|
||||
|
||||
pub fn add_generic<T: std::ops::Add<Output = T>>(x: T, y: T) -> T {
|
||||
x + y
|
||||
|
Reference in New Issue
Block a user