Explicitly depend on //absl/strings:string_view where used. Traditionally, `//absl/strings` provided string_view.h, but it is its own target now and we should depend on it whenever we include `absl/strings/string_view.h`, see comment here: https://github.com/abseil/abseil-cpp/blob/a690167a55b9e210b7884d311759977c0f5669c9/absl/strings/BUILD.bazel#L94-L99 Apply this strict reading to absl itself. In some cases, this also allowed to remove a dependency on the bigger `//absl/strings` library. PiperOrigin-RevId: 971476945 Change-Id: I28102d5da0017379276a2654374ccf745ba78fad
diff --git a/absl/profiling/BUILD.bazel b/absl/profiling/BUILD.bazel index e958307..c5b49eb 100644 --- a/absl/profiling/BUILD.bazel +++ b/absl/profiling/BUILD.bazel
@@ -163,6 +163,7 @@ "//absl/container:hash_container_defaults", "//absl/strings", "//absl/strings:str_format", + "//absl/strings:string_view", "//absl/types:span", ], )
diff --git a/absl/profiling/CMakeLists.txt b/absl/profiling/CMakeLists.txt index 6441dae..3842331 100644 --- a/absl/profiling/CMakeLists.txt +++ b/absl/profiling/CMakeLists.txt
@@ -108,6 +108,7 @@ absl::raw_logging_internal absl::flat_hash_map absl::btree + absl::string_view absl::strings absl::str_format absl::span