synta-python-mtc 0.3.1

Python extension module for synta Merkle Tree Certificates types
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// Build script for synta-python-mtc
//
// Configures linker flags for building Python extension modules on macOS.
// On macOS, Python extension modules (cdylib) need to allow undefined symbols
// (Python C API functions) which are resolved at runtime when loaded by Python.

fn main() {
    // Only apply these linker flags on macOS
    if cfg!(target_os = "macos") {
        println!("cargo:rustc-cdylib-link-arg=-undefined");
        println!("cargo:rustc-cdylib-link-arg=dynamic_lookup");
    }
}