Skip to content

Commit 7b81cda

Browse files
authored
DOCSP-30508: whats new (#94)
1 parent 323007d commit 7b81cda

File tree

2 files changed

+114
-5
lines changed

2 files changed

+114
-5
lines changed

source/index.txt

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

99
/quick-start
1010
/quick-reference
11+
/whats-new
1112
/usage-examples
1213
/fundamentals
1314
API Documentation <{+api+}/>
@@ -18,7 +19,6 @@
1819
View the Source <https://github.com/mongodb/mongo-rust-driver>
1920

2021
..
21-
/whats-new
2222
/faq
2323

2424
Introduction
@@ -41,11 +41,11 @@ Quick Reference
4141
See driver syntax examples for common MongoDB commands in the
4242
:ref:`Quick Reference <rust-quick-reference>` section.
4343

44-
.. What's New
45-
.. ----------
44+
What's New
45+
----------
4646

47-
.. For a list of new features and changes in each version, see the
48-
.. :ref:`rust-whats-new` section.
47+
To view a list of new features and changes in each version, see the
48+
:ref:`rust-whats-new` section.
4949

5050
Usage Examples
5151
--------------

source/whats-new.txt

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
.. _rust-whats-new:
2+
3+
==========
4+
What's New
5+
==========
6+
7+
.. facet::
8+
:name: genre
9+
:values: reference
10+
11+
.. meta::
12+
:keywords: update, new feature, deprecation, upgrade
13+
14+
.. contents:: On this page
15+
:local:
16+
:backlinks: none
17+
:depth: 1
18+
:class: singlecol
19+
20+
Learn about new features, improvements, and fixes introduced in the
21+
following versions of the {+driver-long+}:
22+
23+
* :ref:`Version 2.7 <rust-version-2.7>`
24+
* :ref:`Version 2.6 <rust-version-2.6>`
25+
26+
.. _rust-version-2.7:
27+
28+
What's New in 2.7
29+
-----------------
30+
31+
The {+driver-short+} v2.7 release includes the following features,
32+
improvements, and fixes:
33+
34+
- Adds the ``human_readable_serialization`` option to the
35+
``CollectionOptions`` struct. This option instructs the
36+
driver to serialize values passed to CRUD methods as a human-readable
37+
format. The default value of this option is ``false``.
38+
39+
.. warning::
40+
41+
If you set the value of ``human_readable_serialization`` to
42+
``true``, your insert operations might run more slowly.
43+
44+
- Adds the ``run_cursor_command()`` method to run a database command and
45+
retrieve the response as a ``Cursor`` type. To learn more, see the
46+
:ref:`rust-run-command` guide.
47+
48+
- Adds SDAM event logging when you use the ``tracing-unstable`` feature
49+
flag.
50+
51+
- Adds the following configurations for ``Client`` and connection management:
52+
53+
- ``max_connecting``: an option that you can set in a ``ClientOptions``
54+
struct to specify how many connections you can establish in
55+
parallel. To learn more about this option, see
56+
:ref:`rust-performance-pool` in the Performance Considerations
57+
guide.
58+
59+
- ``Client::warm_connection_pool()``: a method that you can use to create
60+
new connections in the connection pool to provide more
61+
predictable performance. When you use this method, the driver
62+
attempts to create connections up to the number specified in the
63+
``min_pool_size`` setting.
64+
65+
- ``Client::shutdown()``: a method that you can use to stop background
66+
tasks and wait for handlers to drop. This method can be helpful if
67+
you use event handlers to reference external resources, as these
68+
handlers might be used in tasks even after the ``Client`` is
69+
closed.
70+
71+
To learn more about this release, see the
72+
`v2.7.0 Release Highlights
73+
<https://github.com/mongodb/mongo-rust-driver/releases/tag/v2.7.0>`__
74+
on Github.
75+
76+
.. _rust-version-2.6:
77+
78+
What's New in 2.6
79+
-----------------
80+
81+
The {+driver-short+} v2.6 release includes the following features,
82+
improvements, and fixes:
83+
84+
- Supports AWS Identity and Access Management
85+
(IAM) roles for service accounts, such as Elastic Kubernetes
86+
Service (EKS) accounts.
87+
88+
- Supports GCP-attached service accounts when using the Cloud Key
89+
Management System (KMS).
90+
91+
- Supports fetching on-demand CSFLE credentials from the Azure KMS.
92+
93+
- Implements the ``FromStr`` trait for the ``Namespace`` struct.
94+
This change allows you to parse a string that includes a database and
95+
collection name, such as ``"testdb.testcollection"`` into a
96+
``Namespace`` instance.
97+
98+
- Includes the ``server_id`` in a ``ConnectionInfo`` struct as an
99+
``i64`` type.
100+
101+
- Removes most type constraints on values referenced by a ``Cursor``.
102+
103+
- Updates the ``libmongocrypt`` version in the driver dependencies in
104+
order to use the Queryable Encryption feature with equality queries.
105+
106+
To learn more about this release, see the
107+
`v2.6.0 Release Highlights
108+
<https://github.com/mongodb/mongo-rust-driver/releases/tag/v2.6.0>`__
109+
on Github.

0 commit comments

Comments
 (0)