Skip to content

Commit 68ddcb0

Browse files
authored
minor: include bson feature version in metadata (#1456)
1 parent b918cd6 commit 68ddcb0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cmap/establish/handshake.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,9 +285,10 @@ pub(crate) static BASE_CLIENT_METADATA: Lazy<ClientMetadata> = Lazy::new(|| Clie
285285
version: None,
286286
},
287287
platform: format!(
288-
"{} with {}",
288+
"{} with {} / bson-{}",
289289
rustc_version_runtime::version_meta().short_version_string,
290-
RUNTIME_NAME
290+
RUNTIME_NAME,
291+
if cfg!(feature = "bson-3") { "3" } else { "2" },
291292
),
292293
env: None,
293294
});

0 commit comments

Comments
 (0)