From 482c6ae5943ce16e43ce68a5edd9cf693b3f709b Mon Sep 17 00:00:00 2001 From: Cesar Brazon Date: Thu, 13 Jul 2023 15:59:58 +0200 Subject: [PATCH] chore: remove include folder (#25) * chore(xcframework): binary target simplified & headers mapped * chore(script): update with new structure --- .gitignore | 3 +- .../Info.plist | 12 +- .../ios-arm64/Headers/module.modulemap | 4 + .../PolywrapClientNative.framework/Info.plist | 24 -- .../Modules/module.modulemap | 6 - .../ios-simulator/Headers/module.modulemap | 4 + .../PolywrapClientNative.framework/Info.plist | 24 -- .../Modules/module.modulemap | 6 - .../macos/Headers/module.modulemap | 4 + .../PolywrapClientNative.framework/Info.plist | 24 -- .../Modules/module.modulemap | 6 - Package.swift | 16 +- Scripts/build_framework.sh | 34 +- ...ib.swift => PolywrapClientNativeLib.swift} | 0 .../PolywrapClient/include/module.modulemap | 4 - .../include/polywrap_nativeFFI.h | 316 ------------------ 16 files changed, 43 insertions(+), 444 deletions(-) create mode 100644 Frameworks/PolywrapClientNative.xcframework/ios-arm64/Headers/module.modulemap delete mode 100644 Frameworks/PolywrapClientNative.xcframework/ios-arm64/PolywrapClientNative.framework/Info.plist delete mode 100644 Frameworks/PolywrapClientNative.xcframework/ios-arm64/PolywrapClientNative.framework/Modules/module.modulemap create mode 100644 Frameworks/PolywrapClientNative.xcframework/ios-simulator/Headers/module.modulemap delete mode 100644 Frameworks/PolywrapClientNative.xcframework/ios-simulator/PolywrapClientNative.framework/Info.plist delete mode 100644 Frameworks/PolywrapClientNative.xcframework/ios-simulator/PolywrapClientNative.framework/Modules/module.modulemap create mode 100644 Frameworks/PolywrapClientNative.xcframework/macos/Headers/module.modulemap delete mode 100644 Frameworks/PolywrapClientNative.xcframework/macos/PolywrapClientNative.framework/Info.plist delete mode 100644 Frameworks/PolywrapClientNative.xcframework/macos/PolywrapClientNative.framework/Modules/module.modulemap rename Sources/PolywrapClient/{include/PolywrapClientLib.swift => PolywrapClientNativeLib.swift} (100%) delete mode 100644 Sources/PolywrapClient/include/module.modulemap delete mode 100644 Sources/PolywrapClient/include/polywrap_nativeFFI.h diff --git a/.gitignore b/.gitignore index 4a45bdd..989cf77 100644 --- a/.gitignore +++ b/.gitignore @@ -8,5 +8,4 @@ DerivedData/ /Frameworks/PolywrapClientNative.xcframework/*/PolywrapClientNative.a .swiftpm /Sources/PolywrapClient/Resources/wrappers -/Frameworks/PolywrapClientNative.xcframework/*/PolywrapClientNative.framework/PolywrapClientNative.a -/Frameworks/PolywrapClientNative.xcframework/*/PolywrapClientNative.framework/Headers/ +/Frameworks/PolywrapClientNative.xcframework/*/Headers/*.h diff --git a/Frameworks/PolywrapClientNative.xcframework/Info.plist b/Frameworks/PolywrapClientNative.xcframework/Info.plist index e98db98..72fdc95 100644 --- a/Frameworks/PolywrapClientNative.xcframework/Info.plist +++ b/Frameworks/PolywrapClientNative.xcframework/Info.plist @@ -5,10 +5,12 @@ AvailableLibraries + HeadersPath + Headers LibraryIdentifier ios-arm64 LibraryPath - PolywrapClientNative.framework/PolywrapClientNative.a + PolywrapClientNative.a SupportedArchitectures arm64 @@ -17,10 +19,12 @@ ios + HeadersPath + Headers LibraryIdentifier ios-simulator LibraryPath - PolywrapClientNative.framework/PolywrapClientNative.a + PolywrapClientNative.a SupportedArchitectures arm64 @@ -32,10 +36,12 @@ simulator + HeadersPath + Headers LibraryIdentifier macos LibraryPath - PolywrapClientNative.framework/PolywrapClientNative.a + PolywrapClientNative.a SupportedArchitectures x86_64 diff --git a/Frameworks/PolywrapClientNative.xcframework/ios-arm64/Headers/module.modulemap b/Frameworks/PolywrapClientNative.xcframework/ios-arm64/Headers/module.modulemap new file mode 100644 index 0000000..0c8f4f5 --- /dev/null +++ b/Frameworks/PolywrapClientNative.xcframework/ios-arm64/Headers/module.modulemap @@ -0,0 +1,4 @@ +module PolywrapClientNative { + header "polywrap_nativeFFI.h" + export * +} \ No newline at end of file diff --git a/Frameworks/PolywrapClientNative.xcframework/ios-arm64/PolywrapClientNative.framework/Info.plist b/Frameworks/PolywrapClientNative.xcframework/ios-arm64/PolywrapClientNative.framework/Info.plist deleted file mode 100644 index 6cbae64..0000000 --- a/Frameworks/PolywrapClientNative.xcframework/ios-arm64/PolywrapClientNative.framework/Info.plist +++ /dev/null @@ -1,24 +0,0 @@ -?xml version="1.0" encoding="UTF-8"?> - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - PolywrapClientLib - CFBundleIdentifier - com.user.PolywrapClient - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - PolywrapClientLib - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0 - CFBundleVersion - 0.0.1 - NSPrincipalClass - - - \ No newline at end of file diff --git a/Frameworks/PolywrapClientNative.xcframework/ios-arm64/PolywrapClientNative.framework/Modules/module.modulemap b/Frameworks/PolywrapClientNative.xcframework/ios-arm64/PolywrapClientNative.framework/Modules/module.modulemap deleted file mode 100644 index 6848908..0000000 --- a/Frameworks/PolywrapClientNative.xcframework/ios-arm64/PolywrapClientNative.framework/Modules/module.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module PolywrapClient { - umbrella header "polywrap_nativeFFI.h" - - export * - module * { export * } -} \ No newline at end of file diff --git a/Frameworks/PolywrapClientNative.xcframework/ios-simulator/Headers/module.modulemap b/Frameworks/PolywrapClientNative.xcframework/ios-simulator/Headers/module.modulemap new file mode 100644 index 0000000..0c8f4f5 --- /dev/null +++ b/Frameworks/PolywrapClientNative.xcframework/ios-simulator/Headers/module.modulemap @@ -0,0 +1,4 @@ +module PolywrapClientNative { + header "polywrap_nativeFFI.h" + export * +} \ No newline at end of file diff --git a/Frameworks/PolywrapClientNative.xcframework/ios-simulator/PolywrapClientNative.framework/Info.plist b/Frameworks/PolywrapClientNative.xcframework/ios-simulator/PolywrapClientNative.framework/Info.plist deleted file mode 100644 index 6cbae64..0000000 --- a/Frameworks/PolywrapClientNative.xcframework/ios-simulator/PolywrapClientNative.framework/Info.plist +++ /dev/null @@ -1,24 +0,0 @@ -?xml version="1.0" encoding="UTF-8"?> - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - PolywrapClientLib - CFBundleIdentifier - com.user.PolywrapClient - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - PolywrapClientLib - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0 - CFBundleVersion - 0.0.1 - NSPrincipalClass - - - \ No newline at end of file diff --git a/Frameworks/PolywrapClientNative.xcframework/ios-simulator/PolywrapClientNative.framework/Modules/module.modulemap b/Frameworks/PolywrapClientNative.xcframework/ios-simulator/PolywrapClientNative.framework/Modules/module.modulemap deleted file mode 100644 index 6848908..0000000 --- a/Frameworks/PolywrapClientNative.xcframework/ios-simulator/PolywrapClientNative.framework/Modules/module.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module PolywrapClient { - umbrella header "polywrap_nativeFFI.h" - - export * - module * { export * } -} \ No newline at end of file diff --git a/Frameworks/PolywrapClientNative.xcframework/macos/Headers/module.modulemap b/Frameworks/PolywrapClientNative.xcframework/macos/Headers/module.modulemap new file mode 100644 index 0000000..0c8f4f5 --- /dev/null +++ b/Frameworks/PolywrapClientNative.xcframework/macos/Headers/module.modulemap @@ -0,0 +1,4 @@ +module PolywrapClientNative { + header "polywrap_nativeFFI.h" + export * +} \ No newline at end of file diff --git a/Frameworks/PolywrapClientNative.xcframework/macos/PolywrapClientNative.framework/Info.plist b/Frameworks/PolywrapClientNative.xcframework/macos/PolywrapClientNative.framework/Info.plist deleted file mode 100644 index 6cbae64..0000000 --- a/Frameworks/PolywrapClientNative.xcframework/macos/PolywrapClientNative.framework/Info.plist +++ /dev/null @@ -1,24 +0,0 @@ -?xml version="1.0" encoding="UTF-8"?> - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - PolywrapClientLib - CFBundleIdentifier - com.user.PolywrapClient - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - PolywrapClientLib - CFBundlePackageType - FMWK - CFBundleShortVersionString - 1.0 - CFBundleVersion - 0.0.1 - NSPrincipalClass - - - \ No newline at end of file diff --git a/Frameworks/PolywrapClientNative.xcframework/macos/PolywrapClientNative.framework/Modules/module.modulemap b/Frameworks/PolywrapClientNative.xcframework/macos/PolywrapClientNative.framework/Modules/module.modulemap deleted file mode 100644 index 6848908..0000000 --- a/Frameworks/PolywrapClientNative.xcframework/macos/PolywrapClientNative.framework/Modules/module.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module PolywrapClient { - umbrella header "polywrap_nativeFFI.h" - - export * - module * { export * } -} \ No newline at end of file diff --git a/Package.swift b/Package.swift index 0ba817b..8f14ec7 100644 --- a/Package.swift +++ b/Package.swift @@ -10,7 +10,7 @@ let package = Package( // Products define the executables and libraries a package produces, and make them visible to other packages. .library( name: "PolywrapClient", - targets: ["PolywrapClient", "PolywrapClientNative"]), + targets: ["PolywrapClient"]), ], dependencies: [ // Dependencies declare other packages that this package depends on. @@ -22,22 +22,20 @@ let package = Package( // Targets can depend on other targets in this package, and on products in packages this package depends on. .target( name: "PolywrapClient", - dependencies: ["MessagePacker", "PolywrapClientNative", "AsyncObjects"], - publicHeadersPath: "include", - cSettings: [ .headerSearchPath("include") ] + dependencies: ["MessagePacker", "PolywrapClientNative", "AsyncObjects"] ), .binaryTarget( name: "PolywrapClientNative", - url: "https://github.com/polywrap/swift-client/releases/download/v0.0.2/PolywrapClientNative.xcframework.zip", - checksum: "e6496955aab8fe74ffa5897449d6fc9d7c272bc84f716c4f1cd33bf9ddf4463e" + path: "Frameworks/PolywrapClientNative.xcframework" + // url: "https://github.com/polywrap/swift-client/releases/download/v0.0.2/PolywrapClientNative.xcframework.zip", + // checksum: "e6496955aab8fe74ffa5897449d6fc9d7c272bc84f716c4f1cd33bf9ddf4463e" ), .testTarget( name: "PolywrapClientTests", dependencies: [ - "PolywrapClient", + "PolywrapClient" ], - resources: [ .copy("Cases") ], - cSettings: [ .headerSearchPath("../../Sources/PolywrapClient/include")] + resources: [ .copy("Cases") ] ) ] ) diff --git a/Scripts/build_framework.sh b/Scripts/build_framework.sh index 5bc65ce..c2fa83e 100755 --- a/Scripts/build_framework.sh +++ b/Scripts/build_framework.sh @@ -3,7 +3,7 @@ set -e # Helps to give error info LOCAL_UDL="src/polywrap_native.udl" UDL_NAME="polywrap_native" FRAMEWORK_NAME="PolywrapClientNative" -SWIFT_INTERFACE="PolywrapClientLib" +SWIFT_INTERFACE="PolywrapClientNativeLib" BUILD_PATH="${IOS_PROJ}/Frameworks/PolywrapClientNative.xcframework" @@ -16,19 +16,18 @@ cargo build --target x86_64-apple-ios cargo build --target x86_64-apple-darwin # For macOS w/Intel cargo build --target aarch64-apple-darwin # For macOS w/M1 -IOS_ARM64_FRAMEWORK="$BUILD_PATH/ios-arm64/$FRAMEWORK_NAME.framework" -IOS_SIM_FRAMEWORK="$BUILD_PATH/ios-simulator/$FRAMEWORK_NAME.framework" -MACOS_FRAMEWORK="$BUILD_PATH/macos/$FRAMEWORK_NAME.framework" +IOS_ARM64_FRAMEWORK="$BUILD_PATH/ios-arm64" +IOS_SIM_FRAMEWORK="$BUILD_PATH/ios-simulator" +MACOS_FRAMEWORK="$BUILD_PATH/macos" # Remove old files if they exist -rm -rf "$IOS_ARM64_FRAMEWORK/Headers" +rm -rf "$IOS_ARM64_FRAMEWORK/Headers/${UDL_NAME}FFI.h" rm -rf "$IOS_ARM64_FRAMEWORK/$FRAMEWORK_NAME.a" -rm -rf "$IOS_SIM_FRAMEWORK/Headers" +rm -rf "$IOS_SIM_FRAMEWORK/Headers/${UDL_NAME}FFI.h" rm -rf "$IOS_SIM_FRAMEWORK/$FRAMEWORK_NAME.a" -rm -rf "$MACOS_FRAMEWORK/Headers" +rm -rf "$MACOS_FRAMEWORK/Headers/${UDL_NAME}FFI.h" rm -rf "$MACOS_FRAMEWORK/$FRAMEWORK_NAME.a" - -rm -rf "$IOS_PROJ/Sources/PolywrapClient/include/${UDL_NAME}FFI.h" +rm "$IOS_PROJ/Sources/PolywrapClient/$SWIFT_INTERFACE.swift" rm -rf ../../target/universal.a rm -rf include/ios/* @@ -37,7 +36,7 @@ rm -rf include/ios/* mkdir -p include/ios # UniFfi bindgen -cargo run --bin uniffi-bindgen generate "$LOCAL_UDL" --language swift --out-dir $IOS_PROJ/Sources/PolywrapClient/include/.cache +cargo run --bin uniffi-bindgen generate "$LOCAL_UDL" --language swift --out-dir $IOS_PROJ/Sources/PolywrapClient/.cache # Make fat lib for sims lipo -create \ @@ -52,20 +51,15 @@ lipo -create \ -output ../../target/universal_mac.a # Move headers -mkdir "$IOS_ARM64_FRAMEWORK/Headers" -cp "$IOS_PROJ/Sources/PolywrapClient/include/.cache/${UDL_NAME}FFI.h" \ +cp "$IOS_PROJ/Sources/PolywrapClient/.cache/${UDL_NAME}FFI.h" \ "$IOS_ARM64_FRAMEWORK/Headers/${UDL_NAME}FFI.h" -mkdir "$IOS_SIM_FRAMEWORK/Headers" -cp "$IOS_PROJ/Sources/PolywrapClient/include/.cache/${UDL_NAME}FFI.h" \ +cp "$IOS_PROJ/Sources/PolywrapClient/.cache/${UDL_NAME}FFI.h" \ "$IOS_SIM_FRAMEWORK/Headers/${UDL_NAME}FFI.h" -mkdir "$MACOS_FRAMEWORK/Headers" -cp "$IOS_PROJ/Sources/PolywrapClient/include/.cache/${UDL_NAME}FFI.h" \ +cp "$IOS_PROJ/Sources/PolywrapClient/.cache/${UDL_NAME}FFI.h" \ "$MACOS_FRAMEWORK/Headers/${UDL_NAME}FFI.h" -cp "$IOS_PROJ/Sources/PolywrapClient/include/.cache/${UDL_NAME}FFI.h" "$IOS_PROJ/Sources/PolywrapClient/include/${UDL_NAME}FFI.h" - # Move binaries cp "../../target/aarch64-apple-ios/debug/lib${UDL_NAME}.a" \ "$IOS_ARM64_FRAMEWORK/$FRAMEWORK_NAME.a" @@ -75,7 +69,7 @@ cp "../../target/universal_mac.a" \ "$MACOS_FRAMEWORK/$FRAMEWORK_NAME.a" # Move swift interface -sed "s/${UDL_NAME}FFI/$FRAMEWORK_NAME/g" "$IOS_PROJ/Sources/PolywrapClient/include/.cache/$UDL_NAME.swift" > "$IOS_PROJ/Sources/PolywrapClient/include/$SWIFT_INTERFACE.swift" +sed "s/${UDL_NAME}FFI/$FRAMEWORK_NAME/g" "$IOS_PROJ/Sources/PolywrapClient/.cache/$UDL_NAME.swift" > "$IOS_PROJ/Sources/PolywrapClient/$SWIFT_INTERFACE.swift" # Update include folder and remove unneeded files -rm -rf $IOS_PROJ/Sources/PolywrapClient/include/.cache +rm -rf $IOS_PROJ/Sources/PolywrapClient/.cache diff --git a/Sources/PolywrapClient/include/PolywrapClientLib.swift b/Sources/PolywrapClient/PolywrapClientNativeLib.swift similarity index 100% rename from Sources/PolywrapClient/include/PolywrapClientLib.swift rename to Sources/PolywrapClient/PolywrapClientNativeLib.swift diff --git a/Sources/PolywrapClient/include/module.modulemap b/Sources/PolywrapClient/include/module.modulemap deleted file mode 100644 index 4c7ba4e..0000000 --- a/Sources/PolywrapClient/include/module.modulemap +++ /dev/null @@ -1,4 +0,0 @@ -module PolywrapClientNative { - umbrella header "polywrap_nativeFFI.h" - export * -} \ No newline at end of file diff --git a/Sources/PolywrapClient/include/polywrap_nativeFFI.h b/Sources/PolywrapClient/include/polywrap_nativeFFI.h deleted file mode 100644 index 3b9f3d9..0000000 --- a/Sources/PolywrapClient/include/polywrap_nativeFFI.h +++ /dev/null @@ -1,316 +0,0 @@ -// This file was autogenerated by some hot garbage in the `uniffi` crate. -// Trust me, you don't want to mess with it! - -#pragma once - -#include -#include - -// The following structs are used to implement the lowest level -// of the FFI, and thus useful to multiple uniffied crates. -// We ensure they are declared exactly once, with a header guard, UNIFFI_SHARED_H. -#ifdef UNIFFI_SHARED_H - // We also try to prevent mixing versions of shared uniffi header structs. - // If you add anything to the #else block, you must increment the version suffix in UNIFFI_SHARED_HEADER_V4 - #ifndef UNIFFI_SHARED_HEADER_V4 - #error Combining helper code from multiple versions of uniffi is not supported - #endif // ndef UNIFFI_SHARED_HEADER_V4 -#else -#define UNIFFI_SHARED_H -#define UNIFFI_SHARED_HEADER_V4 -// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️ -// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️ - -typedef struct RustBuffer -{ - int32_t capacity; - int32_t len; - uint8_t *_Nullable data; -} RustBuffer; - -typedef int32_t (*ForeignCallback)(uint64_t, int32_t, RustBuffer, RustBuffer *_Nonnull); - -typedef struct ForeignBytes -{ - int32_t len; - const uint8_t *_Nullable data; -} ForeignBytes; - -// Error definitions -typedef struct RustCallStatus { - int8_t code; - RustBuffer errorBuf; -} RustCallStatus; - -// ⚠️ Attention: If you change this #else block (ending in `#endif // def UNIFFI_SHARED_H`) you *must* ⚠️ -// ⚠️ increment the version suffix in all instances of UNIFFI_SHARED_HEADER_V4 in this file. ⚠️ -#endif // def UNIFFI_SHARED_H - -void ffi_polywrap_native_4639_FFIUri_object_free( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -void*_Nonnull polywrap_native_4639_FFIUri_new( - RustBuffer authority,RustBuffer path,RustBuffer uri, - RustCallStatus *_Nonnull out_status - ); -RustBuffer polywrap_native_4639_FFIUri_authority( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -RustBuffer polywrap_native_4639_FFIUri_path( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -RustBuffer polywrap_native_4639_FFIUri_to_string_uri( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -void ffi_polywrap_native_4639_FFIInvoker_object_free( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -RustBuffer polywrap_native_4639_FFIInvoker_invoke_raw( - void*_Nonnull ptr,void*_Nonnull uri,RustBuffer method,RustBuffer args,RustBuffer env,RustBuffer resolution_context, - RustCallStatus *_Nonnull out_status - ); -RustBuffer polywrap_native_4639_FFIInvoker_get_implementations( - void*_Nonnull ptr,void*_Nonnull uri, - RustCallStatus *_Nonnull out_status - ); -RustBuffer polywrap_native_4639_FFIInvoker_get_interfaces( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -RustBuffer polywrap_native_4639_FFIInvoker_get_env_by_uri( - void*_Nonnull ptr,void*_Nonnull uri, - RustCallStatus *_Nonnull out_status - ); -void ffi_polywrap_native_4639_FFIWasmWrapper_object_free( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -void*_Nonnull polywrap_native_4639_FFIWasmWrapper_new( - RustBuffer wasm_module, - RustCallStatus *_Nonnull out_status - ); -RustBuffer polywrap_native_4639_FFIWasmWrapper_invoke( - void*_Nonnull ptr,RustBuffer method,RustBuffer args,RustBuffer env,void*_Nonnull invoker, - RustCallStatus *_Nonnull out_status - ); -void ffi_polywrap_native_4639_FFIStaticUriResolver_object_free( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -void*_Nonnull polywrap_native_4639_FFIStaticUriResolver_new( - RustBuffer uri_map, - RustCallStatus *_Nonnull out_status - ); -uint64_t polywrap_native_4639_FFIStaticUriResolver_try_resolve_uri( - void*_Nonnull ptr,void*_Nonnull uri,void*_Nonnull invoker,void*_Nonnull resolution_context, - RustCallStatus *_Nonnull out_status - ); -void ffi_polywrap_native_4639_FFIRecursiveUriResolver_object_free( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -void*_Nonnull polywrap_native_4639_FFIRecursiveUriResolver_new( - uint64_t uri_resolver, - RustCallStatus *_Nonnull out_status - ); -uint64_t polywrap_native_4639_FFIRecursiveUriResolver_try_resolve_uri( - void*_Nonnull ptr,void*_Nonnull uri,void*_Nonnull invoker,void*_Nonnull resolution_context, - RustCallStatus *_Nonnull out_status - ); -void ffi_polywrap_native_4639_FFIUriResolutionContext_object_free( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -void*_Nonnull polywrap_native_4639_FFIUriResolutionContext_new( - - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIUriResolutionContext_set_resolution_path( - void*_Nonnull ptr,RustBuffer resolution_path, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIUriResolutionContext_set_history( - void*_Nonnull ptr,RustBuffer history, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIUriResolutionContext_set_resolving_uri_map( - void*_Nonnull ptr,RustBuffer resolving_uri_map, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIUriResolutionContext_set_start_resolving( - void*_Nonnull ptr,void*_Nonnull uri, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIUriResolutionContext_set_stop_resolving( - void*_Nonnull ptr,void*_Nonnull uri, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIUriResolutionContext_track_step( - void*_Nonnull ptr,RustBuffer step, - RustCallStatus *_Nonnull out_status - ); -RustBuffer polywrap_native_4639_FFIUriResolutionContext_get_history( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -RustBuffer polywrap_native_4639_FFIUriResolutionContext_get_resolution_path( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -void*_Nonnull polywrap_native_4639_FFIUriResolutionContext_create_sub_history_context( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -void*_Nonnull polywrap_native_4639_FFIUriResolutionContext_create_sub_context( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -void ffi_polywrap_native_4639_FFIClient_object_free( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -RustBuffer polywrap_native_4639_FFIClient_invoke_raw( - void*_Nonnull ptr,void*_Nonnull uri,RustBuffer method,RustBuffer args,RustBuffer env,RustBuffer resolution_context, - RustCallStatus *_Nonnull out_status - ); -RustBuffer polywrap_native_4639_FFIClient_get_implementations( - void*_Nonnull ptr,void*_Nonnull uri, - RustCallStatus *_Nonnull out_status - ); -RustBuffer polywrap_native_4639_FFIClient_get_interfaces( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -RustBuffer polywrap_native_4639_FFIClient_get_env_by_uri( - void*_Nonnull ptr,void*_Nonnull uri, - RustCallStatus *_Nonnull out_status - ); -void*_Nonnull polywrap_native_4639_FFIClient_as_invoker( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -RustBuffer polywrap_native_4639_FFIClient_invoke_wrapper_raw( - void*_Nonnull ptr,uint64_t wrapper,void*_Nonnull uri,RustBuffer method,RustBuffer args,RustBuffer env,RustBuffer resolution_context, - RustCallStatus *_Nonnull out_status - ); -uint64_t polywrap_native_4639_FFIClient_load_wrapper( - void*_Nonnull ptr,void*_Nonnull uri,RustBuffer resolution_context, - RustCallStatus *_Nonnull out_status - ); -void ffi_polywrap_native_4639_FFIBuilderConfig_object_free( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -void*_Nonnull polywrap_native_4639_FFIBuilderConfig_new( - - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIBuilderConfig_add_env( - void*_Nonnull ptr,void*_Nonnull uri,RustBuffer env, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIBuilderConfig_remove_env( - void*_Nonnull ptr,void*_Nonnull uri, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIBuilderConfig_add_interface_implementations( - void*_Nonnull ptr,void*_Nonnull interface_uri,RustBuffer implementation_uris, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIBuilderConfig_add_interface_implementation( - void*_Nonnull ptr,void*_Nonnull interface_uri,void*_Nonnull implementation_uri, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIBuilderConfig_remove_interface_implementation( - void*_Nonnull ptr,void*_Nonnull interface_uri,void*_Nonnull implementation_uri, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIBuilderConfig_add_wrapper( - void*_Nonnull ptr,void*_Nonnull uri,uint64_t wrapper, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIBuilderConfig_remove_wrapper( - void*_Nonnull ptr,void*_Nonnull uri, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIBuilderConfig_add_package( - void*_Nonnull ptr,void*_Nonnull uri,uint64_t package, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIBuilderConfig_remove_package( - void*_Nonnull ptr,void*_Nonnull uri, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIBuilderConfig_add_redirect( - void*_Nonnull ptr,void*_Nonnull from,void*_Nonnull to, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIBuilderConfig_remove_redirect( - void*_Nonnull ptr,void*_Nonnull from, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIBuilderConfig_add_resolver( - void*_Nonnull ptr,uint64_t resolver, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIBuilderConfig_add_system_defaults( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -void polywrap_native_4639_FFIBuilderConfig_add_web3_defaults( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -void*_Nonnull polywrap_native_4639_FFIBuilderConfig_build( - void*_Nonnull ptr, - RustCallStatus *_Nonnull out_status - ); -void ffi_polywrap_native_4639_FFIWrapper_init_callback( - ForeignCallback _Nonnull callback_stub, - RustCallStatus *_Nonnull out_status - ); -void ffi_polywrap_native_4639_FFIWrapPackage_init_callback( - ForeignCallback _Nonnull callback_stub, - RustCallStatus *_Nonnull out_status - ); -void ffi_polywrap_native_4639_FFIUriResolver_init_callback( - ForeignCallback _Nonnull callback_stub, - RustCallStatus *_Nonnull out_status - ); -void ffi_polywrap_native_4639_FFIUriWrapper_init_callback( - ForeignCallback _Nonnull callback_stub, - RustCallStatus *_Nonnull out_status - ); -void ffi_polywrap_native_4639_FFIUriWrapPackage_init_callback( - ForeignCallback _Nonnull callback_stub, - RustCallStatus *_Nonnull out_status - ); -void ffi_polywrap_native_4639_FFIUriPackageOrWrapper_init_callback( - ForeignCallback _Nonnull callback_stub, - RustCallStatus *_Nonnull out_status - ); -void*_Nonnull polywrap_native_4639_ffi_uri_from_string( - RustBuffer uri, - RustCallStatus *_Nonnull out_status - ); -RustBuffer ffi_polywrap_native_4639_rustbuffer_alloc( - int32_t size, - RustCallStatus *_Nonnull out_status - ); -RustBuffer ffi_polywrap_native_4639_rustbuffer_from_bytes( - ForeignBytes bytes, - RustCallStatus *_Nonnull out_status - ); -void ffi_polywrap_native_4639_rustbuffer_free( - RustBuffer buf, - RustCallStatus *_Nonnull out_status - ); -RustBuffer ffi_polywrap_native_4639_rustbuffer_reserve( - RustBuffer buf,int32_t additional, - RustCallStatus *_Nonnull out_status - );