Compare commits
14 Commits
v0.1.4
...
v0.1.7-+12
| Author | SHA1 | Date | |
|---|---|---|---|
| fd55f1fa1c | |||
| 65c7fa4a48 | |||
| dc7d55044d | |||
| 9f145a3126 | |||
| d364c9d2f5 | |||
|
|
4171ee8480 | ||
| e111ff648f | |||
| d05f8270d8 | |||
| dc45194e7c | |||
| 50b652fbc7 | |||
| becc04de43 | |||
| 666eef0f5d | |||
| 4fc1ebe80c | |||
| fb6cd0404d |
4
hublib/.vscode/settings.json
vendored
Normal file
4
hublib/.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"python.languageServer": "None",
|
||||
"python.analysis.typeCheckingMode": "off"
|
||||
}
|
||||
BIN
hublib/libuniffi_hublib.so
Normal file
BIN
hublib/libuniffi_hublib.so
Normal file
Binary file not shown.
@@ -460,9 +460,9 @@ def _uniffi_check_contract_api_version(lib):
|
||||
raise InternalError("UniFFI contract version mismatch: try cleaning and rebuilding your project")
|
||||
|
||||
def _uniffi_check_api_checksums(lib):
|
||||
if lib.uniffi_hublib_checksum_func_get_secret_value() != 7762:
|
||||
if lib.uniffi_hublib_checksum_func_get_secret_value() != 58838:
|
||||
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
||||
if lib.uniffi_hublib_checksum_func_recreate_secret_value() != 51310:
|
||||
if lib.uniffi_hublib_checksum_func_recreate_secret_value() != 37521:
|
||||
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
|
||||
|
||||
# A ctypes library to expose the extern-C FFI definitions.
|
||||
@@ -571,14 +571,14 @@ class _UniffiForeignFutureStructVoid(ctypes.Structure):
|
||||
_UNIFFI_FOREIGN_FUTURE_COMPLETE_VOID = ctypes.CFUNCTYPE(None,ctypes.c_uint64,_UniffiForeignFutureStructVoid,
|
||||
)
|
||||
_UniffiLib.uniffi_hublib_fn_func_get_secret_value.argtypes = (
|
||||
ctypes.c_uint64,
|
||||
_UniffiRustBuffer,
|
||||
_UniffiRustBuffer,
|
||||
_UniffiRustBuffer,
|
||||
ctypes.POINTER(_UniffiRustCallStatus),
|
||||
)
|
||||
_UniffiLib.uniffi_hublib_fn_func_get_secret_value.restype = _UniffiRustBuffer
|
||||
_UniffiLib.uniffi_hublib_fn_func_recreate_secret_value.argtypes = (
|
||||
ctypes.c_uint64,
|
||||
_UniffiRustBuffer,
|
||||
_UniffiRustBuffer,
|
||||
_UniffiRustBuffer,
|
||||
_UniffiRustBuffer,
|
||||
@@ -869,19 +869,6 @@ _uniffi_check_contract_api_version(_UniffiLib)
|
||||
# Public interface members begin here.
|
||||
|
||||
|
||||
class _UniffiConverterUInt64(_UniffiConverterPrimitiveInt):
|
||||
CLASS_NAME = "u64"
|
||||
VALUE_MIN = 0
|
||||
VALUE_MAX = 2**64
|
||||
|
||||
@staticmethod
|
||||
def read(buf):
|
||||
return buf.read_u64()
|
||||
|
||||
@staticmethod
|
||||
def write(value, buf):
|
||||
buf.write_u64(value)
|
||||
|
||||
class _UniffiConverterString:
|
||||
@staticmethod
|
||||
def check_lower(value):
|
||||
@@ -916,21 +903,21 @@ class _UniffiConverterString:
|
||||
|
||||
# Async support
|
||||
|
||||
def get_secret_value(cur_time: "int",user_agent: "str",url: "str") -> "str":
|
||||
_UniffiConverterUInt64.check_lower(cur_time)
|
||||
def get_secret_value(http_date: "str",user_agent: "str",url: "str") -> "str":
|
||||
_UniffiConverterString.check_lower(http_date)
|
||||
|
||||
_UniffiConverterString.check_lower(user_agent)
|
||||
|
||||
_UniffiConverterString.check_lower(url)
|
||||
|
||||
return _UniffiConverterString.lift(_uniffi_rust_call(_UniffiLib.uniffi_hublib_fn_func_get_secret_value,
|
||||
_UniffiConverterUInt64.lower(cur_time),
|
||||
_UniffiConverterString.lower(http_date),
|
||||
_UniffiConverterString.lower(user_agent),
|
||||
_UniffiConverterString.lower(url)))
|
||||
|
||||
|
||||
def recreate_secret_value(cur_time: "int",user_agent: "str",url: "str",gotten_value: "str") -> "str":
|
||||
_UniffiConverterUInt64.check_lower(cur_time)
|
||||
def recreate_secret_value(http_date: "str",user_agent: "str",url: "str",gotten_value: "str") -> "str":
|
||||
_UniffiConverterString.check_lower(http_date)
|
||||
|
||||
_UniffiConverterString.check_lower(user_agent)
|
||||
|
||||
@@ -939,7 +926,7 @@ def recreate_secret_value(cur_time: "int",user_agent: "str",url: "str",gotten_va
|
||||
_UniffiConverterString.check_lower(gotten_value)
|
||||
|
||||
return _UniffiConverterString.lift(_uniffi_rust_call(_UniffiLib.uniffi_hublib_fn_func_recreate_secret_value,
|
||||
_UniffiConverterUInt64.lower(cur_time),
|
||||
_UniffiConverterString.lower(http_date),
|
||||
_UniffiConverterString.lower(user_agent),
|
||||
_UniffiConverterString.lower(url),
|
||||
_UniffiConverterString.lower(gotten_value)))
|
||||
4
setup.py
4
setup.py
@@ -2,9 +2,9 @@ from setuptools import find_packages, setup
|
||||
|
||||
|
||||
setup(
|
||||
name='signlib',
|
||||
name='hublib',
|
||||
packages=find_packages(),
|
||||
version='0.1.0',
|
||||
include_package_data=True,
|
||||
package_data={'signlib': ['*.so']},
|
||||
package_data={'hublib': ['*.so']},
|
||||
)
|
||||
Binary file not shown.
Reference in New Issue
Block a user