chore: expose bstr feature (#3714)

This commit is contained in:
joeydewaal 2025-02-04 19:53:05 +01:00 committed by GitHub
parent 91291beb23
commit f42561b8d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View File

@ -72,6 +72,7 @@ _unstable-all-types = [
"mac_address",
"uuid",
"bit-vec",
"bstr"
]
# Base runtime features without TLS
@ -122,6 +123,7 @@ rust_decimal = ["sqlx-core/rust_decimal", "sqlx-macros?/rust_decimal", "sqlx-mys
time = ["sqlx-core/time", "sqlx-macros?/time", "sqlx-mysql?/time", "sqlx-postgres?/time", "sqlx-sqlite?/time"]
uuid = ["sqlx-core/uuid", "sqlx-macros?/uuid", "sqlx-mysql?/uuid", "sqlx-postgres?/uuid", "sqlx-sqlite?/uuid"]
regexp = ["sqlx-sqlite?/regexp"]
bstr = ["sqlx-core/bstr"]
[workspace.dependencies]
# Core Crates

View File

@ -85,6 +85,9 @@ pub mod mac_address {
pub use json::{Json, JsonRawValue, JsonValue};
pub use text::Text;
#[cfg(feature = "bstr")]
pub use bstr::{BStr, BString};
/// Indicates that a SQL type is supported for a database.
///
/// ## Compile-time verification