static_init 1.0.3

Safe mutable static and non const static initialization, and code execution at program startup/exit.
Documentation
Build #613430 2022-08-18T10:59:57.280894+00:00
# rustc version
rustc 1.65.0-nightly (9c20b2a8c 2022-08-17)# docs.rs version
docsrs 0.6.0 (24bf3b2 2022-08-08)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/static_init-1.0.3/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/static_init-1.0.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" "3" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--all-features" "-Z" "unstable-options" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20220817-1.65.0-nightly-9c20b2a8c\", \"--static-root-path\", \"/\", \"--cap-lints\", \"warn\", \"--disable-per-crate-search\", \"--extern-html-root-takes-precedence\"]" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-j3" "--target" "x86_64-unknown-linux-gnu", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] eefb40bb0f1ed1bbf20934e7c284ad0f636b736b73d37743c570d094f4d41911
[INFO] running `Command { std: "docker" "start" "-a" "eefb40bb0f1ed1bbf20934e7c284ad0f636b736b73d37743c570d094f4d41911", kill_on_drop: false }`
[INFO] [stderr]  Documenting static_init v1.0.3 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unresolved link to `dynamic`
[INFO] [stderr]     --> src/lazy.rs:1507:9
[INFO] [stderr]      |
[INFO] [stderr] 1507 |           #[doc=$doc]
[INFO] [stderr]      |           ^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 1612 | / impl_mut_lazy! {global lesser_locked_lazy, LesserLockedLazy,SyncSequentializer<G>,InitializedChecker,UnInited::<T>, SyncPhaseLocker, Sync...
[INFO] [stderr] 1613 | | "The actual type of mutable statics attributed with [#[dynamic]](macro@crate::dynamic) \
[INFO] [stderr] 1614 | | \
[INFO] [stderr] 1615 | | The method [from_generator](Self::from_generator) is unsafe because this kind of static \
[INFO] [stderr] 1616 | | can only safely be used through this attribute macros."
[INFO] [stderr] 1617 | | }
[INFO] [stderr]      | |_- in this macro invocation
[INFO] [stderr]      |
[INFO] [stderr]      = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
[INFO] [stderr]      = note: the link appears in this line:
[INFO] [stderr]              
[INFO] [stderr]              The actual type of mutable statics attributed with [#[dynamic]](macro@crate::dynamic) The method [from_generator](Self::from_generator) is unsafe because this kind of static can only safely be used through this attribute macros.
[INFO] [stderr]                                                                    ^^^^^^^
[INFO] [stderr]      = note: no item named `dynamic` in scope
[INFO] [stderr]      = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr]      = note: this warning originates in the macro `impl_mut_lazy` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: unresolved link to `dynamic`
[INFO] [stderr]    --> src/lazy.rs:535:9
[INFO] [stderr]     |
[INFO] [stderr] 535 |           #[doc=$doc]
[INFO] [stderr]     |           ^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 587 | / impl_lazy! {global LesserLazy,SyncSequentializer<G>,InitializedChecker,UnInited::<T>,SyncPhaseLocker,
[INFO] [stderr] 588 | | "The actual type of statics attributed with [#[dynamic]](macro@crate::dynamic). \
[INFO] [stderr] 589 | | \
[INFO] [stderr] 590 | | The method [from_generator](Self::from_generator) is unsafe because this kind of static \
[INFO] [stderr] 591 | | can only safely be used through this attribute macros."
[INFO] [stderr] 592 | | }
[INFO] [stderr]     | |_- in this macro invocation
[INFO] [stderr]     |
[INFO] [stderr]     = note: the link appears in this line:
[INFO] [stderr]             
[INFO] [stderr]             The actual type of statics attributed with [#[dynamic]](macro@crate::dynamic). The method [from_generator](Self::from_generator) is unsafe because this kind of static can only safely be used through this attribute macros.
[INFO] [stderr]                                                           ^^^^^^^
[INFO] [stderr]     = note: no item named `dynamic` in scope
[INFO] [stderr]     = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stderr]     = note: this warning originates in the macro `impl_lazy` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stderr] 
[INFO] [stderr] warning: `static_init` (lib doc) generated 2 warnings
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 1.30s
[INFO] running `Command { std: "docker" "inspect" "eefb40bb0f1ed1bbf20934e7c284ad0f636b736b73d37743c570d094f4d41911", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "eefb40bb0f1ed1bbf20934e7c284ad0f636b736b73d37743c570d094f4d41911", kill_on_drop: false }`
[INFO] [stdout] eefb40bb0f1ed1bbf20934e7c284ad0f636b736b73d37743c570d094f4d41911