riptun 0.1.4

riptun is a cross platform library for creating, managing, and leveraging both sync and async TUN/TAP devices.
Documentation
Build #2472899 2025-09-03 10:47:09

# rustc version rustc 1.91.0-nightly (51ff89506 2025-09-02)

# docs.rs version docsrs 0.6.0 (8bbaf878 2025-08-22)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/riptun-0.1.4/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/riptun-0.1.4/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: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\", \"-20250902-1.91.0-nightly-51ff89506\", \"--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] a7ec8c7946b7d71c37ceeef8197c240568a717482f9e73a0d75b3d74ae1db5ca [INFO] running `Command { std: "docker" "start" "-a" "a7ec8c7946b7d71c37ceeef8197c240568a717482f9e73a0d75b3d74ae1db5ca", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tun/sync.rs:68:21 [INFO] [stderr] | [INFO] [stderr] 68 | pub fn drain<R>(&mut self, range: R) -> Drain<Queue> [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] 68 | pub fn drain<R>(&mut self, range: R) -> Drain<'_, Queue> [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tun/sync.rs:77:17 [INFO] [stderr] | [INFO] [stderr] 77 | pub fn iter(&self) -> Iter<Queue> { [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] 77 | pub fn iter(&self) -> Iter<'_, Queue> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tun/sync.rs:83:21 [INFO] [stderr] | [INFO] [stderr] 83 | pub fn iter_mut(&mut self) -> IterMut<Queue> { [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] 83 | pub fn iter_mut(&mut self) -> IterMut<'_, Queue> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tun/async/std.rs:72:21 [INFO] [stderr] | [INFO] [stderr] 72 | pub fn drain<R>(&mut self, range: R) -> Drain<AsyncStdQueue> [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] 72 | pub fn drain<R>(&mut self, range: R) -> Drain<'_, AsyncStdQueue> [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tun/async/std.rs:81:17 [INFO] [stderr] | [INFO] [stderr] 81 | pub fn iter(&self) -> Iter<AsyncStdQueue> { [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] 81 | pub fn iter(&self) -> Iter<'_, AsyncStdQueue> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tun/async/std.rs:87:21 [INFO] [stderr] | [INFO] [stderr] 87 | pub fn iter_mut(&mut self) -> IterMut<AsyncStdQueue> { [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] 87 | pub fn iter_mut(&mut self) -> IterMut<'_, AsyncStdQueue> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tun/async/tokio.rs:70:21 [INFO] [stderr] | [INFO] [stderr] 70 | pub fn drain<R>(&mut self, range: R) -> Drain<TokioQueue> [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] 70 | pub fn drain<R>(&mut self, range: R) -> Drain<'_, TokioQueue> [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tun/async/tokio.rs:79:17 [INFO] [stderr] | [INFO] [stderr] 79 | pub fn iter(&self) -> Iter<TokioQueue> { [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] 79 | pub fn iter(&self) -> Iter<'_, TokioQueue> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/tun/async/tokio.rs:85:21 [INFO] [stderr] | [INFO] [stderr] 85 | pub fn iter_mut(&mut self) -> IterMut<TokioQueue> { [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] 85 | pub fn iter_mut(&mut self) -> IterMut<'_, TokioQueue> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `riptun` (lib) generated 9 warnings (run `cargo fix --lib -p riptun` to apply 9 suggestions) [INFO] [stderr] Scraping riptun v0.1.4 (/opt/rustwide/workdir) [INFO] [stderr] Documenting riptun v0.1.4 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.12s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/riptun/index.html [INFO] running `Command { std: "docker" "inspect" "a7ec8c7946b7d71c37ceeef8197c240568a717482f9e73a0d75b3d74ae1db5ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7ec8c7946b7d71c37ceeef8197c240568a717482f9e73a0d75b3d74ae1db5ca", kill_on_drop: false }` [INFO] [stdout] a7ec8c7946b7d71c37ceeef8197c240568a717482f9e73a0d75b3d74ae1db5ca