hf-hub 0.4.1

This crates aims ease the interaction with [huggingface](https://huggingface.co/) It aims to be compatible with [huggingface_hub](https://github.com/huggingface/huggingface_hub/) python package, but only implements a smaller subset of functions.
Documentation
Build #1604733 2024-12-31T17:45:56.441711+00:00
# rustc version
rustc 1.85.0-nightly (7f75bfa1a 2024-12-30)# docs.rs version
docsrs 0.6.0 (a9496dd3 2024-12-22)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/hf-hub-0.4.1/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/hf-hub-0.4.1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20241230-1.85.0-nightly-7f75bfa1a\", \"--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}/i686-pc-windows-msvc\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "i686-pc-windows-msvc", 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] 67fc4e37ded683e3a5becbc0501278482d9d2014a1f478cd1ec1327eaecc80df
[INFO] running `Command { std: "docker" "start" "-a" "67fc4e37ded683e3a5becbc0501278482d9d2014a1f478cd1ec1327eaecc80df", kill_on_drop: false }`
[INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: download
[INFO] [stderr]     If you want Rustdoc to scrape these examples, then add `doc-scrape-examples = true`
[INFO] [stderr]     to the [[example]] target configuration of at least one example.
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]    Compiling ring v0.17.8
[INFO] [stderr]     Checking schannel v0.1.27
[INFO] [stderr]     Checking tokio-util v0.7.13
[INFO] [stderr]     Checking icu_normalizer v1.5.0
[INFO] [stderr]     Checking tower-service v0.3.3
[INFO] [stderr]     Checking ryu v1.0.18
[INFO] [stderr]    Compiling winapi v0.3.9
[INFO] [stderr]     Checking spin v0.9.8
[INFO] [stderr]     Checking untrusted v0.9.0
[INFO] [stderr]    Compiling serde_json v1.0.134
[INFO] [stderr]    Compiling libc v0.2.169
[INFO] [stderr]     Checking windows-targets v0.48.5
[INFO] [stderr]     Checking zerocopy v0.7.35
[INFO] [stderr]     Checking native-tls v0.2.12
[INFO] [stderr]     Checking idna_adapter v1.2.0
[INFO] [stderr]     Checking h2 v0.4.7
[INFO] [stderr]     Checking idna v1.0.3
[INFO] [stderr]     Checking windows-result v0.2.0
[INFO] [stderr]     Checking log v0.4.22
[INFO] [stderr]     Checking adler2 v2.0.0
[INFO] [stderr]    Compiling portable-atomic v1.10.0
[INFO] [stderr]     Checking miniz_oxide v0.8.2
[INFO] [stderr]     Checking url v2.5.4
[INFO] [stderr]     Checking ppv-lite86 v0.2.20
[INFO] [stderr]     Checking windows-strings v0.1.0
[INFO] [stderr]     Checking tokio-native-tls v0.3.1
[INFO] [stderr] warning: ring@0.17.8: GNU compiler is not supported for this target
[INFO] [stderr] warning: ring@0.17.8: GNU compiler is not supported for this target
[INFO] [stderr] warning: ring@0.17.8: GNU compiler is not supported for this target
[INFO] [stderr] warning: ring@0.17.8: GNU compiler is not supported for this target
[INFO] [stderr] warning: ring@0.17.8: GNU compiler is not supported for this target
[INFO] [stderr] warning: ring@0.17.8: GNU compiler is not supported for this target
[INFO] [stderr] warning: ring@0.17.8: GNU compiler is not supported for this target
[INFO] [stderr] warning: ring@0.17.8: GNU compiler is not supported for this target
[INFO] [stderr] warning: ring@0.17.8: GNU compiler is not supported for this target
[INFO] [stderr] warning: ring@0.17.8: GNU compiler is not supported for this target
[INFO] [stderr] warning: ring@0.17.8: GNU compiler is not supported for this target
[INFO] [stderr] warning: ring@0.17.8: GNU compiler is not supported for this target
[INFO] [stderr] warning: ring@0.17.8: GNU compiler is not supported for this target
[INFO] [stderr] warning: ring@0.17.8: GNU compiler is not supported for this target
[INFO] [stderr] warning: ring@0.17.8: GNU compiler is not supported for this target
[INFO] [stderr] error: failed to run custom build command for `ring v0.17.8`
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/target/debug/build/ring-bd7ced25f7c0c01b/build-script-build` (exit status: 1)
[INFO] [stderr]   --- stdout
[INFO] [stderr]   cargo:rerun-if-env-changed=RING_PREGENERATE_ASM
[INFO] [stderr]   cargo:rustc-env=RING_CORE_PREFIX=ring_core_0_17_8_
[INFO] [stderr]   OPT_LEVEL = Some(0)
[INFO] [stderr]   OUT_DIR = Some(/opt/rustwide/target/i686-pc-windows-msvc/debug/build/ring-cdcb1d724a9a950a/out)
[INFO] [stderr]   TARGET = Some(i686-pc-windows-msvc)
[INFO] [stderr]   cargo:rerun-if-env-changed=VCINSTALLDIR
[INFO] [stderr]   VCINSTALLDIR = None
[INFO] [stderr]   HOST = Some(x86_64-unknown-linux-gnu)
[INFO] [stderr]   cargo:rerun-if-env-changed=CC_i686-pc-windows-msvc
[INFO] [stderr]   CC_i686-pc-windows-msvc = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CC_i686_pc_windows_msvc
[INFO] [stderr]   CC_i686_pc_windows_msvc = None
[INFO] [stderr]   cargo:rerun-if-env-changed=TARGET_CC
[INFO] [stderr]   TARGET_CC = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CC
[INFO] [stderr]   CC = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CROSS_COMPILE
[INFO] [stderr]   CROSS_COMPILE = None
[INFO] [stderr]   RUSTC_LINKER = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT
[INFO] [stderr]   RUSTC_WRAPPER = None
[INFO] [stderr]   cargo:warning=GNU compiler is not supported for this target
[INFO] [stderr]   cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS
[INFO] [stderr]   CRATE_CC_NO_DEFAULTS = None
[INFO] [stderr]   DEBUG = Some(true)
[INFO] [stderr]   CARGO_CFG_TARGET_FEATURE = Some(fxsr,sse,sse2,x87)
[INFO] [stderr]   cargo:rerun-if-env-changed=CFLAGS_i686-pc-windows-msvc
[INFO] [stderr]   CFLAGS_i686-pc-windows-msvc = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CFLAGS_i686_pc_windows_msvc
[INFO] [stderr]   CFLAGS_i686_pc_windows_msvc = None
[INFO] [stderr]   cargo:rerun-if-env-changed=TARGET_CFLAGS
[INFO] [stderr]   TARGET_CFLAGS = None
[INFO] [stderr]   cargo:rerun-if-env-changed=CFLAGS
[INFO] [stderr]   CFLAGS = None
[INFO] [stderr]   CARGO_ENCODED_RUSTFLAGS = Some()
[INFO] [stderr]   cargo:warning=GNU compiler is not supported for this target
[INFO] [stderr]   cargo:warning=GNU compiler is not supported for this target
[INFO] [stderr]   cargo:warning=GNU compiler is not supported for this target
[INFO] [stderr]   cargo:warning=GNU compiler is not supported for this target
[INFO] [stderr]   cargo:warning=GNU compiler is not supported for this target
[INFO] [stderr]   cargo:warning=GNU compiler is not supported for this target
[INFO] [stderr]   cargo:warning=GNU compiler is not supported for this target
[INFO] [stderr]   cargo:warning=GNU compiler is not supported for this target
[INFO] [stderr]   cargo:warning=GNU compiler is not supported for this target
[INFO] [stderr]   cargo:warning=GNU compiler is not supported for this target
[INFO] [stderr]   cargo:warning=GNU compiler is not supported for this target
[INFO] [stderr]   cargo:warning=GNU compiler is not supported for this target
[INFO] [stderr]   cargo:warning=GNU compiler is not supported for this target
[INFO] [stderr]   cargo:warning=GNU compiler is not supported for this target
[INFO] [stderr] 
[INFO] [stderr]   --- stderr
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stderr]   error occurred in cc-rs: Failed to find tool. Is `lib.exe` installed?
[INFO] [stderr] 
[INFO] [stderr] 
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "67fc4e37ded683e3a5becbc0501278482d9d2014a1f478cd1ec1327eaecc80df", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "67fc4e37ded683e3a5becbc0501278482d9d2014a1f478cd1ec1327eaecc80df", kill_on_drop: false }`
[INFO] [stdout] 67fc4e37ded683e3a5becbc0501278482d9d2014a1f478cd1ec1327eaecc80df