Giter Site home page Giter Site logo

nntp-rs's People

Contributors

miquels avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

nntp-rs's Issues

Build fails

I tried building master with both stable & nightly on macOS:

   Compiling nntp-rs-server v0.1.0 (/Users/moritz/code/nntp-rs)
error[E0425]: cannot find function `posix_fadvise` in module `libc`
   --> src/spool/diablo.rs:193:23
    |
193 |                 libc::posix_fadvise(file.as_raw_fd(), loc.pos as libc::off_t,
    |                       ^^^^^^^^^^^^^ did you mean `posix_madvise`?

error[E0425]: cannot find value `POSIX_FADV_WILLNEED` in module `libc`
   --> src/spool/diablo.rs:194:60
    |
194 |                                 size as libc::off_t, libc::POSIX_FADV_WILLNEED);
    |                                                            ^^^^^^^^^^^^^^^^^^^ did you mean `POSIX_MADV_WILLNEED`?

warning: unused import: `std::fs`
 --> src/logger.rs:3:5
  |
3 | use std::fs;
  |     ^^^^^^^
  |
  = note: #[warn(unused_imports)] on by default

warning: unused import: `std::panic::AssertUnwindSafe`
 --> src/server.rs:4:5
  |
4 | use std::panic::AssertUnwindSafe;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error[E0081]: discriminant value `0` already exists
  --> src/util/clock.rs:40:22
   |
38 |     Realtime = libc::CLOCK_REALTIME as isize,
   |                ----------------------------- first use of `0`
39 |     /// on this non-linux platform RealtimeCoarse is the same as Realtime
40 |     RealtimeCoarse = libc::CLOCK_REALTIME as isize,
   |                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ enum already has `0`

error[E0081]: discriminant value `6` already exists
  --> src/util/clock.rs:44:23
   |
42 |     Monotonic = libc::CLOCK_MONOTONIC as isize,
   |                 ------------------------------ first use of `6`
43 |     /// on this non-linux platform MonotonicCoarse is the same as Monotonic
44 |     MonotonicCoarse = libc::CLOCK_MONOTONIC as isize,
   |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ enum already has `6`

error: aborting due to 4 previous errors

Some errors occurred: E0081, E0425.
For more information about an error, try `rustc --explain E0081`.
error: Could not compile `nntp-rs-server`.

To learn more, run the command again with --verbose.

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.