1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
use rust_releases_core::Channel;
use rust_releases_io::IoError;
pub type RustChangelogResult<T> = Result<T, RustChangelogError>;
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum RustChangelogError {
#[error("Channel {0} is not available for the 'RustChangelog' source type")]
ChannelNotAvailable(Channel),
#[error("Unable to parse release date in a release entry '{0}'")]
ChronoParseError(String),
#[error("Unable to find a valid release date in a release entry")]
NoDateInChangelogItem,
#[error("Unable to find a valid version in a release entry")]
NoVersionInChangelogItem,
#[error("{0}")]
RustReleasesIoError(#[from] IoError),
#[error("{0}, input was: {1}")]
SemverError(rust_releases_core::semver::Error, String),
#[error("{0}")]
UnrecognizedText(#[from] std::string::FromUtf8Error),
}