Commit graph

885 commits

Author SHA1 Message Date
John-John Tedro
f02362c782 Mark Future in PackedIrcClient as Send + 'static 2019-03-17 11:52:48 +01:00
Aaron Weiss
48b5adf33b
Merge pull request #173 from dgriffen/dev/dgriffen/non-sequential-handler
spawn handler futures on the reactor
2019-01-14 10:16:43 -05:00
Daniel Griffen
971a386ca0
spawn handler futures on the reactor 2019-01-09 20:18:38 -08:00
Aaron Weiss
885e96a495
Merge pull request #171 from Blajda/handle_single_soh
Handle the case of a single SOH in PRIVMSG
2019-01-04 13:21:49 -05:00
David Blajda
199f591e78 Handle the case of a single SOH in PRIVMSG 2019-01-03 19:33:17 +00:00
Aaron Weiss
e3decd470d
Merge pull request #161 from FauxFaux/parse-user
parse traditional USER form
2018-10-21 13:36:00 -04:00
Chris West (Faux)
99fe1256e1 parse traditional USER form
Fixes: #160
2018-10-21 12:25:08 +01:00
Aaron Weiss
47d9c4c78b
Merge pull request #149 from brigand/feat/develop/message-prefix
Introduces Prefix enum
2018-10-15 11:16:30 -04:00
Aaron Weiss
d75ca3b072
Merge pull request #159 from Bassetts/ci-bot
Add test bot for CI
2018-10-13 20:30:04 -04:00
Jason Liquorish
cdf874c23e Re-format ci bot message 2018-10-12 23:11:02 +01:00
Jason Liquorish
f1d7d71471 Add test bot for CI 2018-10-09 19:06:16 +01:00
Aaron Weiss
771200e503
Merge pull request #157 from theduke/packed-client-send-bound
Add 'Send' bound for PackedClient client future.
2018-10-04 14:43:00 -04:00
Christoph Herzog
e112efe7dd Add 'Send' bound for PackedClient client future.
The Future is Send anyway, but this bound on the Box is neccessary
to use the future across threads because the compiler can't figure
out the Send bound otherwise.
2018-10-04 18:20:41 +02:00
Aaron Weiss
8d054dc281
Merge pull request #155 from theduke/owned-config
Refactor IrcClientFuture and ConnectionFuture to own the config
2018-10-03 21:13:57 -04:00
Christoph Herzog
e5089fa317 Use tokio::net::tcp::ConnectFuture instead of deprecated re-export. 2018-10-04 02:53:56 +02:00
Christoph Herzog
2aff64b645 Refactor IrcClientFuture and ConnectionFuture to own the config
This commit refactors IrcClientFuture and ConnectionFuture to own
the config instead of holding a reference.

This is required for reconnecting in dynamic contexts.
This is not possible with the old API, because Config is a reference,
requiring the value to live for the whole execution of the reactor.
2018-10-04 02:52:53 +02:00
Aaron Weiss
df17992f6d
Removed protocol keyword (preventing publish). 2018-10-03 12:54:13 -04:00
Aaron Weiss
0f6f72d4c7
Merge pull request #154 from aatxe/develop
Finalize 0.13.6.
2018-10-03 12:53:14 -04:00
Aaron Weiss
f932f60934
Merge branch 'stable' into develop 2018-10-03 11:37:11 -04:00
Aaron Weiss
cf9a93127a
Bumped version number to 0.13.6. 2018-10-03 11:34:37 -04:00
Aaron Weiss
6c9d7243a7
Merge pull request #153 from nuxeh/edcragg/add-url-bot-rs-link
Add a link to url-bot-rs
2018-10-03 11:34:28 -04:00
nuxeh
16a59a96f8 Add a link to url-bot-rs
Add a link to url-bot-rs, a project making use of this crate, to the readme.
2018-10-03 16:11:03 +01:00
Aaron Weiss
0534ab061f
Merge pull request #152 from DoumanAsh/remove_tokio_core
Clean up tokio-core
2018-09-22 17:23:42 -04:00
Douman
23112f7582 Clean up tokio-core 2018-09-22 23:43:47 +03:00
Frankie Bagnardi
687b374801 ParseError -> () 2018-09-18 00:16:23 -07:00
Frankie Bagnardi
c9e6f6663f fixes issues from review 2018-09-18 00:14:33 -07:00
Frankie Bagnardi
5a50e4eea8 WIP prefix fixes 2018-09-17 23:55:35 -07:00
Frankie Bagnardi
4728e85e0e prefix docs 2018-09-17 22:39:48 -07:00
Frankie Bagnardi
ddcd120313 prefix uses Nickname(String, String, String) 2018-09-17 22:36:36 -07:00
Frankie Bagnardi
f66dcd6b0a rebased 2018-09-17 22:03:22 -07:00
Frankie Bagnardi
140c981e63 prefix cleanup and docs 2018-09-17 22:00:52 -07:00
Frankie Bagnardi
5e723425e3 proto::message uses Prefix 2018-09-17 22:00:52 -07:00
Frankie Bagnardi
c44ec0984e Prefix with FromStr and Display 2018-09-17 21:59:02 -07:00
Aaron Weiss
f109c10475
Fixed a warning in config.rs (for some tests) and the README example. 2018-09-17 18:08:21 -04:00
Aaron Weiss
befe0ada84
Removed the old colors module (now in irc_proto). 2018-09-17 17:56:14 -04:00
Aaron Weiss
acbdb1de2f
Merge branch 'develop' into 0.14 2018-09-17 17:54:09 -04:00
Aaron Weiss
53fb890a7e
Merged develop onto 0.14 (which was tricky, and this might have introduced bugs?). 2018-09-17 17:50:53 -04:00
Aaron Weiss
34592c3368
Merge pull request #148 from Jokler/openssl-upgrade
Upgrade native-tls and tokio-tls to 0.2
2018-09-17 01:52:15 -04:00
Jokler
0be5cb26c8 Upgrade native-tls and tokio-tls to 0.2 2018-09-17 02:11:25 +02:00
Aaron Weiss
c8aed29e80
Merge pull request #145 from Kroisse/fix/develop/strip_formatting
Make stripping color codes efficiently
2018-09-07 11:00:06 -04:00
Eunchong Yu
8d07c117bb Polish the parser 2018-09-01 06:51:25 +09:00
Eunchong Yu
c311d37902 Use macro 2018-09-01 06:51:25 +09:00
Eunchong Yu
e7fe08f29d Make is_formatted simple 2018-09-01 06:51:24 +09:00
Eunchong Yu
b108c833bb Reduce allocation more
String::strip_formatting will do most of operations in place.
2018-09-01 06:51:24 +09:00
Eunchong Yu
4feafc681a Reduce memcpy case in strip_formatting
This makes the return type of FormattedStringExt::strip_formatting
more meaningful.

Drawbacks:

  In theory, it breaks backward compatbility due to the shape of
FormattedStringExt trait was changed. But I expected it's not the
problem for the most case because it's rare to implement that trait
while using this library.
2018-09-01 06:51:24 +09:00
Eunchong Yu
c7c65ef671 Fix infinite recursive calls
It reverts #137.
2018-09-01 06:51:24 +09:00
Aaron Weiss
45deaa0978
Merge pull request #146 from Kroisse/fix/develop/deprecations
Fix deprecated codes
2018-08-27 19:27:08 -04:00
Eunchong Yu
8ffac6bef0 Replace deprecated tokio_io::codec to tokio_codec 2018-08-19 09:18:50 +09:00
Eunchong Yu
1cf7744156 Clarify to prevent unintended recursions 2018-08-19 08:54:22 +09:00
Eunchong Yu
12003c880c Remove deprecated AsciiExt 2018-08-19 08:50:38 +09:00