File tree Expand file tree Collapse file tree 9 files changed +21
-21
lines changed
Expand file tree Collapse file tree 9 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 1- #[ macro_escape] ;
1+ #! [ macro_escape]
22
33use std:: str:: Chars ;
44use std:: io:: IoResult ;
Original file line number Diff line number Diff line change 1- #[ crate_id = "codegen" ] ;
1+ #! [ crate_id = "codegen" ]
22
3- #[ feature( macro_rules) ] ;
3+ #! [ feature( macro_rules) ]
44
55extern crate collections;
66
Original file line number Diff line number Diff line change 1- #[ crate_id = "client" ] ;
1+ #! [ crate_id = "client" ]
22
33extern crate http;
44use http:: client:: RequestWriter ;
Original file line number Diff line number Diff line change 22//! configuration. Potentially useful for a smidgeon of performance comparison, though naturally
33//! Apache is doing a lot more than this does.
44
5- #[ crate_id = "apache_fake" ] ;
5+ #! [ crate_id = "apache_fake" ]
66
77extern crate time;
88extern crate http;
Original file line number Diff line number Diff line change 11//! A very simple HTTP server which responds with the plain text "Hello, World!" to every request.
22
3- #[ crate_id = "hello_world" ] ;
3+ #! [ crate_id = "hello_world" ]
44
55extern crate time;
66extern crate http;
Original file line number Diff line number Diff line change 11//! A not-quite-trivial HTTP server which responds to requests by showing the request and response
22//! headers and any other information it has.
33
4- #[ crate_id = "info" ] ;
4+ #! [ crate_id = "info" ]
55
66extern crate time;
77extern crate http;
Original file line number Diff line number Diff line change 44//! This demonstrates some handling of the RequestURI, which has several possibilities and for which
55//! the correct values depend on the method.
66
7- #[ crate_id = "request_uri" ] ;
7+ #! [ crate_id = "request_uri" ]
88
99extern crate time;
1010extern crate http;
Original file line number Diff line number Diff line change @@ -853,7 +853,7 @@ mod test {
853853
854854macro_rules! headers_mod {
855855 {
856- $attr:attr
856+ #[ $attr:meta]
857857 // Not using this because of a " local ambiguity" bug
858858 //$($attrs:attr)*
859859 pub mod $mod_name:ident;
@@ -869,9 +869,9 @@ macro_rules! headers_mod {
869869 } => {
870870 pub mod $mod_name {
871871 //$($attrs;)*
872- $attr;
872+ #[ $attr]
873873
874- #[allow(unused_imports)];
874+ #[allow(unused_imports)]
875875 use std::vec::Vec;
876876 use std::io::IoResult;
877877 use time;
Original file line number Diff line number Diff line change 1- #[ crate_id = "http#0.1-pre" ] ;
1+ #! [ crate_id = "http#0.1-pre" ]
22
3- #[ comment = "Rust HTTP server" ] ;
4- #[ license = "MIT/ASL2" ] ;
5- #[ crate_type = "dylib" ] ;
6- #[ crate_type = "rlib" ] ;
3+ #! [ comment = "Rust HTTP server" ]
4+ #! [ license = "MIT/ASL2" ]
5+ #! [ crate_type = "dylib" ]
6+ #! [ crate_type = "rlib" ]
77
8- #[ doc( html_root_url = "http://www.rust-ci.org/chris-morgan/rust-http/doc/" ) ] ;
8+ #! [ doc( html_root_url = "http://www.rust-ci.org/chris-morgan/rust-http/doc/" ) ]
99
10- #[ deny( non_camel_case_types) ] ;
10+ #! [ deny( non_camel_case_types) ]
1111//#[deny(missing_doc)];
1212
13- #[ feature( macro_rules) ] ;
14- #[ feature( phase) ] ;
15- #[ macro_escape] ;
13+ #! [ feature( macro_rules) ]
14+ #! [ feature( phase) ]
15+ #! [ macro_escape]
1616
1717#[ phase( syntax, link) ] extern crate log;
1818extern crate url;
You can’t perform that action at this time.
0 commit comments