File tree 9 files changed +21
-21
lines changed
9 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 1
- #[ macro_escape] ;
1
+ #! [ macro_escape]
2
2
3
3
use std:: str:: Chars ;
4
4
use std:: io:: IoResult ;
Original file line number Diff line number Diff line change 1
- #[ crate_id = "codegen" ] ;
1
+ #! [ crate_id = "codegen" ]
2
2
3
- #[ feature( macro_rules) ] ;
3
+ #! [ feature( macro_rules) ]
4
4
5
5
extern crate collections;
6
6
Original file line number Diff line number Diff line change 1
- #[ crate_id = "client" ] ;
1
+ #! [ crate_id = "client" ]
2
2
3
3
extern crate http;
4
4
use http:: client:: RequestWriter ;
Original file line number Diff line number Diff line change 2
2
//! configuration. Potentially useful for a smidgeon of performance comparison, though naturally
3
3
//! Apache is doing a lot more than this does.
4
4
5
- #[ crate_id = "apache_fake" ] ;
5
+ #! [ crate_id = "apache_fake" ]
6
6
7
7
extern crate time;
8
8
extern crate http;
Original file line number Diff line number Diff line change 1
1
//! A very simple HTTP server which responds with the plain text "Hello, World!" to every request.
2
2
3
- #[ crate_id = "hello_world" ] ;
3
+ #! [ crate_id = "hello_world" ]
4
4
5
5
extern crate time;
6
6
extern crate http;
Original file line number Diff line number Diff line change 1
1
//! A not-quite-trivial HTTP server which responds to requests by showing the request and response
2
2
//! headers and any other information it has.
3
3
4
- #[ crate_id = "info" ] ;
4
+ #! [ crate_id = "info" ]
5
5
6
6
extern crate time;
7
7
extern crate http;
Original file line number Diff line number Diff line change 4
4
//! This demonstrates some handling of the RequestURI, which has several possibilities and for which
5
5
//! the correct values depend on the method.
6
6
7
- #[ crate_id = "request_uri" ] ;
7
+ #! [ crate_id = "request_uri" ]
8
8
9
9
extern crate time;
10
10
extern crate http;
Original file line number Diff line number Diff line change @@ -853,7 +853,7 @@ mod test {
853
853
854
854
macro_rules! headers_mod {
855
855
{
856
- $attr:attr
856
+ #[ $attr:meta]
857
857
// Not using this because of a " local ambiguity" bug
858
858
//$($attrs:attr)*
859
859
pub mod $mod_name:ident;
@@ -869,9 +869,9 @@ macro_rules! headers_mod {
869
869
} => {
870
870
pub mod $mod_name {
871
871
//$($attrs;)*
872
- $attr;
872
+ #[ $attr]
873
873
874
- #[allow(unused_imports)];
874
+ #[allow(unused_imports)]
875
875
use std::vec::Vec;
876
876
use std::io::IoResult;
877
877
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" ]
2
2
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" ]
7
7
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/" ) ]
9
9
10
- #[ deny( non_camel_case_types) ] ;
10
+ #! [ deny( non_camel_case_types) ]
11
11
//#[deny(missing_doc)];
12
12
13
- #[ feature( macro_rules) ] ;
14
- #[ feature( phase) ] ;
15
- #[ macro_escape] ;
13
+ #! [ feature( macro_rules) ]
14
+ #! [ feature( phase) ]
15
+ #! [ macro_escape]
16
16
17
17
#[ phase( syntax, link) ] extern crate log;
18
18
extern crate url;
You can’t perform that action at this time.
0 commit comments