safetensors 0.2.7

Provides functions to read and write safetensors which aim to be safer than their PyTorch counterpart. The format is 8 bytes which is an unsized int, being the size of a JSON header, the JSON header refers the `dtype` the `shape` and `data_offsets` which are the offsets for the values in the rest of the file.
Documentation
Build #709876 2022-12-27T09:28:38.035915+00:00
# rustc version
rustc 1.68.0-nightly (88c58e3c2 2022-12-26)
# docs.rs version
docsrs 0.6.0 (6c24e02a 2022-12-25)

# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/safetensors-0.2.7/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/safetensors-0.2.7/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:9db6adea6fe108e8475f2314ed6ea91319efc655499b550640da2809d69ffe6a" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "-Z" "unstable-options" "--config" "build.rustdocflags=[\"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20221226-1.68.0-nightly-88c58e3c2\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--disable-per-crate-search\", \"--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" "-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] ad84cd697c76f619695bf37bc520e24924fb36c1aa12b6510ed9b496be677c4e
[INFO] running `Command { std: "docker" "start" "-a" "ad84cd697c76f619695bf37bc520e24924fb36c1aa12b6510ed9b496be677c4e", kill_on_drop: false }`
[INFO] [stderr] warning: Target filter specified, but no targets matched. This is a no-op
[INFO] [stderr]  Documenting safetensors v0.2.7 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 0.78s
[INFO] running `Command { std: "docker" "inspect" "ad84cd697c76f619695bf37bc520e24924fb36c1aa12b6510ed9b496be677c4e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ad84cd697c76f619695bf37bc520e24924fb36c1aa12b6510ed9b496be677c4e", kill_on_drop: false }`
[INFO] [stdout] ad84cd697c76f619695bf37bc520e24924fb36c1aa12b6510ed9b496be677c4e