添加Cargo.toml

Signed-off-by: fqwert <yanglv2@huawei.com>
This commit is contained in:
fqwert 2023-11-10 10:08:52 +08:00
parent 277100370e
commit 0219bf89f6
4 changed files with 61 additions and 15 deletions

15
.gitignore vendored Normal file
View File

@ -0,0 +1,15 @@
# Copyright (C) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
target
Cargo.lock

18
Cargo.toml Normal file
View File

@ -0,0 +1,18 @@
# Copyright (C) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[workspace]
resolver = "2"
members = [
"interfaces/innerkits/rust",
]

View File

@ -17,18 +17,10 @@ SUBSYSTEM_DIR = "//foundation/communication/ipc"
IPC_CORE_ROOT = "$SUBSYSTEM_DIR/ipc/native" IPC_CORE_ROOT = "$SUBSYSTEM_DIR/ipc/native"
ohos_rust_shared_library("ipc_rust") { ohos_rust_shared_library("ipc_rust") {
sources = [ crate_name = "ipc_rust"
"src/errors.rs", edition = "2021"
"src/ipc/macros.rs",
"src/ipc/mod.rs", sources = [ "src/lib.rs" ]
"src/ipc/remote_obj.rs",
"src/ipc/remote_stub.rs",
"src/ipc_binding.rs",
"src/lib.rs",
"src/parcel/mod.rs",
"src/parcel/parcelable.rs",
"src/parcel/types.rs",
]
deps = [ ":ipc_c" ] deps = [ ":ipc_c" ]
@ -37,9 +29,6 @@ ohos_rust_shared_library("ipc_rust") {
"ylong_runtime:ylong_runtime", "ylong_runtime:ylong_runtime",
] ]
crate_name = "ipc_rust"
crate_type = "dylib"
install_images = [ system_base_dir ] install_images = [ system_base_dir ]
subsystem_name = "communication" subsystem_name = "communication"
part_name = "ipc" part_name = "ipc"

View File

@ -0,0 +1,24 @@
# Copyright (C) 2021 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[package]
name = "ipc_rust"
version = "1.0.0"
edition = "2021"
license = "Apache-2.0"
description = "ipc"
repository = "https://gitee.com/openharmony/communication_ipc"
[dependencies]
ylong_runtime = { git = "https://gitee.com/openharmony/commonlibrary_rust_ylong_runtime", features = ["macros", "fs", "net", "sync", "time"] }
hilog_rust = { git = "https://gitee.com/openharmony/hiviewdfx_hilog.git" }