From e87ba0e069d601062d4d4711902fb612c4d8ad05 Mon Sep 17 00:00:00 2001 From: ljy9810 Date: Tue, 25 Nov 2025 10:44:59 +0800 Subject: [PATCH] =?UTF-8?q?autocfg=E5=A2=9E=E5=8A=A0bundle.json=E9=83=A8?= =?UTF-8?q?=E4=BB=B6=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: ljy9810 --- BUILD.gn | 3 +++ bundle.json | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 bundle.json diff --git a/BUILD.gn b/BUILD.gn index 478bdbf..cbd9363 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -24,4 +24,7 @@ ohos_cargo_crate("lib") { sources = [ "src/lib.rs" ] edition = "2015" + module_output_extension = ".rlib" + part_name = "rust_autocfg" + subsystem_name = "thirdparty" } diff --git a/bundle.json b/bundle.json new file mode 100644 index 0000000..b41cd65 --- /dev/null +++ b/bundle.json @@ -0,0 +1,34 @@ +{ + "name": "@ohos/rust_autocfg", + "description": "A library that generates Rust code based on compile-time configuration options", + "version": "6.1", + "license": "Apache License 2.0", + "publishAs": "code-segment", + "segment": { + "destPath": "third_party/rust/crates/autocfg" + }, + "dirs": {}, + "scripts": {}, + "readmePath": { + "en": "README.md" + }, + "component": { + "name": "rust_autocfg", + "subsystem": "thirdparty", + "adapted_system_type": [ + "standard" + ], + "deps": { + "components": [] + }, + "build": { + "sub_component": [], + "inner_kits": [ + { + "name": "//third_party/rust/crates/autocfg:lib" + } + ], + "test": [] + } + } +} \ No newline at end of file