Skip to content

Commit

Permalink
Switch to one binding file
Browse files Browse the repository at this point in the history
Use a fork of bindgen, which allows us to

- Add feature cfgs onto items based on doc comments
- Add deprecated onto items based on doc comments

Signed-off-by: Jonathan Schwender <[email protected]>
  • Loading branch information
jschwe committed Dec 26, 2024
1 parent 00f0c7c commit 6c93cde
Show file tree
Hide file tree
Showing 70 changed files with 4,577 additions and 6,203 deletions.
3 changes: 3 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# unstable_features = true
# normalize_comments = true
# normalize_doc_attributes = true
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# v0.5.0

## Breaking

- Remove `Debug` from opaque structs

# v0.4.0 (2024-10-29)

## Change
Expand Down
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ description = "Bindings to the native API of OpenHarmony OS"
license = "Apache-2.0"
repository = "https://github.com/openharmony-rs/ohos-sys"
keywords = ["OpenHarmony", "HarmonyOS", "ffi"]
exclude = ["src/**/*_api11.rs", "src/**/*_api12.rs"]
readme = "Readme.md"
resolver = "2"
rust-version = "1.78.0"
Expand Down
6 changes: 6 additions & 0 deletions components/arkui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## 0.2.0

### Breaking

- `ArkUI_NumberValue` is now a native Rust union instead of a bindgen union type.

2 changes: 1 addition & 1 deletion components/arkui/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "arkui-sys"
version = "0.1.0"
version = "0.2.0"
edition = "2021"
description = "Bindings to the native ArkUI API of OpenHarmony"
license = "Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions components/arkui/src/native_gesture.rs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mod native_gesture_api12;
pub use native_gesture_api12::*;
mod native_gesture_ffi;
pub use native_gesture_ffi::*;
Loading

0 comments on commit 6c93cde

Please sign in to comment.