diff --git a/BUILD.gn b/BUILD.gn index 6371f2ed..85527c23 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -69,4 +69,7 @@ ohos_cargo_crate("lib") { "user", "zerocopy", ] + module_output_extension = ".rlib" + part_name = "rust_nix" + subsystem_name = "thirdparty" } diff --git a/bundle.json b/bundle.json new file mode 100644 index 00000000..bfa29214 --- /dev/null +++ b/bundle.json @@ -0,0 +1,34 @@ +{ + "name": "@ohos/rust_nix", + "description": "A Rust library that provides support for interacting with Unix-like operating systems.", + "version": "5.0", + "license": "MIT License", + "publishAs": "code-segment", + "segment": { + "destPath": "third_party/rust/crates/nix" + }, + "dirs": {}, + "scripts": {}, + "readmePath": { + "en": "README.md" + }, + "component": { + "name": "rust_nix", + "subsystem": "thirdparty", + "adapted_system_type": [ + "standard" + ], + "deps": { + "components": [] + }, + "build": { + "sub_component": [], + "inner_kits": [ + { + "name": "//third_party/rust/crates/nix:lib" + } + ], + "test": [] + } + } +} \ No newline at end of file