test-harness 0.2.0

a little test macro to wrap your tests with an arbitrary setup/teardown function
Documentation
Build #1077263 2024-01-02T06:40:21.916076+00:00
# rustc version
rustc 1.77.0-nightly (e51e98dde 2023-12-31)# docs.rs version
docsrs 0.6.0 (7ef5327a 2023-12-17)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/test-harness-0.2.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/test-harness-0.2.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "-Z" "unstable-options" "--config" "build.rustdocflags=[\"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20231231-1.77.0-nightly-e51e98dde\", \"--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", kill_on_drop: false }`
[INFO] [stdout] 3a8fc94fcd7afd12cb651bbd580dc74f34f2d64974c4410d50992f047ab9fdb1
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "3a8fc94fcd7afd12cb651bbd580dc74f34f2d64974c4410d50992f047ab9fdb1", kill_on_drop: false }`
[INFO] [stderr] warning: Target filter specified, but no targets matched. This is a no-op
[INFO] [stderr]  Documenting test-harness v0.2.0 (/opt/rustwide/workdir)
[INFO] [stderr] warning: `test` is both a function and an attribute macro
[INFO] [stderr]   --> src/lib.rs:12:1
[INFO] [stderr]    |
[INFO] [stderr] 12 | #![doc = include_str!("../README.md")]
[INFO] [stderr]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: the link appears in this line:
[INFO] [stderr]            
[INFO] [stderr]            ## Drop down to standard #[test]
[INFO] [stderr]                                       ^^^^
[INFO] [stderr]    = note: ambiguous link
[INFO] [stderr]    = help: to link to the function, add parentheses: test()
[INFO] [stderr]    = help: to link to the attribute macro, prefix with `macro@`: macro@test
[INFO] [stderr]    = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `test` is both a function and an attribute macro
[INFO] [stderr]   --> src/lib.rs:49:84
[INFO] [stderr]    |
[INFO] [stderr] 49 | /// currently supports #[test_harness::test(harness = path::to::harness_fn)] and #[test]
[INFO] [stderr]    |                                                                                    ^^^^ ambiguous link
[INFO] [stderr]    |
[INFO] [stderr] help: to link to the function, add parentheses
[INFO] [stderr]    |
[INFO] [stderr] 49 | /// currently supports #[test_harness::test(harness = path::to::harness_fn)] and #[test()]
[INFO] [stderr]    |                                                                                        ++
[INFO] [stderr] help: to link to the attribute macro, prefix with `macro@`
[INFO] [stderr]    |
[INFO] [stderr] 49 | /// currently supports #[test_harness::test(harness = path::to::harness_fn)] and #[macro@test]
[INFO] [stderr]    |                                                                                    ++++++
[INFO] [stderr] 
[INFO] [stderr] warning: `test-harness` (lib doc) generated 2 warnings
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 0.29s
[INFO] [stderr]    Generated /opt/rustwide/target/doc/test_harness/index.html
[INFO] running `Command { std: "docker" "inspect" "3a8fc94fcd7afd12cb651bbd580dc74f34f2d64974c4410d50992f047ab9fdb1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3a8fc94fcd7afd12cb651bbd580dc74f34f2d64974c4410d50992f047ab9fdb1", kill_on_drop: false }`
[INFO] [stdout] 3a8fc94fcd7afd12cb651bbd580dc74f34f2d64974c4410d50992f047ab9fdb1