diff --git a/bindgen-cli/BUILD.gn b/bindgen-cli/BUILD.gn index c2cea807..4b64bcdf 100644 --- a/bindgen-cli/BUILD.gn +++ b/bindgen-cli/BUILD.gn @@ -38,4 +38,6 @@ ohos_cargo_crate("bindgen") { "static", "which-rustfmt", ] + part_name = "rust_bindgen" + subsystem_name = "thirdparty" } diff --git a/bundle.json b/bundle.json new file mode 100644 index 00000000..3f89d492 --- /dev/null +++ b/bundle.json @@ -0,0 +1,34 @@ +{ + "name": "@ohos/rust_bindgen", + "description": "A tool that automatically generates Rust bindings for C and C++ libraries.", + "version": "5.0", + "license": "BSD 3-Clause License", + "publishAs": "code-segment", + "segment": { + "destPath": "third_party/rust/crates/bindgen" + }, + "dirs": {}, + "scripts": {}, + "readmePath": { + "en": "README.md" + }, + "component": { + "name": "rust_bindgen", + "subsystem": "thirdparty", + "adapted_system_type": [ + "standard" + ], + "deps": { + "components": [] + }, + "build": { + "sub_component": [], + "inner_kits": [ + { + "name": "//third_party/rust/crates/bindgen/bindgen-cli:bindgen" + } + ], + "test": [] + } + } +} \ No newline at end of file