Skip to content

Commit 3c58aec

Browse files
authored
Merge pull request #3 from rustagir/DOCSP-30559-compat
DOCSP-30559: compatibility
2 parents 28b6d92 + 850369d commit 3c58aec

File tree

6 files changed

+134
-10
lines changed

6 files changed

+134
-10
lines changed

.gitignore

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
*.so
66
*.dylib
77

8-
# Test binary, built with `go test -c`
9-
*.test
10-
11-
# Output of the go coverage tool, specifically when used with LiteIDE
12-
*.out
13-
148
# Dependency directories (remove the comment below to include it)
159
# vendor/
1610

@@ -19,5 +13,4 @@
1913
.idea
2014

2115
# System
22-
2316
.DS_Store

snooty.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ sharedinclude_root = "https://raw.githubusercontent.com/10gen/docs-shared/main/"
1616
[constants]
1717
driver-long = "MongoDB Rust Driver"
1818
driver-short = "Rust driver"
19+
server = "MongoDB Server"
1920
docs-branch = "master" # always set this to the docs branch (i.e. master, v2.6, v2.5, etc.)
2021
version = "2.6.0" # always set this to the driver version (i.e. 2.6.0, 2.5.0, etc.)
2122
api = "https://docs.rs/mongodb/{+version+}/mongodb"

source/compatibility.txt

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
.. _rust-compatibility:
2+
3+
=============
4+
Compatibility
5+
=============
6+
7+
.. contents:: On this page
8+
:local:
9+
:backlinks: none
10+
:depth: 2
11+
:class: singlecol
12+
13+
MongoDB Compatibility
14+
---------------------
15+
16+
The following compatibility table specifies the versions of the
17+
{+driver-long+} you can use with each version of MongoDB.
18+
19+
The first column lists the driver version.
20+
21+
.. sharedinclude:: dbx/compatibility-table-legend.rst
22+
23+
.. include:: /includes/mongodb-compatibility-table-rust.rst
24+
25+
Language Compatibility
26+
----------------------
27+
28+
.. include:: /includes/language-compatibility-table-rust.rst
29+
30+
For more information on how to read the compatibility tables, see our guide on
31+
:ref:`MongoDB Compatibility Tables <about-driver-compatibility>`.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The {+driver-long+} requires Rust 1.57 or later.
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
.. list-table::
2+
:header-rows: 1
3+
:stub-columns: 1
4+
:class: compatibility-large
5+
6+
* - Rust Driver Version
7+
- MongoDB 7.0
8+
- MongoDB 6.0
9+
- MongoDB 5.0
10+
- MongoDB 4.4
11+
- MongoDB 4.2
12+
- MongoDB 4.0
13+
- MongoDB 3.6
14+
* - 2.6 [#2.5-2.6-limitation]_
15+
- ✓
16+
- ✓
17+
- ✓
18+
- ✓
19+
- ✓
20+
- ✓
21+
- ✓
22+
* - 2.5 [#2.5-2.6-limitation]_
23+
- ⊛
24+
- ⊛
25+
- ✓
26+
- ✓
27+
- ✓
28+
- ✓
29+
- ✓
30+
* - 2.4 [#2.4-limitation]_
31+
- ⊛
32+
- ⊛
33+
- ✓
34+
- ✓
35+
- ✓
36+
- ✓
37+
- ✓
38+
* - 2.3 [#2.2-2.3-limitation]_
39+
- ⊛
40+
- ⊛
41+
- ✓
42+
- ✓
43+
- ✓
44+
- ✓
45+
- ✓
46+
* - 2.2 [#2.2-2.3-limitation]_
47+
- ⊛
48+
- ⊛
49+
- ✓
50+
- ✓
51+
- ✓
52+
- ✓
53+
- ✓
54+
* - 2.1 [#2.1-limitation]_
55+
- ⊛
56+
- ⊛
57+
- ✓
58+
- ✓
59+
- ✓
60+
- ✓
61+
- ✓
62+
* - 2.0 [#2.0-limitation]_
63+
- ⊛
64+
- ⊛
65+
- ✓
66+
- ✓
67+
- ✓
68+
- ✓
69+
- ✓
70+
71+
The {+driver-short+} is not compatible with {+server+} versions
72+
older than 3.6.
73+
74+
.. [#2.5-2.6-limitation] This {+driver-short+} version does not support
75+
:manual:`OCSP </core/security-transport-encryption/#ocsp--online-certificate-status-protocol->`.
76+
77+
.. [#2.4-limitation] This {+driver-short+} version does not support Decimal128
78+
or :manual:`OCSP </core/security-transport-encryption/#ocsp--online-certificate-status-protocol->`.
79+
80+
.. [#2.2-2.3-limitation] This {+driver-short+} version does not support Decimal128,
81+
:ref:`Client-Side Field Level Encryption <manual-csfle-feature>`,
82+
:manual:`GridFS </core/gridfs/>`, or
83+
:manual:`OCSP </core/security-transport-encryption/#ocsp--online-certificate-status-protocol->`.
84+
85+
.. [#2.1-limitation] This {+driver-short+} version does not support Decimal128,
86+
:ref:`Client-Side Field Level Encryption <manual-csfle-feature>`,
87+
:manual:`GridFS </core/gridfs/>`,
88+
:manual:`OCSP </core/security-transport-encryption/#ocsp--online-certificate-status-protocol->`,
89+
or :ref:`change streams <changeStreams>`.
90+
91+
.. [#2.0-limitation] This {+driver-short+} version does not support Decimal128,
92+
:ref:`Client-Side Field Level Encryption <manual-csfle-feature>`,
93+
:manual:`GridFS </core/gridfs/>`,
94+
:manual:`OCSP </core/security-transport-encryption/#ocsp--online-certificate-status-protocol->`,
95+
:ref:`change streams <changeStreams>`,
96+
:manual:`Causal Consistency </core/causal-consistency-read-write-concerns>`, or
97+
:atlas:`Serverless Instances </create-database-deployment/#serverless-instances>`.

source/index.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
/fundamentals
1010
API Documentation <{+api+}/>
11+
/compatibility
1112
View the Source <https://github.com/mongodb/mongo-rust-driver>
1213

1314
..
@@ -18,7 +19,6 @@
1819
/faq
1920
/connection-troubleshooting
2021
/issues-and-help
21-
/compatibility
2222

2323
Introduction
2424
------------
@@ -78,8 +78,9 @@ Issues & Help
7878
Compatibility
7979
-------------
8080

81-
.. For the compatibility charts that show the recommended {+driver-short+} version
82-
.. for each MongoDB Server version, see :ref:`rust-compatibility`.
81+
To learn about the versions of the {+server+} and the Rust language
82+
that are compatible with each version of the {+driver-short+}, see
83+
:ref:`rust-compatibility`.
8384

8485
Learn
8586
------

0 commit comments

Comments
 (0)