func_wrap 0.1.3

Helper crate for procedural macro authors that wish to duplicate some received function inside its body, so as to be able to wrap with some prologue, epilogue, cache-ing, etc.
Documentation
Build #318091 2020-11-23 00:10:10

# rustc version rustc 1.50.0-nightly (da3846948 2020-11-21)

# docs.rs version docsrs 0.6.0 (31c864e 2020-11-22)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/func_wrap-0.1.3/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/func_wrap-0.1.3/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/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" "3221225472" "--cpus" "2" "--user" "1001:1001" "--network" "none" "rustops/crates-build-env@sha256:6eabd152ff4036248d66efda456a36cb33d24b7291b33f25f75140726c88da35" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs\"" "-j2" "--" "-Z" "unstable-options" "--resource-suffix" "-20201121-1.50.0-nightly-da3846948" "--static-root-path" "/" "--cap-lints" "warn" "--disable-per-crate-search", kill_on_drop: false }` [INFO] [stdout] 431c6945db2193c97d1b223c042648eed24d3fc2661d41ef933b4f4c645e7942 [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" "431c6945db2193c97d1b223c042648eed24d3fc2661d41ef933b4f4c645e7942", kill_on_drop: false }` [INFO] [stderr] /opt/crates-build-env/entrypoint.sh: line 7: /etc/hosts: Permission denied [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Checking unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.50 [INFO] [stderr] Checking quote v1.0.7 [INFO] [stderr] Documenting func_wrap v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] warning: unneeded long form for URL [INFO] [stderr] --> src/lib.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 9 | //! See [https://docs.rs/require_unsafe_in_body] for a real-life example of [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://docs.rs/require_unsafe_in_body>` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(non_autolinks)]` on by default [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.99s [INFO] running `Command { std: "docker" "inspect" "431c6945db2193c97d1b223c042648eed24d3fc2661d41ef933b4f4c645e7942", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "431c6945db2193c97d1b223c042648eed24d3fc2661d41ef933b4f4c645e7942", kill_on_drop: false }` [INFO] [stdout] 431c6945db2193c97d1b223c042648eed24d3fc2661d41ef933b4f4c645e7942