ohos-basic-services-kit-sys 0.1.0

Raw bindings to the BasicServicesKit NDK of OpenHarmony
Documentation
  • Coverage
  • 96.83%
    305 out of 315 items documented0 out of 0 items with examples
  • Size
  • Source code size: 133.94 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 12.91 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • openharmony-rs/ohos-sys
    26 6 8
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • jschwe

OpenHarmony BasicServicesKit bindings

Raw FFI bindings to the OpenHarmony BasicServicesKit NDK. BasicServicesKit groups several unrelated system-service NDKs under one upstream kit; this crate exposes each behind its own cargo feature:

Sub-API Feature Library Min API
CommonEvent commonevent libohcommonevent.so 12
BatteryInfo battery-info libohbattery_info.so 13
Print print libohprint.so 12
Scan scan libohscan.so 12
OS Account os-account libos_account_ndk.so 12
TimeService time-service libtime_service_ndk.so 12

A sub-API feature is a no-op unless the matching api-XX feature is also enabled — i.e. enabling commonevent without api-12 (or higher) leaves the module hidden and the .so unlinked. The all-apis meta-feature enables every sub-API at once.

C API reference: https://gitcode.com/openharmony/docs/blob/master/en/application-dev/reference/apis-basic-services-kit/

License

Licensed under the Apache-2.0 license, matching the license of OpenHarmony.