glium 0.14.0

Elegant and safe OpenGL wrapper. Glium is an intermediate layer between OpenGL and your application. You still need to manually handle the graphics pipeline, but without having to use OpenGL's old and error-prone API. Its objectives: - Be safe to use. Many aspects of OpenGL that can trigger a crash if misused are automatically handled by glium. - Provide an API that enforces good pratices such as RAII or stateless function calls. - Be compatible with all OpenGL versions that support shaders, providing unified API when things diverge. - Avoid all OpenGL errors beforehand. - Produce optimized OpenGL function calls, and allow the user to easily use modern OpenGL techniques.
Documentation
Build #855027 2023-07-06T06:15:50.753230+00:00
# rustc version
rustc 1.72.0-nightly (d9c13cd45 2023-07-05)# docs.rs version
docsrs 0.6.0 (eb803472 2023-06-29)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/glium-0.14.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/glium-0.14.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" "3221225472" "--cpus" "3" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a420fdec406141845121210faa381f8029b0be6d4170deff7c4445a424f67918" "/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\", \"-20230705-1.72.0-nightly-d9c13cd45\", \"--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] [stdout] 216b2189cadfb8abbba056b389a0a651aaa0a98eec6d9637657f0444d90cb921
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "216b2189cadfb8abbba056b389a0a651aaa0a98eec6d9637657f0444d90cb921", kill_on_drop: false }`
[INFO] [stderr] warning: Rustdoc did not scrape the following examples because they require dev-dependencies: tutorial-07, info, tutorial-13, tessellation, tutorial-10, fxaa, sprites-batching, gpgpu, picking, displacement_mapping, tutorial-06, subroutines, tutorial-02, image, screenshot, tutorial-08, tutorial-14, deferred, blitting, manual-creation, tutorial-12, triangle, teapot, tutorial-09, instancing, fullscreen, tutorial-04, tutorial-05
[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] warning: variable does not need to be mutable
[INFO] [stderr]   --> build/textures.rs:57:37
[INFO] [stderr]    |
[INFO] [stderr] 57 | pub fn build_texture_file<W: Write>(mut dest: &mut W) {
[INFO] [stderr]    |                                     ----^^^^
[INFO] [stderr]    |                                     |
[INFO] [stderr]    |                                     help: remove this `mut`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> build/textures.rs:137:28
[INFO] [stderr]     |
[INFO] [stderr] 137 | fn build_texture<W: Write>(mut dest: &mut W, ty: TextureType, dimensions: TextureDimensions) {
[INFO] [stderr]     |                            ----^^^^
[INFO] [stderr]     |                            |
[INFO] [stderr]     |                            help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]     --> build/textures.rs:1375:39
[INFO] [stderr]      |
[INFO] [stderr] 1375 | fn write_dimensions_getters<W: Write>(mut dest: &mut W, dimensions: TextureDimensions,
[INFO] [stderr]      |                                       ----^^^^
[INFO] [stderr]      |                                       |
[INFO] [stderr]      |                                       help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: `glium` (build script) generated 3 warnings
[INFO] [stderr]  Documenting glium v0.14.0 (/opt/rustwide/workdir)
[INFO] [stderr] warning: unnecessary trailing semicolon
[INFO] [stderr]     --> src/program/reflection.rs:1186:68
[INFO] [stderr]      |
[INFO] [stderr] 1186 |                 let mut subroutine_name_tmp: Vec<u8> = vec![0; 64];;
[INFO] [stderr]      |                                                                    ^ help: remove this semicolon
[INFO] [stderr]      |
[INFO] [stderr]      = note: `#[warn(redundant_semicolons)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `...` range patterns are deprecated
[INFO] [stderr]     --> src/image_format.rs:1808:28
[INFO] [stderr]      |
[INFO] [stderr] 1808 |                     Some(1 ... 3) => gl::SRGB8,
[INFO] [stderr]      |                            ^^^ help: use `..=` for an inclusive range
[INFO] [stderr]      |
[INFO] [stderr]      = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stderr]      = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr]      = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `...` range patterns are deprecated
[INFO] [stderr]     --> src/image_format.rs:1845:36
[INFO] [stderr]      |
[INFO] [stderr] 1845 | ...                   Some(1 ... 3) => gl::COMPRESSED_SRGB,
[INFO] [stderr]      |                              ^^^ help: use `..=` for an inclusive range
[INFO] [stderr]      |
[INFO] [stderr]      = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stderr]      = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stderr] 
[INFO] [stderr] warning: missing documentation for a variant
[INFO] [stderr]    --> src/buffer/mod.rs:282:5
[INFO] [stderr]     |
[INFO] [stderr] 282 |     ArrayBuffer,
[INFO] [stderr]     |     ^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr] note: the lint level is defined here
[INFO] [stderr]    --> src/lib.rs:87:9
[INFO] [stderr]     |
[INFO] [stderr] 87  | #![warn(missing_docs)]
[INFO] [stderr]     |         ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing documentation for a variant
[INFO] [stderr]    --> src/buffer/mod.rs:283:5
[INFO] [stderr]     |
[INFO] [stderr] 283 |     PixelPackBuffer,
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing documentation for a variant
[INFO] [stderr]    --> src/buffer/mod.rs:284:5
[INFO] [stderr]     |
[INFO] [stderr] 284 |     PixelUnpackBuffer,
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing documentation for a variant
[INFO] [stderr]    --> src/buffer/mod.rs:285:5
[INFO] [stderr]     |
[INFO] [stderr] 285 |     UniformBuffer,
[INFO] [stderr]     |     ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing documentation for a variant
[INFO] [stderr]    --> src/buffer/mod.rs:286:5
[INFO] [stderr]     |
[INFO] [stderr] 286 |     CopyReadBuffer,
[INFO] [stderr]     |     ^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing documentation for a variant
[INFO] [stderr]    --> src/buffer/mod.rs:287:5
[INFO] [stderr]     |
[INFO] [stderr] 287 |     CopyWriteBuffer,
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing documentation for a variant
[INFO] [stderr]    --> src/buffer/mod.rs:288:5
[INFO] [stderr]     |
[INFO] [stderr] 288 |     AtomicCounterBuffer,
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing documentation for a variant
[INFO] [stderr]    --> src/buffer/mod.rs:289:5
[INFO] [stderr]     |
[INFO] [stderr] 289 |     DispatchIndirectBuffer,
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing documentation for a variant
[INFO] [stderr]    --> src/buffer/mod.rs:290:5
[INFO] [stderr]     |
[INFO] [stderr] 290 |     DrawIndirectBuffer,
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing documentation for a variant
[INFO] [stderr]    --> src/buffer/mod.rs:291:5
[INFO] [stderr]     |
[INFO] [stderr] 291 |     QueryBuffer,
[INFO] [stderr]     |     ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing documentation for a variant
[INFO] [stderr]    --> src/buffer/mod.rs:292:5
[INFO] [stderr]     |
[INFO] [stderr] 292 |     ShaderStorageBuffer,
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing documentation for a variant
[INFO] [stderr]    --> src/buffer/mod.rs:293:5
[INFO] [stderr]     |
[INFO] [stderr] 293 |     TextureBuffer,
[INFO] [stderr]     |     ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing documentation for a variant
[INFO] [stderr]    --> src/buffer/mod.rs:294:5
[INFO] [stderr]     |
[INFO] [stderr] 294 |     TransformFeedbackBuffer,
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing documentation for a variant
[INFO] [stderr]    --> src/buffer/mod.rs:295:5
[INFO] [stderr]     |
[INFO] [stderr] 295 |     ElementArrayBuffer,
[INFO] [stderr]     |     ^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: missing documentation for a module
[INFO] [stderr]    --> src/lib.rs:132:1
[INFO] [stderr]     |
[INFO] [stderr] 132 | pub mod program;
[INFO] [stderr]     | ^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/image_format.rs:1038:38
[INFO] [stderr]      |
[INFO] [stderr] 1038 |     /// S3TC DXT1 without alpha, see https://www.opengl.org/wiki/S3_Texture_Compression.
[INFO] [stderr]      |                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://www.opengl.org/wiki/S3_Texture_Compression.>`
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr]      = note: `#[warn(rustdoc::bare_urls)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/image_format.rs:1040:41
[INFO] [stderr]      |
[INFO] [stderr] 1040 |     /// S3TC DXT1 with 1-bit alpha, see https://www.opengl.org/wiki/S3_Texture_Compression.
[INFO] [stderr]      |                                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://www.opengl.org/wiki/S3_Texture_Compression.>`
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/image_format.rs:1042:24
[INFO] [stderr]      |
[INFO] [stderr] 1042 |     /// S3TC DXT3, see https://www.opengl.org/wiki/S3_Texture_Compression.
[INFO] [stderr]      |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://www.opengl.org/wiki/S3_Texture_Compression.>`
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] 
[INFO] [stderr] warning: this URL is not a hyperlink
[INFO] [stderr]     --> src/image_format.rs:1044:24
[INFO] [stderr]      |
[INFO] [stderr] 1044 |     /// S3TC DXT5, see https://www.opengl.org/wiki/S3_Texture_Compression.
[INFO] [stderr]      |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use an automatic link instead: `<https://www.opengl.org/wiki/S3_Texture_Compression.>`
[INFO] [stderr]      |
[INFO] [stderr]      = note: bare URLs are not automatically turned into clickable links
[INFO] [stderr] 
[INFO] [stderr] warning: unclosed HTML tag `RawImage1d`
[INFO] [stderr]    --> src/texture/mod.rs:451:24
[INFO] [stderr]     |
[INFO] [stderr] 451 |     ///Transforms a Vec<RawImage1d> into a RawImage2d
[INFO] [stderr]     |                        ^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(rustdoc::invalid_html_tags)]` on by default
[INFO] [stderr] help: try marking as source code
[INFO] [stderr]     |
[INFO] [stderr] 451 |     ///Transforms a `Vec<RawImage1d>` into a RawImage2d
[INFO] [stderr]     |                     +               +
[INFO] [stderr] 
[INFO] [stderr] warning: unclosed HTML tag `RawImage2d`
[INFO] [stderr]    --> src/texture/mod.rs:566:24
[INFO] [stderr]     |
[INFO] [stderr] 566 |     ///Transforms a Vec<RawImage2d> into a RawImage3d
[INFO] [stderr]     |                        ^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr] help: try marking as source code
[INFO] [stderr]     |
[INFO] [stderr] 566 |     ///Transforms a `Vec<RawImage2d>` into a RawImage3d
[INFO] [stderr]     |                     +               +
[INFO] [stderr] 
[INFO] [stderr] warning: `glium` (lib doc) generated 24 warnings (run `cargo fix --lib -p glium` to apply 6 suggestions)
[INFO] [stderr]     Finished dev [unoptimized + debuginfo] target(s) in 3.60s
[INFO] running `Command { std: "docker" "inspect" "216b2189cadfb8abbba056b389a0a651aaa0a98eec6d9637657f0444d90cb921", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "216b2189cadfb8abbba056b389a0a651aaa0a98eec6d9637657f0444d90cb921", kill_on_drop: false }`
[INFO] [stdout] 216b2189cadfb8abbba056b389a0a651aaa0a98eec6d9637657f0444d90cb921