Skip to content

Commit

Permalink
Improve DistToolchainDescription (#566)
Browse files Browse the repository at this point in the history
Improved the parsing logic to be resilient to names with dashes in it.
  • Loading branch information
crodas authored Feb 2, 2024
1 parent 2b60ebe commit da5d21f
Show file tree
Hide file tree
Showing 5 changed files with 246 additions and 138 deletions.
5 changes: 3 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ ureq = "2.4"
members = ["component", "ci/build-channel", "ci/compare-versions"]

[dev-dependencies]
chrono = "0.4.33"
strip-ansi-escapes = "0.2.0"
1 change: 1 addition & 0 deletions src/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub const BETA_3: &str = "beta-3";
pub const BETA_4: &str = "beta-4";
pub const BETA_5: &str = "beta-5";
pub const NIGHTLY: &str = "nightly";
pub const CHANNELS: [&str; 7] = [LATEST, NIGHTLY, BETA_1, BETA_2, BETA_3, BETA_4, BETA_5];

#[derive(Debug, Deserialize, Serialize)]
pub struct HashedBinary {
Expand Down
Loading

0 comments on commit da5d21f

Please sign in to comment.