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 #1868140 2025-03-14 22:59:36

# rustc version rustc 1.87.0-nightly (cbfdf0b01 2025-03-13)

# docs.rs version docsrs 0.6.0 (004a02c4 2025-03-05)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/secure-string-0.3.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/secure-string-0.3.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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250313-1.87.0-nightly-cbfdf0b01\", \"--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: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 81c73d2cf7013323dfa9c4884aeea4fe61983bb82a4c0d4f80126248548f7759 [INFO] running `Command { std: "docker" "start" "-a" "81c73d2cf7013323dfa9c4884aeea4fe61983bb82a4c0d4f80126248548f7759", 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.38s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/secure_string/index.html [INFO] running `Command { std: "docker" "inspect" "81c73d2cf7013323dfa9c4884aeea4fe61983bb82a4c0d4f80126248548f7759", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81c73d2cf7013323dfa9c4884aeea4fe61983bb82a4c0d4f80126248548f7759", kill_on_drop: false }` [INFO] [stdout] 81c73d2cf7013323dfa9c4884aeea4fe61983bb82a4c0d4f80126248548f7759