cargo-ohos 0.2.0

Cargo subcommand to cross-compile Rust for OpenHarmony
cargo-ohos-0.2.0 is not a library.

cargo-ohos

Cross-compile Rust for OpenHarmony. Sets up the environment for cargo, cc-rs, bindgen, cmake-rs and pkg-config from the OpenHarmony SDK.

Usage

export OHOS_SDK_NATIVE=/path/to/ohos-sdk/native
cargo ohos build -t aarch64 --release

The SDK can also be discovered from DEVECO_SDK_HOME or the standard DevEco Studio installation location (currently only macOS)

License

MIT OR Apache-2.0