python-mod 1.1.0

Proc-macros that compile Python modules into Rust at build time (the Rython toolchain)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
# String operations for testing
def concat_strings(a, b):
    return a + b

def string_length(s):
    return len(s)

def repeat_string(s, n):
    return s * n

# String constant
GREETING = "Hello, World!"