secure-string 0.3.0

A data type suitable for storing sensitive information such as passwords and private keys in memory, featuring constant time equality, mlock and zeroing out.
Documentation

Build #4143566 2026-08-16 02:23:44

# rustc version rustc 1.100.0-nightly (67854e511 2026-08-15)

# docs.rs version docsrs 0.0.0 (b67fb7d1993e3c70fff4d05e2bc482bd9d0d774f 2026-08-13 )

# 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" "b194e5c14e3e844d19f8441da7087e898ff2d6e3a17c08a631ae261b0b767e93" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=html-non-static-files\", \"--resource-suffix\", \"-20260815-1.100.0-nightly-67854e511\", \"--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\"" "-j6" "--target" "x86_64-unknown-linux-gnu" "-Zrustdoc-scrape-examples", kill_on_drop: false }` [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Documenting secure-string v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: unexpected `cfg` condition value: `pre` [INFO] [stderr] --> src/secure_types/boxed.rs:91:16 [INFO] [stderr] | [INFO] [stderr] 91 | #[cfg_attr(feature = "pre", pre::pre)] [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `serde` [INFO] [stderr] = help: consider adding `pre` as a feature in `Cargo.toml` [INFO] [stderr] = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `pre` [INFO] [stderr] --> src/secure_types/string.rs:12:16 [INFO] [stderr] | [INFO] [stderr] 12 | #[cfg_attr(feature = "pre", pre::pre)] [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `serde` [INFO] [stderr] = help: consider adding `pre` as a feature in `Cargo.toml` [INFO] [stderr] = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `pre` [INFO] [stderr] --> src/secure_types/string.rs:30:16 [INFO] [stderr] | [INFO] [stderr] 30 | #[cfg_attr(feature = "pre", pre::pre)] [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `serde` [INFO] [stderr] = help: consider adding `pre` as a feature in `Cargo.toml` [INFO] [stderr] = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `pre` [INFO] [stderr] --> src/secure_types/string.rs:48:16 [INFO] [stderr] | [INFO] [stderr] 48 | #[cfg_attr(feature = "pre", pre::pre)] [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `serde` [INFO] [stderr] = help: consider adding `pre` as a feature in `Cargo.toml` [INFO] [stderr] = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `pre` [INFO] [stderr] --> src/secure_types/string.rs:15:13 [INFO] [stderr] | [INFO] [stderr] 15 | feature = "pre", [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `serde` [INFO] [stderr] = help: consider adding `pre` as a feature in `Cargo.toml` [INFO] [stderr] = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `pre` [INFO] [stderr] --> src/secure_types/string.rs:33:13 [INFO] [stderr] | [INFO] [stderr] 33 | feature = "pre", [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `serde` [INFO] [stderr] = help: consider adding `pre` as a feature in `Cargo.toml` [INFO] [stderr] = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: unexpected `cfg` condition value: `pre` [INFO] [stderr] --> src/secure_types/string.rs:54:13 [INFO] [stderr] | [INFO] [stderr] 54 | feature = "pre", [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: expected values for `feature` are: `serde` [INFO] [stderr] = help: consider adding `pre` as a feature in `Cargo.toml` [INFO] [stderr] = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration [INFO] [stderr] [INFO] [stderr] warning: `secure-string` (lib doc) generated 7 warnings [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/secure_string/index.html [INFO] running `Command { std: "docker" "inspect" "b194e5c14e3e844d19f8441da7087e898ff2d6e3a17c08a631ae261b0b767e93", kill_on_drop: false }`