Skip to content

Commit 9cd2992

Browse files
Protocol Buffer TeamLogofile
authored andcommitted
This documentation change includes the following:
* Fixes the rendering of the Version Support page * Addresses metadata issues in the Rust Generated Code topic * Adds a topic about Abseil support in C++ PiperOrigin-RevId: 696879537 Change-Id: Iff4cc715881fdf30ebbc2b47d2686551661a4ff9
1 parent 388fd37 commit 9cd2992

File tree

4 files changed

+350
-286
lines changed

4 files changed

+350
-286
lines changed

content/includes/version-tables.css

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,32 +93,38 @@ table.version-chart td.active {
9393
}
9494

9595
/* latest release column */
96+
/*
97+
* How to advance the selection of the latest release:
98+
* Replace class 'y24q3' in the following selectors with 'y24q4' (the class
99+
* referring to the quarter of the next release). Please also update this
100+
* instruction as a courtesy to the next maintainer.
101+
*/
96102

97103
/* visually replace 'yyQq' heading with string 'Latest' */
98-
table.version-chart th.latest-release span {
104+
table.version-chart th.y24q3 span {
99105
display: none;
100106
}
101-
table.version-chart th.latest-release::after {
107+
table.version-chart th.y24q3::after {
102108
content: "Latest"
103109
}
104110

105111
/* draw a focus rectangle around the latest release column */
106-
table.version-chart th.latest-release {
112+
table.version-chart th.y24q3 {
107113
border-top: 2px solid #e06666 !important;
108114
border-left: 2px solid #e06666 !important;
109115
border-right: 2px solid #e06666 !important;
110116
}
111-
table.version-chart td.latest-release {
117+
table.version-chart td.y24q3 {
112118
font-weight: bold;
113119
border-left: 2px solid #e06666 !important;
114120
border-right: 2px solid #e06666 !important;
115121
}
116-
table.version-chart tr:last-child td.latest-release {
122+
table.version-chart tr:last-child td.y24q3 {
117123
border-bottom: 2px solid #e06666 !important;
118124
}
119125

120126
/* future release columns */
121-
table.version-chart td:not(:has(~ .latest-release)):not(.latest-release) {
127+
table.version-chart td:not(:has(~ .y24q3)):not(.y24q3) {
122128
font-style: italic;
123129
}
124130

content/reference/cpp/abseil.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
+++
2+
title = "Asbseil Support"
3+
weight = 530
4+
linkTitle = "Asbseil Support"
5+
description = "The C++ implementation of Protocol Buffers has an explicit dependency on Abseil."
6+
type = "docs"
7+
+++
8+
9+
In [version 22.x](/news/v22#abseil-dep), C++ protobuf
10+
added an explicit dependency on Abseil.
11+
12+
## Bazel Support {#bazel}
13+
14+
If you are using Bazel, to determine the version of Abseil that your protobuf
15+
version supports, you can use the `bazel mod` command:
16+
17+
```shell
18+
$ bazel mod deps abseil-cpp --enable_bzlmod
19+
20+
└───[email protected]
21+
├───[email protected]
22+
├───[email protected]
23+
└───[email protected]
24+
```
25+
26+
`bazel mod graph` produces the full output:
27+
28+
```shell
29+
$ bazel mod graph --enable_bzlmod
30+
31+
├───[email protected]
32+
│ ├───[email protected] (*)
33+
│ ├───[email protected] (*)
34+
│ └───[email protected] (*)
35+
├───[email protected]
36+
│ └───[email protected] (*)
37+
├───[email protected]
38+
│ ├───[email protected] (*)
39+
│ └───[email protected] (*)
40+
├───[email protected]
41+
│ ├───[email protected] (*)
42+
│ ├───[email protected] (*)
43+
│ └───re2@2024-07-02
44+
...
45+
```
46+
47+
## CMake Support {#cmake}
48+
49+
Our CMake support is best-effort compared to Bazel. To check for support, try
50+
the following steps:
51+
52+
1. Run the `cmake .` command.
53+
2. Open `_deps/absl-src/CMakeLists.txt`.
54+
55+
Look for the following line:
56+
57+
```
58+
project(absl LANGUAGES CXX VERSION 20240722)
59+
set(ABSL_SOVERSION "2407.0.0")
60+
include(CTest)
61+
```

content/reference/rust/rust-generated.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
title = "Rust Generated Code Guide"
33
weight = 782
44
linkTitle = "Generated Code Guide"
5+
toc_hide = true
56
description = "Describes the API of message objects that the protocol buffer compiler generates for any given protocol definition."
67
type = "docs"
7-
toc_hide = "true"
88
+++
99

1010
This page describes exactly what Rust code the protocol buffer compiler

0 commit comments

Comments
 (0)