tensor_compute 0.1.0

A Tensor computing library for Rust
Documentation
Build #2430640 2025-08-20 20:41:53
# rustc version
rustc 1.91.0-nightly (05f5a58e8 2025-08-19)# docs.rs version
docsrs 0.6.0 (e18d034e 2025-07-29)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/tensor_compute-0.1.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/tensor_compute-0.1.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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250819-1.91.0-nightly-05f5a58e8\", \"--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] cf4a7aaf0aba8e1a053bf0c46fefb603b5502769a9226de17b8a6558e4fa0190
[INFO] running `Command { std: "docker" "start" "-a" "cf4a7aaf0aba8e1a053bf0c46fefb603b5502769a9226de17b8a6558e4fa0190", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `crate::prelude::CpuTransferable`
[INFO] [stderr]  --> src/tensors/gpu_tensor/gpu_ops/bmm/tests.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use crate::prelude::CpuTransferable;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::GpuTensor`
[INFO] [stderr]  --> src/tensors/gpu_tensor/gpu_ops/bmm/tests.rs:2:5
[INFO] [stderr]   |
[INFO] [stderr] 2 | use crate::GpuTensor;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `s`
[INFO] [stderr]  --> src/tensors/gpu_tensor/indexing/index_to_dim_stride.rs:2:13
[INFO] [stderr]   |
[INFO] [stderr] 2 | use crate::{s, ShapeStrides};
[INFO] [stderr]   |             ^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `super::broadcast_shape_and_stride`
[INFO] [stderr]  --> src/tensors/gpu_tensor/shape_changing/broadcast_tests.rs:1:5
[INFO] [stderr]   |
[INFO] [stderr] 1 | use super::broadcast_shape_and_stride;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stderr]  --> src/tensors/gpu_tensor/shape_changing/mod.rs:2:1
[INFO] [stderr]   |
[INFO] [stderr] 2 | mod broadcast_tests;
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `crate::ShapeStrides`
[INFO] [stderr]  --> src/tensors/gpu_tensor/shape_changing/broadcast_tests.rs:2:5
[INFO] [stderr]   |
[INFO] [stderr] 2 | use crate::ShapeStrides;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stderr]  --> src/tensors/gpu_tensor/shape_changing/mod.rs:2:1
[INFO] [stderr]   |
[INFO] [stderr] 2 | mod broadcast_tests;
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `GpuTensor` and `s`
[INFO] [stderr]  --> src/tensors/gpu_tensor/shape_changing/slicing_tests.rs:1:13
[INFO] [stderr]   |
[INFO] [stderr] 1 | use crate::{s, GpuTensor};
[INFO] [stderr]   |             ^  ^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr] help: if this is a test module, consider adding a `#[cfg(test)]` to the containing module
[INFO] [stderr]  --> src/tensors/gpu_tensor/shape_changing/mod.rs:3:1
[INFO] [stderr]   |
[INFO] [stderr] 3 | mod slicing_tests;
[INFO] [stderr]   | ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `TensorStructure` is never constructed
[INFO] [stderr]   --> src/tensors/gpu_tensor/gpu_ops/transpose/mod.rs:10:8
[INFO] [stderr]    |
[INFO] [stderr] 10 | struct TensorStructure {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: panic message is not a string literal
[INFO] [stderr]    --> src/tensors/cpu_tensor.rs:171:17
[INFO] [stderr]     |
[INFO] [stderr] 171 | /                 format!(
[INFO] [stderr] 172 | |                     "tried indexing element {} when dimension length was: {}",
[INFO] [stderr] 173 | |                     *idx + 1,
[INFO] [stderr] 174 | |                     shape
[INFO] [stderr] 175 | |                 )
[INFO] [stderr]     | |_________________^
[INFO] [stderr]     |
[INFO] [stderr]     = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stderr]     = note: the `assert!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stderr]     = note: `#[warn(non_fmt_panics)]` on by default
[INFO] [stderr] help: remove the `format!(..)` macro call
[INFO] [stderr]     |
[INFO] [stderr] 171 ~                 
[INFO] [stderr] 172 |                     "tried indexing element {} when dimension length was: {}",
[INFO] [stderr] 173 |                     *idx + 1,
[INFO] [stderr] 174 |                     shape
[INFO] [stderr] 175 ~                 
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stderr]    --> src/tensors/gpu_tensor/accessors_contructors.rs:126:43
[INFO] [stderr]     |
[INFO] [stderr] 126 |     pub fn slice<T: Into<SliceRangeInfo>>(&self, bounds: Vec<T>) -> GpuTensorView {
[INFO] [stderr]     |                                           ^^^^^                     ------------- the same lifetime is hidden here
[INFO] [stderr]     |                                           |
[INFO] [stderr]     |                                           the lifetime is elided here
[INFO] [stderr]     |
[INFO] [stderr]     = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stderr]     = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stderr] help: use `'_` for type paths
[INFO] [stderr]     |
[INFO] [stderr] 126 |     pub fn slice<T: Into<SliceRangeInfo>>(&self, bounds: Vec<T>) -> GpuTensorView<'_> {
[INFO] [stderr]     |                                                                                  ++++
[INFO] [stderr] 
[INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stderr]   --> src/tensors/gpu_tensor/tensor_view.rs:40:43
[INFO] [stderr]    |
[INFO] [stderr] 40 |     pub fn slice<T: Into<SliceRangeInfo>>(&self, bounds: Vec<T>) -> GpuTensorView {
[INFO] [stderr]    |                                           ^^^^^                     ------------- the same lifetime is hidden here
[INFO] [stderr]    |                                           |
[INFO] [stderr]    |                                           the lifetime is elided here
[INFO] [stderr]    |
[INFO] [stderr]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stderr] help: use `'_` for type paths
[INFO] [stderr]    |
[INFO] [stderr] 40 |     pub fn slice<T: Into<SliceRangeInfo>>(&self, bounds: Vec<T>) -> GpuTensorView<'_> {
[INFO] [stderr]    |                                                                                  ++++
[INFO] [stderr] 
[INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stderr]   --> src/tensors/gpu_tensor/traits.rs:40:25
[INFO] [stderr]    |
[INFO] [stderr] 40 |     fn to_shader_inputs(&self, binding_offset: usize) -> Vec<ShaderInput> {
[INFO] [stderr]    |                         ^^^^^ the lifetime is elided here    ----------- the same lifetime is hidden here
[INFO] [stderr]    |
[INFO] [stderr]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stderr] help: use `'_` for type paths
[INFO] [stderr]    |
[INFO] [stderr] 40 |     fn to_shader_inputs(&self, binding_offset: usize) -> Vec<ShaderInput<'_>> {
[INFO] [stderr]    |                                                                         ++++
[INFO] [stderr] 
[INFO] [stderr] warning: panic message is not a string literal
[INFO] [stderr]   --> src/tensors/gpu_tensor/indexing/mod.rs:19:17
[INFO] [stderr]    |
[INFO] [stderr] 19 | /                 format!(
[INFO] [stderr] 20 | |                     "Start ({:?}) needs to be smaller than end ({:?}).",
[INFO] [stderr] 21 | |                     start,
[INFO] [stderr] 22 | |                     isize_end - 1
[INFO] [stderr] 23 | |                 )
[INFO] [stderr]    | |_________________^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stderr]    = note: the `assert!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stderr] help: remove the `format!(..)` macro call
[INFO] [stderr]    |
[INFO] [stderr] 19 ~                 
[INFO] [stderr] 20 |                     "Start ({:?}) needs to be smaller than end ({:?}).",
[INFO] [stderr] 21 |                     start,
[INFO] [stderr] 22 |                     isize_end - 1
[INFO] [stderr] 23 ~                 
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: panic message is not a string literal
[INFO] [stderr]   --> src/tensors/gpu_tensor/indexing/index_to_dim_stride.rs:24:13
[INFO] [stderr]    |
[INFO] [stderr] 24 | /             format!(
[INFO] [stderr] 25 | |                 "Indexing out of range! Tried to get the element \
[INFO] [stderr] 26 | |                         {:?} (zero indexed) of a dimension of size: {:?}",
[INFO] [stderr] 27 | |                 start, *shape
[INFO] [stderr] 28 | |             )
[INFO] [stderr]    | |_____________^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stderr]    = note: the `assert!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stderr] help: remove the `format!(..)` macro call
[INFO] [stderr]    |
[INFO] [stderr] 24 ~             
[INFO] [stderr] 25 |                 "Indexing out of range! Tried to get the element \
[INFO] [stderr] 26 |                         {:?} (zero indexed) of a dimension of size: {:?}",
[INFO] [stderr] 27 |                 start, *shape
[INFO] [stderr] 28 ~             
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: panic message is not a string literal
[INFO] [stderr]   --> src/tensors/gpu_tensor/indexing/index_to_dim_stride.rs:39:17
[INFO] [stderr]    |
[INFO] [stderr] 39 | /                 format!(
[INFO] [stderr] 40 | |                     "Indexing out of range! Tried to get the element \
[INFO] [stderr] 41 | |                         {:?} (zero indexed) of a dimension of size: {:?}",
[INFO] [stderr] 42 | |                     inclusive_end, *shape
[INFO] [stderr] 43 | |                 )
[INFO] [stderr]    | |_________________^
[INFO] [stderr]    |
[INFO] [stderr]    = note: this usage of `assert!()` is deprecated; it will be a hard error in Rust 2021
[INFO] [stderr]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stderr]    = note: the `assert!()` macro supports formatting, so there's no need for the `format!()` macro here
[INFO] [stderr] help: remove the `format!(..)` macro call
[INFO] [stderr]    |
[INFO] [stderr] 39 ~                 
[INFO] [stderr] 40 |                     "Indexing out of range! Tried to get the element \
[INFO] [stderr] 41 |                         {:?} (zero indexed) of a dimension of size: {:?}",
[INFO] [stderr] 42 |                     inclusive_end, *shape
[INFO] [stderr] 43 ~                 
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stderr]   --> src/tensors/gpu_tensor/shape_changing/mod.rs:16:17
[INFO] [stderr]    |
[INFO] [stderr] 16 |     pub fn view(&self) -> GpuTensorView {
[INFO] [stderr]    |                 ^^^^^     ------------- the same lifetime is hidden here
[INFO] [stderr]    |                 |
[INFO] [stderr]    |                 the lifetime is elided here
[INFO] [stderr]    |
[INFO] [stderr]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stderr] help: use `'_` for type paths
[INFO] [stderr]    |
[INFO] [stderr] 16 |     pub fn view(&self) -> GpuTensorView<'_> {
[INFO] [stderr]    |                                        ++++
[INFO] [stderr] 
[INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stderr]   --> src/gpu_internals/gpu_buffers/mod.rs:64:29
[INFO] [stderr]    |
[INFO] [stderr] 64 |     pub fn to_bind_resource(&self) -> wgpu::BindingResource {
[INFO] [stderr]    |                             ^^^^^     --------------------- the same lifetime is hidden here
[INFO] [stderr]    |                             |
[INFO] [stderr]    |                             the lifetime is elided here
[INFO] [stderr]    |
[INFO] [stderr]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stderr] help: use `'_` for type paths
[INFO] [stderr]    |
[INFO] [stderr] 64 |     pub fn to_bind_resource(&self) -> wgpu::BindingResource<'_> {
[INFO] [stderr]    |                                                            ++++
[INFO] [stderr] 
[INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stderr]   --> src/gpu_internals/gpu_buffers/mod.rs:76:29
[INFO] [stderr]    |
[INFO] [stderr] 76 |     pub fn to_bind_resource(&self) -> wgpu::BindingResource {
[INFO] [stderr]    |                             ^^^^^     --------------------- the same lifetime is hidden here
[INFO] [stderr]    |                             |
[INFO] [stderr]    |                             the lifetime is elided here
[INFO] [stderr]    |
[INFO] [stderr]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stderr] help: use `'_` for type paths
[INFO] [stderr]    |
[INFO] [stderr] 76 |     pub fn to_bind_resource(&self) -> wgpu::BindingResource<'_> {
[INFO] [stderr]    |                                                            ++++
[INFO] [stderr] 
[INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stderr]   --> src/gpu_internals/shader_runner/shader_runner.rs:19:29
[INFO] [stderr]    |
[INFO] [stderr] 19 |     pub fn to_bind_resource(&self) -> BindingResource {
[INFO] [stderr]    |                             ^^^^^     --------------- the same lifetime is hidden here
[INFO] [stderr]    |                             |
[INFO] [stderr]    |                             the lifetime is elided here
[INFO] [stderr]    |
[INFO] [stderr]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stderr] help: use `'_` for type paths
[INFO] [stderr]    |
[INFO] [stderr] 19 |     pub fn to_bind_resource(&self) -> BindingResource<'_> {
[INFO] [stderr]    |                                                      ++++
[INFO] [stderr] 
[INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing
[INFO] [stderr]   --> src/gpu_internals/shader_runner/shader_runner.rs:38:26
[INFO] [stderr]    |
[INFO] [stderr] 38 |     pub fn to_bind_group(&self) -> BindGroupEntry {
[INFO] [stderr]    |                          ^^^^^     -------------- the same lifetime is hidden here
[INFO] [stderr]    |                          |
[INFO] [stderr]    |                          the lifetime is elided here
[INFO] [stderr]    |
[INFO] [stderr]    = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stderr] help: use `'_` for type paths
[INFO] [stderr]    |
[INFO] [stderr] 38 |     pub fn to_bind_group(&self) -> BindGroupEntry<'_> {
[INFO] [stderr]    |                                                  ++++
[INFO] [stderr] 
[INFO] [stderr] warning: `tensor_compute` (lib) generated 19 warnings (run `cargo fix --lib -p tensor_compute` to apply 18 suggestions)
[INFO] [stderr]     Scraping tensor_compute v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]  Documenting tensor_compute v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unresolved link to `s`
[INFO] [stderr]    --> src/tensors/mod.rs:460:67
[INFO] [stderr]     |
[INFO] [stderr] 460 |     /// An ergonomic way of creating [`SliceRangeInfo`]s is the [`s`] macro, which takes either:
[INFO] [stderr]     |                                                                   ^ no item named `s` in scope
[INFO] [stderr]     |
[INFO] [stderr]     = note: `macro_rules` named `s` exists in this crate, but it is not in scope at this link's location
[INFO] [stderr]     = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `tensor_compute` (lib doc) generated 1 warning
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.70s
[INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: wgpu-core v0.6.0
[INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1`
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/tensor_compute/index.html
[INFO] running `Command { std: "docker" "inspect" "cf4a7aaf0aba8e1a053bf0c46fefb603b5502769a9226de17b8a6558e4fa0190", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cf4a7aaf0aba8e1a053bf0c46fefb603b5502769a9226de17b8a6558e4fa0190", kill_on_drop: false }`
[INFO] [stdout] cf4a7aaf0aba8e1a053bf0c46fefb603b5502769a9226de17b8a6558e4fa0190