sqlx-pg-test-template 0.1.2

Faster version of #[sqlx-test] macro for PostgreSQL
Documentation

Build #3937169 2026-07-24 05:57:40

Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.

# error kind ExecutionFailed

# pre-build errors command failed: exit status: 101

# rustc version rustc 1.99.0-nightly (d0babd8b6 2026-07-15)

# docs.rs version docsrs 0.0.0 (f1b150f0cd76f7cabcd39e1f4790ba771b28b5c4 2026-07-19 )

# build log [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-w" "/opt/rustwide/workdir" "--user" "1001:1001" "2aa229e9ed6ab2fd8ff59872791f279b2cab77c41f2633cc5c7dcd8c3cd0b741" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2026-07-16" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=html-non-static-files\", \"--resource-suffix\", \"-20260715-1.99.0-nightly-d0babd8b6\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }` [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Checking sqlx-pg-test-template-runner v0.1.2 [INFO] [stderr] error[E0277]: dynamic SQL strings should be audited for possible injections [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-pg-test-template-runner-0.1.2/src/lib.rs:45:17 [INFO] [stderr] | [INFO] [stderr] 45 | sqlx::query(&format!("DROP DATABASE IF EXISTS {}", db_name)) [INFO] [stderr] | ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dynamic SQL string [INFO] [stderr] | | [INFO] [stderr] | required by a bound introduced by this call [INFO] [stderr] | [INFO] [stderr] = help: the trait `SqlSafeStr` is not implemented for `&String` [INFO] [stderr] = note: prefer literal SQL strings with bind parameters or `QueryBuilder` to add dynamic data to a query. [INFO] [stderr] [INFO] [stderr] To bypass this error, manually audit for potential injection vulnerabilities and wrap with `AssertSqlSafe()`. [INFO] [stderr] For details, see the docs for `SqlSafeStr`. [INFO] [stderr] [INFO] [stderr] = note: this trait is only implemented for `&'static str`, not all `&str` like the compiler error may suggest [INFO] [stderr] help: the trait `SqlSafeStr` is implemented for `&str` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.9.0/src/sql_str.rs:52:1 [INFO] [stderr] | [INFO] [stderr] 52 | impl SqlSafeStr for &'static str { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] note: required by a bound in `sqlx::query` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.9.0/src/query.rs:653:32 [INFO] [stderr] | [INFO] [stderr] 653 | pub fn query<'a, DB>(sql: impl SqlSafeStr) -> Query<'a, DB, <DB as Database>::Arguments> [INFO] [stderr] | ^^^^^^^^^^ required by this bound in `query` [INFO] [stderr] [INFO] [stderr] error[E0277]: dynamic SQL strings should be audited for possible injections [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-pg-test-template-runner-0.1.2/src/lib.rs:49:17 [INFO] [stderr] | [INFO] [stderr] 49 | sqlx::query(&format!( [INFO] [stderr] | _____-----------_^ [INFO] [stderr] | | | [INFO] [stderr] | | required by a bound introduced by this call [INFO] [stderr] 50 | | "CREATE DATABASE {} WITH TEMPLATE {}", [INFO] [stderr] 51 | | db_name, template_db_name [INFO] [stderr] 52 | | )) [INFO] [stderr] | |_____^ dynamic SQL string [INFO] [stderr] | [INFO] [stderr] = help: the trait `SqlSafeStr` is not implemented for `&String` [INFO] [stderr] = note: prefer literal SQL strings with bind parameters or `QueryBuilder` to add dynamic data to a query. [INFO] [stderr] [INFO] [stderr] To bypass this error, manually audit for potential injection vulnerabilities and wrap with `AssertSqlSafe()`. [INFO] [stderr] For details, see the docs for `SqlSafeStr`. [INFO] [stderr] [INFO] [stderr] = note: this trait is only implemented for `&'static str`, not all `&str` like the compiler error may suggest [INFO] [stderr] help: the trait `SqlSafeStr` is implemented for `&str` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.9.0/src/sql_str.rs:52:1 [INFO] [stderr] | [INFO] [stderr] 52 | impl SqlSafeStr for &'static str { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] note: required by a bound in `sqlx::query` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.9.0/src/query.rs:653:32 [INFO] [stderr] | [INFO] [stderr] 653 | pub fn query<'a, DB>(sql: impl SqlSafeStr) -> Query<'a, DB, <DB as Database>::Arguments> [INFO] [stderr] | ^^^^^^^^^^ required by this bound in `query` [INFO] [stderr] [INFO] [stderr] error[E0277]: dynamic SQL strings should be audited for possible injections [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-pg-test-template-runner-0.1.2/src/lib.rs:56:17 [INFO] [stderr] | [INFO] [stderr] 56 | sqlx::query(&format!( [INFO] [stderr] | _____-----------_^ [INFO] [stderr] | | | [INFO] [stderr] | | required by a bound introduced by this call [INFO] [stderr] 57 | | "COMMENT ON DATABASE {} IS '{}'", [INFO] [stderr] 58 | | db_name, module_path [INFO] [stderr] 59 | | )) [INFO] [stderr] | |_____^ dynamic SQL string [INFO] [stderr] | [INFO] [stderr] = help: the trait `SqlSafeStr` is not implemented for `&String` [INFO] [stderr] = note: prefer literal SQL strings with bind parameters or `QueryBuilder` to add dynamic data to a query. [INFO] [stderr] [INFO] [stderr] To bypass this error, manually audit for potential injection vulnerabilities and wrap with `AssertSqlSafe()`. [INFO] [stderr] For details, see the docs for `SqlSafeStr`. [INFO] [stderr] [INFO] [stderr] = note: this trait is only implemented for `&'static str`, not all `&str` like the compiler error may suggest [INFO] [stderr] help: the trait `SqlSafeStr` is implemented for `&str` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.9.0/src/sql_str.rs:52:1 [INFO] [stderr] | [INFO] [stderr] 52 | impl SqlSafeStr for &'static str { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] note: required by a bound in `sqlx::query` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.9.0/src/query.rs:653:32 [INFO] [stderr] | [INFO] [stderr] 653 | pub fn query<'a, DB>(sql: impl SqlSafeStr) -> Query<'a, DB, <DB as Database>::Arguments> [INFO] [stderr] | ^^^^^^^^^^ required by this bound in `query` [INFO] [stderr] [INFO] [stderr] error[E0277]: dynamic SQL strings should be audited for possible injections [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-pg-test-template-runner-0.1.2/src/lib.rs:99:17 [INFO] [stderr] | [INFO] [stderr] 99 | sqlx::query(&format!("DROP DATABASE IF EXISTS {} WITH (FORCE)", db_name)) [INFO] [stderr] | ----------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ dynamic SQL string [INFO] [stderr] | | [INFO] [stderr] | required by a bound introduced by this call [INFO] [stderr] | [INFO] [stderr] = help: the trait `SqlSafeStr` is not implemented for `&String` [INFO] [stderr] = note: prefer literal SQL strings with bind parameters or `QueryBuilder` to add dynamic data to a query. [INFO] [stderr] [INFO] [stderr] To bypass this error, manually audit for potential injection vulnerabilities and wrap with `AssertSqlSafe()`. [INFO] [stderr] For details, see the docs for `SqlSafeStr`. [INFO] [stderr] [INFO] [stderr] = note: this trait is only implemented for `&'static str`, not all `&str` like the compiler error may suggest [INFO] [stderr] help: the trait `SqlSafeStr` is implemented for `&str` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.9.0/src/sql_str.rs:52:1 [INFO] [stderr] | [INFO] [stderr] 52 | impl SqlSafeStr for &'static str { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] note: required by a bound in `sqlx::query` [INFO] [stderr] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/sqlx-core-0.9.0/src/query.rs:653:32 [INFO] [stderr] | [INFO] [stderr] 653 | pub fn query<'a, DB>(sql: impl SqlSafeStr) -> Query<'a, DB, <DB as Database>::Arguments> [INFO] [stderr] | ^^^^^^^^^^ required by this bound in `query` [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0277`. [INFO] [stderr] error: could not compile `sqlx-pg-test-template-runner` (lib) due to 4 previous errors [INFO] running `Command { std: "docker" "inspect" "2aa229e9ed6ab2fd8ff59872791f279b2cab77c41f2633cc5c7dcd8c3cd0b741", kill_on_drop: false }`