Skip to content

Commit 81bfc89

Browse files
joeydewaaljayy-lmao
authored andcommitted
chore: expose bstr feature (launchbadge#3714)
1 parent 4932c1c commit 81bfc89

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

Cargo.toml

+2
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ _unstable-all-types = [
7272
"mac_address",
7373
"uuid",
7474
"bit-vec",
75+
"bstr"
7576
]
7677

7778
# Base runtime features without TLS
@@ -122,6 +123,7 @@ rust_decimal = ["sqlx-core/rust_decimal", "sqlx-macros?/rust_decimal", "sqlx-mys
122123
time = ["sqlx-core/time", "sqlx-macros?/time", "sqlx-mysql?/time", "sqlx-postgres?/time", "sqlx-sqlite?/time"]
123124
uuid = ["sqlx-core/uuid", "sqlx-macros?/uuid", "sqlx-mysql?/uuid", "sqlx-postgres?/uuid", "sqlx-sqlite?/uuid"]
124125
regexp = ["sqlx-sqlite?/regexp"]
126+
bstr = ["sqlx-core/bstr"]
125127

126128
[workspace.dependencies]
127129
# Core Crates

sqlx-core/src/types/mod.rs

+3
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ pub mod mac_address {
8585
pub use json::{Json, JsonRawValue, JsonValue};
8686
pub use text::Text;
8787

88+
#[cfg(feature = "bstr")]
89+
pub use bstr::{BStr, BString};
90+
8891
/// Indicates that a SQL type is supported for a database.
8992
///
9093
/// ## Compile-time verification

0 commit comments

Comments
 (0)