cargo-ohos 0.2.0

Cargo subcommand to cross-compile Rust for OpenHarmony
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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

```sh
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