tomcrypt 0.1.0

Bindings to libtomcrypt, a fairly comprehensive, modular and portable cryptographic toolkit that provides developers with a vast array of well known published block ciphers, one-way hash functions, chaining modes, pseudo-random number generators, public key cryptography and a plethora of other routines.
Build #1497985 2024-11-05 21:49:35

Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.

# rustc version rustc 1.84.0-nightly (fbab78289 2024-11-04)

# docs.rs version docsrs 0.6.0 (fd0fad95 2024-11-04)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/tomcrypt-0.1.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/tomcrypt-0.1.0/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" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20241104-1.84.0-nightly-fbab78289\", \"--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] 2a68a2a7c407951ad846cceca248c52d01db27d2ad294a9ad66d2712f7d1805d [INFO] running `Command { std: "docker" "start" "-a" "2a68a2a7c407951ad846cceca248c52d01db27d2ad294a9ad66d2712f7d1805d", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op [INFO] [stderr] Documenting tomcrypt v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0659]: `c_int` is ambiguous [INFO] [stderr] --> src/lib.rs:50:69 [INFO] [stderr] | [INFO] [stderr] 50 | ::CStr::from_ptr(::ffi::error_to_string(*e as ::c_int)) [INFO] [stderr] | ^^^^^ ambiguous name [INFO] [stderr] | [INFO] [stderr] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stderr] note: `c_int` could refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use std::ffi::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_int` to disambiguate [INFO] [stderr] note: `c_int` could also refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use std::os::raw::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_int` to disambiguate [INFO] [stderr] [INFO] [stderr] error[E0659]: `c_int` is ambiguous [INFO] [stderr] --> src/lib.rs:70:16 [INFO] [stderr] | [INFO] [stderr] 70 | pub struct Rng(c_int); [INFO] [stderr] | ^^^^^ ambiguous name [INFO] [stderr] | [INFO] [stderr] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stderr] note: `c_int` could refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use std::ffi::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_int` to disambiguate [INFO] [stderr] note: `c_int` could also refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use std::os::raw::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_int` to disambiguate [INFO] [stderr] [INFO] [stderr] error[E0659]: `c_int` is ambiguous [INFO] [stderr] --> src/lib.rs:73:19 [INFO] [stderr] | [INFO] [stderr] 73 | pub struct Cipher(c_int); [INFO] [stderr] | ^^^^^ ambiguous name [INFO] [stderr] | [INFO] [stderr] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stderr] note: `c_int` could refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use std::ffi::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_int` to disambiguate [INFO] [stderr] note: `c_int` could also refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use std::os::raw::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_int` to disambiguate [INFO] [stderr] [INFO] [stderr] error[E0659]: `c_uint` is ambiguous [INFO] [stderr] --> src/lib.rs:96:36 [INFO] [stderr] | [INFO] [stderr] 96 | pub fn new(prng: Rng, keysize: c_uint) -> Result<Self> { [INFO] [stderr] | ^^^^^^ ambiguous name [INFO] [stderr] | [INFO] [stderr] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stderr] note: `c_uint` could refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use std::ffi::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_uint` to disambiguate [INFO] [stderr] note: `c_uint` could also refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use std::os::raw::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_uint` to disambiguate [INFO] [stderr] [INFO] [stderr] error[E0659]: `c_int` is ambiguous [INFO] [stderr] --> src/lib.rs:102:28 [INFO] [stderr] | [INFO] [stderr] 102 | keysize as c_int, [INFO] [stderr] | ^^^^^ ambiguous name [INFO] [stderr] | [INFO] [stderr] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stderr] note: `c_int` could refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use std::ffi::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_int` to disambiguate [INFO] [stderr] note: `c_int` could also refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use std::os::raw::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_int` to disambiguate [INFO] [stderr] [INFO] [stderr] error[E0659]: `c_ulong` is ambiguous [INFO] [stderr] --> src/lib.rs:115:31 [INFO] [stderr] | [INFO] [stderr] 115 | data.len() as c_ulong, [INFO] [stderr] | ^^^^^^^ ambiguous name [INFO] [stderr] | [INFO] [stderr] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stderr] note: `c_ulong` could refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use std::ffi::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] note: `c_ulong` could also refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use std::os::raw::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] [INFO] [stderr] error[E0659]: `c_ulong` is ambiguous [INFO] [stderr] --> src/lib.rs:126:40 [INFO] [stderr] | [INFO] [stderr] 126 | let mut len = buf.len() as c_ulong; [INFO] [stderr] | ^^^^^^^ ambiguous name [INFO] [stderr] | [INFO] [stderr] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stderr] note: `c_ulong` could refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use std::ffi::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] note: `c_ulong` could also refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use std::os::raw::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] [INFO] [stderr] error[E0659]: `c_ulong` is ambiguous [INFO] [stderr] --> src/lib.rs:142:40 [INFO] [stderr] | [INFO] [stderr] 142 | let mut len = buf.len() as c_ulong; [INFO] [stderr] | ^^^^^^^ ambiguous name [INFO] [stderr] | [INFO] [stderr] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stderr] note: `c_ulong` could refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use std::ffi::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] note: `c_ulong` could also refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use std::os::raw::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] [INFO] [stderr] error[E0659]: `c_ulong` is ambiguous [INFO] [stderr] --> src/lib.rs:162:34 [INFO] [stderr] | [INFO] [stderr] 162 | let mut len = len as c_ulong; [INFO] [stderr] | ^^^^^^^ ambiguous name [INFO] [stderr] | [INFO] [stderr] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stderr] note: `c_ulong` could refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use std::ffi::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] note: `c_ulong` could also refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use std::os::raw::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] [INFO] [stderr] error[E0659]: `c_ulong` is ambiguous [INFO] [stderr] --> src/lib.rs:191:51 [INFO] [stderr] | [INFO] [stderr] 191 | (header.as_ptr(), header.len() as c_ulong) [INFO] [stderr] | ^^^^^^^ ambiguous name [INFO] [stderr] | [INFO] [stderr] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stderr] note: `c_ulong` could refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use std::ffi::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] note: `c_ulong` could also refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use std::os::raw::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] [INFO] [stderr] error[E0659]: `c_ulong` is ambiguous [INFO] [stderr] --> src/lib.rs:200:30 [INFO] [stderr] | [INFO] [stderr] 200 | key.len() as c_ulong, [INFO] [stderr] | ^^^^^^^ ambiguous name [INFO] [stderr] | [INFO] [stderr] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stderr] note: `c_ulong` could refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use std::ffi::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] note: `c_ulong` could also refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use std::os::raw::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] [INFO] [stderr] error[E0659]: `c_ulong` is ambiguous [INFO] [stderr] --> src/lib.rs:202:32 [INFO] [stderr] | [INFO] [stderr] 202 | nonce.len() as c_ulong, [INFO] [stderr] | ^^^^^^^ ambiguous name [INFO] [stderr] | [INFO] [stderr] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stderr] note: `c_ulong` could refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use std::ffi::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] note: `c_ulong` could also refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use std::os::raw::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] [INFO] [stderr] error[E0659]: `c_ulong` is ambiguous [INFO] [stderr] --> src/lib.rs:217:31 [INFO] [stderr] | [INFO] [stderr] 217 | data.len() as c_ulong [INFO] [stderr] | ^^^^^^^ ambiguous name [INFO] [stderr] | [INFO] [stderr] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stderr] note: `c_ulong` could refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use std::ffi::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] note: `c_ulong` could also refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use std::os::raw::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] [INFO] [stderr] error[E0659]: `c_ulong` is ambiguous [INFO] [stderr] --> src/lib.rs:230:31 [INFO] [stderr] | [INFO] [stderr] 230 | data.len() as c_ulong [INFO] [stderr] | ^^^^^^^ ambiguous name [INFO] [stderr] | [INFO] [stderr] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stderr] note: `c_ulong` could refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use std::ffi::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] note: `c_ulong` could also refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use std::os::raw::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] [INFO] [stderr] error[E0659]: `c_ulong` is ambiguous [INFO] [stderr] --> src/lib.rs:240:38 [INFO] [stderr] | [INFO] [stderr] 240 | let mut len = tag_len as c_ulong; [INFO] [stderr] | ^^^^^^^ ambiguous name [INFO] [stderr] | [INFO] [stderr] = note: ambiguous because of multiple glob imports of a name in the same module [INFO] [stderr] note: `c_ulong` could refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | use std::ffi::*; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] note: `c_ulong` could also refer to the type alias imported here [INFO] [stderr] --> src/lib.rs:31:5 [INFO] [stderr] | [INFO] [stderr] 31 | use std::os::raw::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] = help: consider adding an explicit import of `c_ulong` to disambiguate [INFO] [stderr] [INFO] [stderr] warning: lint `unused_doc_comment` has been renamed to `unused_doc_comments` [INFO] [stderr] --> src/lib.rs:39:9 [INFO] [stderr] | [INFO] [stderr] 39 | #[allow(unused_doc_comment)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ help: use the new name: `unused_doc_comments` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(renamed_and_removed_lints)]` on by default [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0659`. [INFO] [stderr] warning: `tomcrypt` (lib doc) generated 1 warning [INFO] [stderr] error: could not document `tomcrypt` [INFO] running `Command { std: "docker" "inspect" "2a68a2a7c407951ad846cceca248c52d01db27d2ad294a9ad66d2712f7d1805d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a68a2a7c407951ad846cceca248c52d01db27d2ad294a9ad66d2712f7d1805d", kill_on_drop: false }` [INFO] [stdout] 2a68a2a7c407951ad846cceca248c52d01db27d2ad294a9ad66d2712f7d1805d