Commit Graph

382 Commits

Author SHA1 Message Date
David Tolnay
55fb078112
Add back a proc-macro dependency in case we find we need it 2018-05-20 17:18:26 -07:00
David Tolnay
92eba1f874
Merge pull request #73 from alexcrichton/next
Update to proc-macro2 0.4
2018-05-17 11:03:40 -07:00
David Tolnay
2d8ef48384
Brief explanation of TokenStreamExt trait 2018-05-17 10:58:28 -07:00
David Tolnay
f47adf390e
Format with rustfmt 0.7.0 2018-05-17 10:55:59 -07:00
David Tolnay
6e5f38911c
Seal the TokenStreamExt trait 2018-05-17 10:55:44 -07:00
David Tolnay
dce26ff9af
Move TokenStreamExt trait to ext.rs 2018-05-17 10:54:48 -07:00
David Tolnay
ab935db3f8
Remove references to quote/proc-macro feature 2018-05-17 10:46:01 -07:00
David Tolnay
eed3a2aba5
Optimize into_token_stream for TokenStream
This optimization used to be in the impl ToTokens for Tokens.
2018-05-17 10:41:59 -07:00
Alex Crichton
9604c635f8
Prepare for the next proc-macro2 release
Depends on alexcrichton/proc-macro2#90
2018-05-17 10:34:08 -07:00
David Tolnay
c1ff101f5f
Format example code in rustfmt style 2018-05-14 09:28:13 -07:00
David Tolnay
fa988fe9cb
Link to some limitations 2018-05-04 09:52:12 -07:00
David Tolnay
d5baceb7c5
Release 0.5.2 2018-04-21 10:40:41 -07:00
David Tolnay
8df6c7324d
Implement ToTokens for proc_macro2::Op, Group 2018-04-21 10:40:04 -07:00
David Tolnay
45d3801fde
Release 0.5.1 2018-03-31 22:59:53 +02:00
David Tolnay
4a2f2cacdd
Include readme metadata in Cargo.toml 2018-03-31 22:59:32 +02:00
David Tolnay
b4d53e67b2
Release 0.5.0 2018-03-31 22:55:49 +02:00
David Tolnay
622e7b535f
Format with rustfmt 0.4.1 2018-03-31 22:00:32 +02:00
David Tolnay
9efc2e52b3
Merge pull request #62 from staktrace/standalone
Add proc-macro feature to control the runtime dependency on rustc toolchain libs
2018-03-31 11:56:58 +02:00
Kartikaya Gupta
7ef4822746
Add a feature for linking to proc_macro.
This feature is enabled by default for backwards compatibility, but
it can be disabled in order to break the runtime dependency on
the dynamic library libproc_macro in the rustc toolchain.
2018-03-31 11:55:22 +02:00
David Tolnay
5a1b906e56
Merge pull request #66 from alexcrichton/v3
Update to the proc-macro2 0.3.0 branch
2018-03-31 11:49:21 +02:00
Alex Crichton
0f60738c5a
Update to the proc-macro2 0.3.0 branch 2018-03-31 11:48:42 +02:00
David Tolnay
062a4b9b3c
Document why quote_spanned should be formatted the way we recommend 2018-03-30 11:34:34 +02:00
David Tolnay
3bdfd716aa
Release 0.4.2 2018-01-08 13:24:19 -08:00
David Tolnay
a2aa4d09ed
Merge pull request #59 from mystor/tt_eq_hash
Implement Hash and PartialEq for quote::Tokens
2018-01-08 13:23:38 -08:00
Nika Layzell
33eb276a63 Implement Hash and PartialEq for quote::Tokens 2018-01-08 16:17:00 -05:00
David Tolnay
c8f09623ba
Release 0.4.1 2018-01-08 11:17:58 -08:00
David Tolnay
4047de7663
Implement IntoIterator for Tokens
This allows a Tokens to be passed to Tokens::append_all.

    tokens.append_all(quote!(...));
2018-01-08 11:15:53 -08:00
David Tolnay
5520c53d81
Release 0.4.0 2018-01-08 08:11:41 -08:00
David Tolnay
8b457c25cf
Upgrade to proc-macro2 0.2 2018-01-08 08:10:29 -08:00
David Tolnay
3569255089
Set html_root_url 2018-01-08 08:08:21 -08:00
David Tolnay
3688c4a4ca
Readme for quote 0.4 2018-01-06 10:44:23 -08:00
David Tolnay
92b47f21c3
Doc tweaks 2018-01-06 10:40:59 -08:00
David Tolnay
a3ef0148c6
Crate-level documentation 2018-01-06 10:24:39 -08:00
David Tolnay
2a88cd835a
Tokens documentation 2018-01-06 10:24:32 -08:00
David Tolnay
0510e99ecb
Implement ToTokens for TokenNode 2018-01-06 09:58:09 -08:00
David Tolnay
63e52822c3
Implement ToTokens for Literal 2018-01-06 09:57:33 -08:00
David Tolnay
cf3b56392c
Default for Tokens can be derived 2018-01-06 09:56:21 -08:00
David Tolnay
1f11ce282e
Organize ToTokens implementations 2018-01-06 09:55:34 -08:00
David Tolnay
4189356a5d
Remove ByteStr
Users can now build a `Literal::byte_string(bytes)` and interpolate that.
2018-01-06 09:48:29 -08:00
David Tolnay
9ae2877249
ToTokens documentation 2018-01-06 09:44:39 -08:00
David Tolnay
cf9813f9c2
Fix doc tests for rust 1.15.1 build 2018-01-06 09:33:00 -08:00
David Tolnay
f9b9814535
Document quote_spanned macro 2018-01-06 09:29:14 -08:00
David Tolnay
5a38414168
Document quote macro 2018-01-06 08:30:31 -08:00
David Tolnay
287e9e8f6f
Less subtle quote_spanned delimiter 2018-01-06 08:07:51 -08:00
David Tolnay
0625b2fe07
Reduce surface area of Tokens 2017-12-31 18:16:57 -05:00
David Tolnay
1454aee700
Make the realistic example compile 2017-12-28 01:24:11 -05:00
David Tolnay
4930318324
Use rust highlighting now that it has been fixed 2017-12-28 01:21:59 -05:00
David Tolnay
07d2a777fb
Unignore the extern crate example 2017-12-28 01:21:20 -05:00
David Tolnay
c6ce64234e
Fix ToTokens::to_tokens example code 2017-12-28 01:20:32 -05:00
David Tolnay
fbe5e138ff
Hide __rt module from documentation 2017-12-28 01:07:03 -05:00