import os
import os.path
import inspect

base_path = os.path.dirname(inspect.getframeinfo(inspect.currentframe())[0])

NAME = 'rust'
GCC_LIST = ['rust', '%s/plugin.a' % base_path]

CFLAGS = []

if os.uname()[0] == 'Darwin':
    CFLAGS.append('-mmacosx-version-min=10.7')


if os.system("rustc -o %s/plugin.a --crate-type staticlib %s/plugin.rs" % (base_path, base_path)) != 0:
    os._exit(1)

import os
import os.path
import inspect

base_path = os.path.dirname(inspect.getframeinfo(inspect.currentframe())[0])

NAME = 'rust'
GCC_LIST = ['rust', '%s/target/release/libuwsgi_rust.a' % base_path]

CFLAGS = []

if os.uname()[0] == 'Darwin':
    CFLAGS.append('-mmacosx-version-min=10.7')

if os.system("cargo build --release") != 0:
    os._exit(1)

# To also build the example app:
#os.system("cargo build --release --manifest-path examples/Cargo.toml")

Update script to build rust code via cargo
Update script to build rust code via cargo

Signed-off-by: Luca Bruno <d11e81b0438fe9a6fbb85b72e5bb4c36a65f49c7@debian.org>
