blob: c4d4785d09f5e0b21070e8b0ecc71945500e4894 [file] [log] [blame]
# Copyright 2021 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/rust/rust_executable.gni")
import("//build/rust/rust_static_library.gni")
# The exe depends on lib v1.But it also transitively depends on lib v2.
# The code in the exe should use v1, and the code in the transitive lib should
# use v2.
rust_executable("test_rust_multiple_dep_versions_exe") {
crate_root = "main.rs"
sources = [ "main.rs" ]
deps = [
":transitive_v2",
"//build/rust/tests/test_rust_multiple_dep_versions_exe/v1:test_lib",
]
}
rust_static_library("transitive_v2") {
crate_root = "transitive_lib.rs"
sources = [ "transitive_lib.rs" ]
deps =
[ "//build/rust/tests/test_rust_multiple_dep_versions_exe/v2:test_lib" ]
}