Using the example given in the readme, it errors because the server I'm trying to connect to uses a self-signed cert. After looking through the repo, it seems like adding the "dangerously_accept_invalid_certs" option is the right thing to do as documented here, but adding it causes the build to fail:
Compiling ircbot v0.1.0 (/home/boldaxis/ircbot)
error[E0560]: struct `irc::client::data::Config` has no field named `dangerously_accept_invalid_certs`
--> src/main.rs:11:2
|
11 | dangerously_accept_invalid_certs: true,
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `irc::client::data::Config` does not have this field
|
= note: available fields are: `owners`, `nick_password`, `alt_nicks`, `username`, `realname` ... and 21 others
For more information about this error, try `rustc --explain E0560`.
error: could not compile `ircbot` (bin "ircbot") due to previous error
This is what the Config line in my code looks like, it is otherwise unmodified from the example given in the repo:
Using the example given in the readme, it errors because the server I'm trying to connect to uses a self-signed cert. After looking through the repo, it seems like adding the "dangerously_accept_invalid_certs" option is the right thing to do as documented here, but adding it causes the build to fail:
This is what the Config line in my code looks like, it is otherwise unmodified from the example given in the repo:
I'm new to Rust and had to dig in the code to find that option so I may simply have misunderstood its usage, any guidance would be helpful. Thank you!