class Int32_4(ctypes.Structure):
    _fields_ = [('array', ctypes.c_int32 * 4)]
lib = ctypes.CDLL('embed.dll')
lib.make_array.restype = Int32_4
temp = lib.make_array()
print(temp.array[:])
Using Rust returned array in Python using ctypes