| # Copyright 2024 The Fuchsia Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| # This library contains declarations of operations supported by Scudo on Fuchsia. |
| |
| import("//build/rust/rustc_library.gni") |
| |
| source_set("scudo") { |
| public = [ "mallopt.h" ] |
| visibility = [ |
| # Please discuss with the owners before adding a dependency. |
| "//src/developer/forensics/*", |
| "//src/developer/memory/metrics:*", |
| ] |
| } |
| |
| rustc_library("rust") { |
| name = "scudo" |
| visibility = [ |
| # Please discuss with the owners before adding a dependency. |
| "//src/devices/bin/driver-host/*", |
| |
| # Depends on this crate for mallopt binding |
| "//src/sys/component_manager/*", |
| ] |
| edition = "2021" |
| with_unit_tests = false |
| source_root = "lib.rs" |
| sources = [ "lib.rs" ] |
| } |