Skip to content

Commit

Permalink
MOD: Deprecate Tar packaging option
Browse files Browse the repository at this point in the history
  • Loading branch information
threecgreen committed Sep 24, 2024
1 parent 2acabfd commit 73f627c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.13.0 - TBD

#### Deprecations
- Deprecated `Packaging::Tar`. Users should switch to `Packaging::Zip`. This variant
will be removed in a future version when it is no longer supported by the API

## 0.12.1 - 2024-08-27

#### Enhancements
Expand Down
3 changes: 3 additions & 0 deletions src/historical/batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ pub enum Packaging {
/// ZIP compressed.
Zip,
/// Tarball.
#[deprecated(since = "0.13.0", note = "Users should use Zip instead")]
Tar,
}

Expand Down Expand Up @@ -475,6 +476,7 @@ impl Packaging {
pub const fn as_str(&self) -> &'static str {
match self {
Packaging::Zip => "zip",
#[allow(deprecated)]
Packaging::Tar => "tar",
}
}
Expand All @@ -492,6 +494,7 @@ impl FromStr for Packaging {
fn from_str(s: &str) -> Result<Self, Self::Err> {
match s {
"zip" => Ok(Packaging::Zip),
#[allow(deprecated)]
"tar" => Ok(Packaging::Tar),
_ => Err(crate::Error::bad_arg(
"s",
Expand Down

0 comments on commit 73f627c

Please sign in to comment.