• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2022 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
15package {
16    default_team: "trendy_team_android_rust",
17    default_applicable_licenses: ["Android-Apache-2.0"],
18}
19
20rust_defaults {
21    name: "cargo_embargo.defaults",
22    crate_root: "src/main.rs",
23    // Disable LTO for faster builds. Don't need the performance here.
24    flags: ["-C lto=off"],
25    rustlibs: [
26        "libanyhow",
27        "libclap",
28        "libenv_logger",
29        "libglob",
30        "liblog_rust",
31        "libnix",
32        "libonce_cell",
33        "libregex",
34        "libserde",
35        "libserde_json",
36        "libtempfile",
37    ],
38}
39
40rust_binary_host {
41    name: "cargo_embargo",
42    defaults: ["cargo_embargo.defaults"],
43}
44
45rust_test_host {
46    name: "cargo_embargo.test",
47    defaults: ["cargo_embargo.defaults"],
48    rustlibs: ["libgoogletest_rust"],
49    test_config: "AndroidTest.xml",
50    data: ["testdata/**/*"],
51}
52