jesse99 / rwebserve Goto Github PK
View Code? Open in Web Editor NEWHTTP 1.1 web server framework written in Rust
HTTP 1.1 web server framework written in Rust
Hi i'm try to compile rwebserve by Rust 0.6 on Debian Wheezy
Error message
rustc --out-dir bin -L bin src/rwebserve.rc src/configuration.rs:106:16: 106:21 error: obsolete syntax: colon-separated impl syntax src/configuration.rs:106 pub impl Body : ToStr ^~~~~ note: write
impl Trait for Typesrc/configuration.rs:107:0: 107:1 error: obsolete syntax: visibility-qualified trait implementation src/configuration.rs:107 { ^ note:
pubor
privis meaningless for trait implementations, because the
impl...for...form defines overloads for methods that already exist; remove the
pubor
privsrc/configuration.rs:108:1: 108:5 error: obsolete syntax: pure function src/configuration.rs:108 pure fn to_str() -> ~str ^~~~ note: remove
puresrc/configuration.rs:149:31: 149:32 error: obsolete syntax: fn sigil in postfix position src/configuration.rs:149 pub type ResponseHandler = fn~ (config: &Config, request: &Request, response: Response) -> Response; ^ note: Rather than
fn@,
fn~, or
fn&, write
@fn,
~fn, and
&fnrespectively src/configuration.rs:149:91: 149:99 error: obsolete syntax: bare function type src/configuration.rs:149 pub type ResponseHandler = fn~ (config: &Config, request: &Request, response: Response) -> Response; ^~~~~~~~ note: use
&fnor
extern fninstead src/configuration.rs:152:30: 152:31 error: obsolete syntax: fn sigil in postfix position src/configuration.rs:152 pub type IsTemplateFile = fn~ (config: &Config, path: &str) -> bool; ^ src/configuration.rs:152:63: 152:67 error: obsolete syntax: bare function type src/configuration.rs:152 pub type IsTemplateFile = fn~ (config: &Config, path: &str) -> bool; ^~~~ src/configuration.rs:155:26: 155:27 error: obsolete syntax: fn sigil in postfix position src/configuration.rs:155 pub type RsrcLoader = fn~ (path: &Path) -> result::Result<~[u8], ~str>; ^ src/configuration.rs:155:69: 155:70 error: obsolete syntax: bare function type src/configuration.rs:155 pub type RsrcLoader = fn~ (path: &Path) -> result::Result<~[u8], ~str>; ^ src/configuration.rs:158:26: 158:27 error: obsolete syntax: fn sigil in postfix position src/configuration.rs:158 pub type RsrcExists = fn~ (path: &Path) -> bool; ^ src/configuration.rs:158:43: 158:47 error: obsolete syntax: bare function type src/configuration.rs:158 pub type RsrcExists = fn~ (path: &Path) -> bool; ^~~~ src/connection.rs:26:34: 26:41 error: expected
,but found
request src/connection.rs:26 either::Left(option::Some(move request)) => ^~~~~~~ make: *** [lib] Error 101
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.