# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO # # When uploading crates to the registry Cargo will automatically # "normalize" Cargo.toml files for maximal compatibility # with all versions of Cargo and also rewrite `path` dependencies # to registry (e.g., crates.io) dependencies. # # If you are reading this file be aware that the original Cargo.toml # will likely look very different (and much more reasonable). # See Cargo.toml.orig for the original contents. [package] edition = "2021" name = "twitch-irc" version = "5.0.1" authors = ["Ruben Anders "] description = "Connect to Twitch chat from a Rust application." readme = "README.md" keywords = [ "twitch", "twitch-irc", "twitch-api", ] categories = [ "api-bindings", "asynchronous", "network-programming", "parser-implementations", ] license = "MIT" repository = "https://github.com/robotty/twitch-irc-rs" [package.metadata.docs.rs] features = [ "refreshing-token-rustls-webpki-roots", "transport-tcp", "transport-tcp-rustls-webpki-roots", "transport-ws", "transport-ws-rustls-webpki-roots", "metrics-collection", "with-serde", ] no-default-features = true [lib] name = "twitch_irc" path = "src/lib.rs" [[example]] name = "simple_listener" required-features = [ "transport-tcp", "transport-tcp-native-tls", ] [dependencies.async-trait] version = "0.1" [dependencies.async-tungstenite] version = "0.23" features = ["tokio-runtime"] optional = true [dependencies.bytes] version = "1" optional = true [dependencies.chrono] version = "0.4" default-features = false [dependencies.either] version = "1" [dependencies.enum_dispatch] version = "0.3" [dependencies.futures-util] version = "0.3" features = [ "async-await", "sink", "std", ] default-features = false [dependencies.prometheus] version = "0.13" optional = true default-features = false [dependencies.reqwest] version = "0.11" features = ["json"] optional = true default-features = false [dependencies.rustls-native-certs] version = "0.6" optional = true [dependencies.serde] version = "1" features = ["derive"] optional = true [dependencies.smallvec] version = "1" [dependencies.thiserror] version = "1" [dependencies.tokio] version = "1" features = [ "rt", "time", "sync", "macros", ] [dependencies.tokio-native-tls] version = "0.3" optional = true [dependencies.tokio-rustls] version = "0.24" optional = true [dependencies.tokio-stream] version = "0.1" features = ["io-util"] optional = true [dependencies.tokio-util] version = "0.7" features = ["codec"] optional = true [dependencies.tracing] version = "0.1" [dependencies.webpki-roots] version = "0.25" optional = true [dev-dependencies.maplit] version = "1" [dev-dependencies.serde_json] version = "1" [dev-dependencies.tokio] version = "1" features = ["rt-multi-thread"] [dev-dependencies.tracing-subscriber] version = "0.3" [features] __refreshing-token = [ "with-serde", "chrono/clock", ] default = [ "transport-tcp", "transport-tcp-native-tls", ] metrics-collection = ["prometheus"] refreshing-token-native-tls = [ "reqwest/native-tls", "__refreshing-token", ] refreshing-token-rustls-native-roots = [ "reqwest/rustls-tls-native-roots", "__refreshing-token", ] refreshing-token-rustls-webpki-roots = [ "reqwest/rustls-tls-webpki-roots", "__refreshing-token", ] transport-tcp = [ "bytes", "tokio/net", "tokio/io-util", "tokio-util", "tokio-stream", ] transport-tcp-native-tls = [ "transport-tcp", "tokio-native-tls", ] transport-tcp-rustls-native-roots = [ "transport-tcp", "tokio-rustls", "rustls-native-certs", ] transport-tcp-rustls-webpki-roots = [ "transport-tcp", "tokio-rustls", "webpki-roots", ] transport-ws = [ "async-tungstenite", "tokio-util", ] transport-ws-native-tls = [ "transport-ws", "async-tungstenite/tokio-native-tls", ] transport-ws-rustls-native-roots = [ "transport-ws", "async-tungstenite/tokio-rustls-native-certs", ] transport-ws-rustls-webpki-roots = [ "transport-ws", "async-tungstenite/tokio-rustls-webpki-roots", ] with-serde = [ "serde", "chrono/serde", ]