Giter Site home page Giter Site logo

Comments (1)

zonyitoo avatar zonyitoo commented on July 24, 2024

The reason I want to replace this deprecate crate is that my Project build was failed on snapcraft with architecture ppc64el,

   Compiling ioctl-sys v0.8.0
:: error[E0432]: unresolved import `self::consts`
::   --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ioctl-sys-0.8.0/src/platform/linux.rs:61:15
::    |
:: 61 | pub use self::consts::*;
::    |               ^^^^^^ could not find `consts` in `self`
::
:: error[E0432]: unresolved import `this_arch_not_supported`
::   --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ioctl-sys-0.8.0/src/platform/linux.rs:37:5
::    |
:: 37 | use this_arch_not_supported;
::    |     ^^^^^^^^^^^^^^^^^^^^^^^ no `this_arch_not_supported` in the root
::
:: error[E0425]: cannot find value `SIZEBITS` in this scope
::   --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ioctl-sys-0.8.0/src/platform/mod.rs:28:39
::    |
:: 28 | pub const DIRSHIFT: u32 = SIZESHIFT + SIZEBITS as u32;
::    |                                       ^^^^^^^^ not found in this scope
::
:: error[E0425]: cannot find value `SIZEBITS` in this scope
::   --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ioctl-sys-0.8.0/src/platform/mod.rs:35:33
::    |
:: 35 | pub const SIZEMASK: u32 = (1 << SIZEBITS) - 1;
::    |                                 ^^^^^^^^ not found in this scope
::
:: error[E0425]: cannot find value `DIRBITS` in this scope
::   --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ioctl-sys-0.8.0/src/platform/mod.rs:37:32
::    |
:: 2  | pub const NRBITS: u32 = 8;
::    | -------------------------- similarly named constant `NRBITS` defined here
:: ...
:: 37 | pub const DIRMASK: u32 = (1 << DIRBITS) - 1;
::    |                                ^^^^^^^ help: a constant with a similar name exists: `NRBITS`
::
:: error[E0425]: cannot find value `WRITE` in this scope
::    --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ioctl-sys-0.8.0/src/platform/mod.rs:261:22
::     |
:: 261 | pub const IN: u32 = (WRITE as u32) << DIRSHIFT;
::     |                      ^^^^^ not found in this scope
::
:: error[E0425]: cannot find value `READ` in this scope
::    --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ioctl-sys-0.8.0/src/platform/mod.rs:263:23
::     |
:: 263 | pub const OUT: u32 = (READ as u32) << DIRSHIFT;
::     |                       ^^^^ not found in this scope
::
:: error[E0425]: cannot find value `READ` in this scope
::    --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ioctl-sys-0.8.0/src/platform/mod.rs:265:26
::     |
:: 265 | pub const INOUT: u32 = ((READ | WRITE) as u32) << DIRSHIFT;
::     |                          ^^^^ not found in this scope
::
:: error[E0425]: cannot find value `WRITE` in this scope
::    --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/ioctl-sys-0.8.0/src/platform/mod.rs:265:33
::     |
:: 265 | pub const INOUT: u32 = ((READ | WRITE) as u32) << DIRSHIFT;
::     |                                 ^^^^^ not found in this scope
::

This is because ioctl-sys doesn't support ppc64el-* targets.

from rust-tun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.