Files
NativeScript/tools/scripts/build-rust-headers.sh
Osei Fortune 4bb347ca69 feat: initial wintercg modules
Adding initial support for the following URL, TextEncoder, TextDecoder, atob, btoa.

This also setups up a cargo workspace (rust) for future developments.

iOS adds a local pod dep until we move to using a pod for the runtime dep.
2024-01-08 01:55:57 -04:00

6 lines
549 B
Bash
Executable File

#!/bin/bash
cbindgen --config crates/libs/nativescript-core/cbindgen.toml crates/libs/nativescript-core/src/lib.rs -l c > crates/libs/nativescript-core/include/nativescript_core.h
cbindgen --config crates/libs/nativescript-core/cbindgen.toml crates/libs/nativescript-core/src/lib.rs -l c > packages/core/platforms/ios/src/cpp/include/nativescript_core.h
cbindgen --config crates/libs/nativescript-core/cbindgen.toml crates/libs/nativescript-core/src/lib.rs -l c > packages/ui-mobile-base/android/widgets/src/main/cpp/include/nativescript_core.h