commit | ed7c8c66f085a3630f4c584ddf2fdb9f1a052c80 | [log] [tgz] |
---|---|---|
author | danakj <danakj@chromium.org> | Mon Mar 07 15:47:44 2022 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Mar 07 15:47:44 2022 |
tree | d0a334df2e833295dcdcd9a07bc3a75a0c89b302 | |
parent | d0c91737222f8b397952e8336869279bbd8f40d9 [diff] |
Support GN public_deps for the Rust part of a mixed C++-Rust target They are supported like other GN variables, by forwarding the rs_public_deps variable through to the public_deps of the generated rust_library(). This is important for component builds as a shared library links all its `deps` and users of the shared library won't have access to them unless they appear in `public_deps` (or the user adds them to their own deps). This is similar to C++ where gn check enforces that headers are not used unless the target has a dependency on the header's target, either directly or through public deps. In the future, with GN changes, GN will enforce and support this correctly for Rust as well. R=lukasza@chromium.org Bug: 1296156 Change-Id: Ibaaf1f05c8338acac60ab351d077ef27cab5cab7 Cq-Include-Trybots: luci.chromium.try:android-rust-arm-rel,linux-rust-x64-rel Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3503825 Reviewed-by: Ćukasz Anforowicz <lukasza@chromium.org> Commit-Queue: danakj <danakj@chromium.org> Auto-Submit: danakj <danakj@chromium.org> Cr-Commit-Position: refs/heads/main@{#978279}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.