Commit graph

893 commits

Author SHA1 Message Date
Thomas Hurst
4c27a9513d Disable Pinger until after MOTD
Some servers ignore PING commands until after login, so clients would
otherwise always time out, as mentioned in #207, #214, and #218.

With this change I am able to reliably connect to ircu servers.
2020-11-17 05:04:37 +00:00
Aaron Weiss
7377247c05
bumped version to 0.14.1 2020-08-06 16:13:29 -04:00
Aaron Weiss
eec391338c
Merge pull request #215 from DoumanAsh/bump_deps
Bump tokio-rustls, tokio-socks, webpki-roots, parking_lot
2020-08-06 12:31:07 -04:00
Douman
aad14af17f Bump tokio-rustls, tokio-socks, webpki-roots, parking_lot 2020-08-06 14:01:46 +02:00
Aaron Weiss
5968edd355
migrate all the examples and tests to freenode 2020-07-23 13:41:01 -04:00
Aaron Weiss
9e21dcf3c2
update contact email to hey.com address 2020-07-23 13:41:01 -04:00
Aaron Weiss
e9d18b7f48
increased default ping timeout to 20 seconds 2020-07-23 13:41:01 -04:00
Aaron Weiss
7ac4585871
ping_time is once again used to define the ping intervals 2020-07-23 13:41:01 -04:00
Aaron Weiss
99591ffeb0
Merge pull request #208 from tirz/feature-ctcp_multi_lines
feat: add multi lines support for CTCP
2020-05-14 10:56:08 -04:00
Théo Gaillard
4d0acf91a1
feat: add multi lines support for CTCP 2020-05-13 07:33:21 +08:00
Aaron Weiss
0f675e7c27
irc must specify version of irc-proto 2020-05-07 16:33:33 -04:00
Aaron Weiss
f531577935
Bumped version to 0.14.0 (for both irc and irc-proto). 2020-05-07 16:31:41 -04:00
Aaron Weiss
1be87517dd
Merge pull request #203 from tirz/feature-ssl_backends
feature: add rustls support
2020-05-07 16:26:55 -04:00
Aaron Weiss
9e9d020b47
Temporarily disable the tls-rust test.
This is blocked by some ops work on the pdgn.co servers that I don't have time for, and it's better to get this into a release sooner.
2020-05-07 16:05:14 -04:00
Théo Gaillard
67e61e0606
feature: add TLS as feature and support multiples TLS backends (currently native-tls and rustls) 2020-03-31 09:48:57 +08:00
Aaron Weiss
751c56e85b
Merge pull request #201 from tirz/feature-proxy
feature: Proxy Support
2020-03-06 20:10:56 -05:00
Aaron Weiss
aa329c019a
Merge branch 'develop' into feature-proxy 2020-03-06 19:56:36 -05:00
Aaron Weiss
e79fe76a2e
Merge pull request #202 from tirz/dependencies-update_tokio_util
Upgrade tokio-util from 0.2 to 0.3
2020-03-06 19:54:15 -05:00
Théo Gaillard
7a246f1d9c
fix: upgrade tokio-util from 0.2 to 0.3 2020-03-06 07:55:27 +08:00
Théo Gaillard
5bf3909d46
feature: add proxy config 2020-03-04 22:00:48 +08:00
Aaron Weiss
e0a9115941
fixed escaping tests 2020-01-31 17:11:28 -05:00
Aaron Weiss
b44e4bb093
Merge branch '0.14' into develop 2020-01-31 13:22:41 -05:00
Aaron Weiss
bbc99b1d20
Merge pull request #199 from belak/fix-suffix-handling
Handle suffix as a plain param
2020-01-31 13:21:10 -05:00
Kaleb Elwert
f785d15b4c Handle suffix as a plain param 2020-01-30 16:25:52 -08:00
Aaron Weiss
f488f9562e
Merge pull request #195 from belak/optional-serde
Make serde and toml optional
2020-01-30 17:08:12 -05:00
Aaron Weiss
99f772cccb
Merge pull request #192 from andreasots/tag-escapes
Escape and unescape IRCv3 message tag values
2020-01-30 17:07:43 -05:00
Andreas Ots
b903c2595e extract tag value escape and unescape functions 2020-01-30 23:39:47 +02:00
Kaleb Elwert
14e1f845f3 Add features to travis.yml 2020-01-29 15:09:10 -08:00
Kaleb Elwert
dd09555537 Make serde optional 2020-01-29 11:06:58 -08:00
Aaron Weiss
2339ca5fe6
Merge pull request #196 from belak/irc-proto-features
Properly declare required tokio-util features
2020-01-29 14:05:18 -05:00
Aaron Weiss
937b04d91b
Merge pull request #198 from belak/fix-no-user-tracking
Fix client::test::no_user_tracking
2020-01-29 14:03:43 -05:00
Aaron Weiss
52dc41df7f
Merge pull request #197 from belak/upgrade-bytes
Upgrade bytes to match irc-proto
2020-01-29 14:02:37 -05:00
Kaleb Elwert
57e5874852 Fix client::test::no_user_tracking 2020-01-28 22:11:17 -08:00
Kaleb Elwert
3d5b6004eb Upgrade additional packages 2020-01-28 18:25:35 -08:00
Kaleb Elwert
9b80f298b6 Upgrade bytes to match irc-proto 2020-01-28 18:16:48 -08:00
Kaleb Elwert
52eca3642e Properly declare required tokio-util features
Fixes #194
2020-01-28 18:14:27 -08:00
Andreas Ots
2bb980044b Escape/unescape IRCv3 message tag values 2020-01-19 11:44:27 +02:00
Aaron Weiss
a086e0913c
Merge pull request #189 from udoprog/fix-sync-resolve
Avoid synchronously resolving server address
2019-12-30 19:28:34 -05:00
Aaron Weiss
866b5a60a0
Merge pull request #188 from udoprog/fix-outgoing-state
Fix updating outgoing client state
2019-12-30 19:27:29 -05:00
John-John Tedro
b08e2a89ae Avoid synchronously resolving server address 2019-12-29 19:08:31 +01:00
John-John Tedro
731f792686 Fix updating outgoing client state
This also allows us to simplify the channel_tracking_names_part test.
2019-12-28 07:34:48 +01:00
Aaron Weiss
71a703c762
Merge pull request #186 from udoprog/config
Simplify Config structure
2019-12-27 16:57:09 -05:00
Aaron Weiss
4c756654a1
Merge pull request #187 from udoprog/fix-test-todo
Fix test which requires driving the outgoing queue
2019-12-27 16:52:57 -05:00
Aaron Weiss
8a6d8f4017
Merge pull request #185 from udoprog/thiserror
Switch to modern error handling
2019-12-27 16:50:57 -05:00
John-John Tedro
9066824213 Fix test which requires driving the outgoing queue 2019-12-27 17:36:11 +01:00
John-John Tedro
5189b69e7e Simplify Config structure
This simplifies some of the `Config` structure, in particular this
means:

Parameters which are meaningfully equivalent longer stored in
an `Option<T>`, an example of this is `channels`. If you don't
want to join any channels you simply leave it as empty instead.
In effect, `None` is behaviorally equivalent to `vec![]`.

We don't allocate when accessing certain configuration options.
For example, when accessing `channels` we used to allocate a
vector to handle the "empty case", we simply return the slice
corresponding to the list of channels instead.

We skip serializing empty or optional configuration fields.
From a deserialization perspective this is already something
that was mostly supported through use of `Option<T>` and
`#[serde(default)]`.
2019-12-27 17:12:46 +01:00
John-John Tedro
f200a9f281 Switch to modern error handling 2019-12-27 17:01:03 +01:00
Aaron Weiss
cebd250f00
Merge pull request #184 from udoprog/tokio-bump
First stab at bumping the project to tokio 0.2
2019-12-27 10:07:00 -05:00
John-John Tedro
549e2e8722 Port to tokio 0.2 2019-12-18 21:06:04 +01:00
Aaron Weiss
9bb7fa8ba2
Merge pull request #180 from AGausmann/compile-fixes
Fix compilation errors on 0.14
2019-06-13 11:50:27 -04:00