mirror of
https://gitee.com/openharmony/communication_ipc
synced 2024-11-26 17:41:17 +00:00
添加Cargo.toml
Signed-off-by: fqwert <yanglv2@huawei.com>
This commit is contained in:
parent
277100370e
commit
0219bf89f6
15
.gitignore
vendored
Normal file
15
.gitignore
vendored
Normal 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
18
Cargo.toml
Normal 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",
|
||||
]
|
@ -17,18 +17,10 @@ SUBSYSTEM_DIR = "//foundation/communication/ipc"
|
||||
IPC_CORE_ROOT = "$SUBSYSTEM_DIR/ipc/native"
|
||||
|
||||
ohos_rust_shared_library("ipc_rust") {
|
||||
sources = [
|
||||
"src/errors.rs",
|
||||
"src/ipc/macros.rs",
|
||||
"src/ipc/mod.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",
|
||||
]
|
||||
crate_name = "ipc_rust"
|
||||
edition = "2021"
|
||||
|
||||
sources = [ "src/lib.rs" ]
|
||||
|
||||
deps = [ ":ipc_c" ]
|
||||
|
||||
@ -37,9 +29,6 @@ ohos_rust_shared_library("ipc_rust") {
|
||||
"ylong_runtime:ylong_runtime",
|
||||
]
|
||||
|
||||
crate_name = "ipc_rust"
|
||||
crate_type = "dylib"
|
||||
|
||||
install_images = [ system_base_dir ]
|
||||
subsystem_name = "communication"
|
||||
part_name = "ipc"
|
||||
|
24
interfaces/innerkits/rust/Cargo.toml
Normal file
24
interfaces/innerkits/rust/Cargo.toml
Normal 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" }
|
Loading…
Reference in New Issue
Block a user