Skip to content

v3.0.0

Compare
Choose a tag to compare
@RAnders00 RAnders00 released this 18 Jun 22:42
· 50 commits to master since this release
dd2c258
  • Breaking: Transports were refactored slightly:
    Renamed twitch_irc::TCPTransport to SecureTCPTransport, added PlainTCPTransport for plain-text IRC connections.
    Renamed twitch_irc::WSSTransport to SecureWSTransport, added PlainWSTransport for plain-text IRC-over-WebSocket-connections.
    Refactored feature flags: This crate used to only have the transport-tcp and transport-wss feature flags. The following is the new list of feature flags relevant to transports:

    • transport-tcp enables PlainTCPTransport
    • transport-tcp-native-tls enables SecureTCPTransport using OS-native TLS functionality (and using the root certificates configured in your operating system).
    • transport-tcp-rustls-native-roots enables SecureTCPTransport using rustls, but still using the root certificates configured in your operating system.
    • transport-tcp-rustls-webpki-roots enables SecureTCPTransport using rustls with root certificates provided by webpki-roots (Mozilla's root certificates). This is the most portable since it does not rely on OS-specific functionality.
    • transport-ws (notice this is now ws instead of wss) - Enables PlainWSTransport
    • transport-ws-native-tls - Enables SecureWSTransport using native TLS (same as above)
    • transport-ws-rustls-webpki-roots - Enables SecureWSTransport using rustls with Mozilla's root certificates (same as above)

    Some accompanying items have also been made pub in the crate.

  • Breaking: Updated metrics to version 0.16.

  • Minor: Added timeout, untimeout, ban and unban methods to TwitchIRCClient (#110)

  • Minor: Added serde feature, adding the ability to serialize or deserialize the command structs using serde. (#120)

  • Minor: Metrics are no longer initialized, undoing the change introduced with v2.2.0 (#129)