metacall 0.5.8

Call NodeJS, TypeScript, Python, C#, Ruby... functions from Rust (a Rust Port for MetaCall).
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
class TestClass:
    hi = "there!"
    hi2 = "x"

    @staticmethod
    def hi_function():
        return "there!";
    def get_hi(self):
        return self.hi;

def test_class():
    return TestClass
def test_object():
    return TestClass()
def return_the_argument_py(argument):
    return argument