sqlx-pg-test-template 0.1.2

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

Build #3360646 2026-05-23 10:42:49

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.98.0-nightly (54333ff07 2026-05-22)

# docs.rs version docsrs 0.0.0 (dfb3f9ff56454bf392095ffb91bc746f8e9d1471 2026-05-23 )

# 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" "3657e5ccd75bac36a3abd8056a824b77779736ebf1c034b615b4dd365433bf90" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20260522-1.98.0-nightly-54333ff07\", \"--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" "3657e5ccd75bac36a3abd8056a824b77779736ebf1c034b615b4dd365433bf90", kill_on_drop: false }`