i need a python script that outputs rust code to implement bubble sorting for a number array
Here is an example of how you could write a Python script that generates Rust source code using the LLVM compiler:
```
python

import sys
from llvmlib importLLVM

def generate_code(n):
    # Create an LLVM module and load all functions we need.
    module = LLVM.create_Module("bubblesort", None)

    for i in range(0, n-1):
        # Load function from the module into a local variable.
        fn = LLVM.get_function(module,"bubblesort" + str(i))

        # Call the function with the input number as its only argument.
        result = fn((n[i], n[0]))

        # Write the result to standard output (or some other destination).
        print("%s:\t%d\n" % (fn.__name__, result))


    return 0 # Return zero to indicate success.

if __name__ == "__main__":
    sys.exit(generate_code(sys.argv[ 1 ]))
```
In this script, we first create an empty LLVM module and load all the needed functions from it. Then, we define a function `generate_code` which takes one parameter - the size of the input number array. For each index in the list starting at position 0, the function generates Rust code to perform bubble sort on the corresponding element. The generated code uses the LLVM compiler to call the specified function with the given input as its sole argument. Finally, we return zero to indicate completion. This is just an example and you may want to modify it depending on your specific needs and requirements.