miquels / nntp-rs Goto Github PK
View Code? Open in Web Editor NEWNNTP server implementation in Rust. Diablo dhistory / spool compatible. WORK IN PROGRESS.
License: MIT License
NNTP server implementation in Rust. Diablo dhistory / spool compatible. WORK IN PROGRESS.
License: MIT License
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.