blob: 2fb9aab2d0500a3d25a3b2ae9f9c60b21b2cb5fa [file] [log] [blame]
Janis Danisevskis77d72042021-01-20 15:36:30 -08001// Copyright 2021, The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15rust_library {
16 name: "libvpnprofilestore-rust",
17 crate_name: "vpnprofilestore",
18 srcs: [
19 "lib.rs",
20 ],
21 rustlibs: [
22 "android.security.vpnprofilestore-rust",
23 "libanyhow",
24 "libbinder_rs",
Janis Danisevskis06891072021-02-11 10:28:17 -080025 "libkeystore2",
Janis Danisevskis77d72042021-01-20 15:36:30 -080026 "liblog_rust",
27 "librusqlite",
28 "libthiserror",
29 ],
30}
31
32rust_test {
33 name: "vpnprofilestore_test",
34 crate_name: "vpnprofilestore",
35 srcs: ["lib.rs"],
36 test_suites: ["general-tests"],
37 auto_gen_config: true,
38 rustlibs: [
39 "android.security.vpnprofilestore-rust",
40 "libanyhow",
41 "libbinder_rs",
Janis Danisevskis06891072021-02-11 10:28:17 -080042 "libkeystore2",
Janis Danisevskis77d72042021-01-20 15:36:30 -080043 "libkeystore2_test_utils",
44 "liblog_rust",
45 "librusqlite",
46 "libthiserror",
47 ],
48}