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
39
40
41
42
use rust_releases_core::{semver, Channel};
use rust_releases_io::IoError;
pub type ChannelManifestsResult<T> = Result<T, ChannelManifestsError>;
#[derive(Debug, thiserror::Error)]
#[non_exhaustive]
pub enum ChannelManifestsError {
#[error("Channel {0} is not available for the 'ChannelManifests' source type")]
ChannelNotAvailable(Channel),
#[error("{0}")]
DeserializeToml(#[from] toml::de::Error),
#[error("Unable to parse manifest date")]
ParseManifestDate,
#[error("Unable to parse a manifest source in the meta manifest")]
ParseManifestSource,
#[error("Unable to parse the meta manifest")]
ParseMetaManifest,
#[error("{0}")]
ParseRustVersion(#[from] semver::Error),
#[error("{0}")]
RustReleasesIoError(#[from] IoError),
#[error("Unable to find Rust version in release manifest")]
RustVersionNotFoundInManifest,
}