Skip to content

How to build on Windows operating system? #357

@hzqd

Description

@hzqd

I cloned this project, and type cargo build --release, getting error message:

error[E0432]: unresolved imports `rlimit::getrlimit`, `rlimit::setrlimit`, `rlimit::RawRlim`, `rlimit::Resource`, `rlimit::Rlim`
  --> src\main.rs:27:14
   |
27 | use rlimit::{getrlimit, setrlimit, RawRlim, Resource, Rlim};
   |              ^^^^^^^^^  ^^^^^^^^^  ^^^^^^^  ^^^^^^^^  ^^^^ no `Rlim` in the root
   |              |          |          |        |
   |              |          |          |        no `Resource` in the root
   |              |          |          no `RawRlim` in the root
   |              |          no `setrlimit` in the root
   |              no `getrlimit` in the root

error[E0412]: cannot find type `RawRlim` in crate `rlimit`
   --> src\input.rs:115:32
    |
115 |     pub ulimit: Option<rlimit::RawRlim>,
    |                                ^^^^^^^ not found in `rlimit`

error[E0412]: cannot find type `RawRlim` in crate `rlimit`
   --> src\input.rs:219:28
    |
219 |     ulimit: Option<rlimit::RawRlim>,
    |                            ^^^^^^^ not found in `rlimit`

error[E0282]: type annotations needed
   --> src\input.rs:115:17
    |
113 |     /// Automatically ups the ULIMIT with the value you provided.
    |     ------------------------------------------------------------- this method call resolves to `T`
114 |     #[structopt(short, long)]
115 |     pub ulimit: Option<rlimit::RawRlim>,
    |                 ^^^^^^ cannot infer type for type parameter `U` declared on the associated function `map`

warning: unused import: `std::convert::TryInto`
  --> src\main.rs:29:5
   |
29 | use std::convert::TryInto;
   |     ^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `#[warn(unused_imports)]` on by default

error: aborting due to 4 previous errors; 1 warning emitted

Some errors have detailed explanations: E0282, E0412, E0432.
For more information about an error, try `rustc --explain E0282`.
error: could not compile `rustscan`

How can I build it on Windows?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions