Cargo Features
[dependencies]
ohos-rawfile-sys = { version = "0.1.0", default-features = false, features = ["api-10", "api-11", "api-12", "api-13", "document-features"] }
- default = _functions
-
The
_functions
feature is set by default wheneverohos-rawfile-sys
is added without
somewhere in the dependency tree.default-features = false - _functions default
-
Internal feature: Enables functions
Enabled by default. Users should not disable this feature. Removing this feature only leaves a couple of type definitions, which are required by some other OpenHarmony sys crates for interop. This allows us to make linking against
rawfile
shared library optional, and only happen if a user actually needs to use this crate.Affects
ohos-rawfile-sys::raw_dir
,ohos-rawfile-sys::raw_file
,ohos-rawfile-sys::raw_file_manager
… - api-10 api-11?
- api-11 api-12? = api-10
-
Affects
raw_file_ffi::OH_ResourceManager_GetRawFileRemainingLength
,raw_file_ffi::OH_ResourceManager_ReadRawFile64
,raw_file_ffi::OH_ResourceManager_SeekRawFile64
,raw_file_ffi::OH_ResourceManager_GetRawFileSize64
,raw_file_ffi::OH_ResourceManager_GetRawFileRemainingLength64
,raw_file_ffi::OH_ResourceManager_CloseRawFile64
,raw_file_ffi::OH_ResourceManager_GetRawFileOffset64
,raw_file_ffi::OH_ResourceManager_GetRawFileDescriptor64
,raw_file_ffi::OH_ResourceManager_ReleaseRawFileDescriptor64
,raw_file_manager_ffi::OH_ResourceManager_OpenRawFile64
,raw_file_types_ffi::RawFile64
,raw_file_types_ffi::RawFileDescriptor64
… - api-12 api-13? = api-11
-
Affects
raw_file_ffi::OH_ResourceManager_GetRawFileDescriptorData
,raw_file_ffi::OH_ResourceManager_ReleaseRawFileDescriptorData
,raw_file_manager_ffi::OH_ResourceManager_IsRawDir
… - api-13 = api-12
- document-features
-
Document available features when building the documentation
Enables document-features