Skip to content

Commit db4c4eb

Browse files
committed
Replace zip with zip_next
1 parent 953d80e commit db4c4eb

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ encoding_rs = "0.8"
2020
log = "0.4"
2121
serde = "1.0"
2222
quick-xml = { version = "0.31", features = ["encoding"] }
23-
zip = { version = "0.6", default-features = false, features = ["deflate"] }
23+
zip_next = { version = "1.0", default-features = false, features = ["deflate"] }
2424
chrono = { version = "0.4", features = [
2525
"serde",
2626
], optional = true, default-features = false }

src/ods.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use quick_xml::events::attributes::Attributes;
1212
use quick_xml::events::Event;
1313
use quick_xml::name::QName;
1414
use quick_xml::Reader as XmlReader;
15-
use zip::read::{ZipArchive, ZipFile};
16-
use zip::result::ZipError;
15+
use zip_next::read::{ZipArchive, ZipFile};
16+
use zip_next::result::ZipError;
1717

1818
use crate::vba::VbaProject;
1919
use crate::{Data, DataType, Metadata, Range, Reader, Sheet, SheetType, SheetVisible};
@@ -29,7 +29,7 @@ pub enum OdsError {
2929
/// Io error
3030
Io(std::io::Error),
3131
/// Zip error
32-
Zip(zip::result::ZipError),
32+
Zip(zip_next::result::ZipError),
3333
/// Xml error
3434
Xml(quick_xml::Error),
3535
/// Xml attribute error
@@ -63,7 +63,7 @@ pub enum OdsError {
6363
}
6464

6565
from_err!(std::io::Error, OdsError, Io);
66-
from_err!(zip::result::ZipError, OdsError, Zip);
66+
from_err!(zip_next::result::ZipError, OdsError, Zip);
6767
from_err!(quick_xml::Error, OdsError, Xml);
6868
from_err!(std::string::ParseError, OdsError, Parse);
6969
from_err!(std::num::ParseFloatError, OdsError, ParseFloat);

src/xlsb/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ use quick_xml::events::attributes::Attribute;
1414
use quick_xml::events::Event;
1515
use quick_xml::name::QName;
1616
use quick_xml::Reader as XmlReader;
17-
use zip::read::{ZipArchive, ZipFile};
18-
use zip::result::ZipError;
17+
use zip_next::read::{ZipArchive, ZipFile};
18+
use zip_next::result::ZipError;
1919

2020
use crate::datatype::DataRef;
2121
use crate::formats::{builtin_format_by_code, detect_custom_number_format, CellFormat};
@@ -29,7 +29,7 @@ pub enum XlsbError {
2929
/// Io error
3030
Io(std::io::Error),
3131
/// Zip error
32-
Zip(zip::result::ZipError),
32+
Zip(zip_next::result::ZipError),
3333
/// Xml error
3434
Xml(quick_xml::Error),
3535
/// Xml attribute error
@@ -82,7 +82,7 @@ pub enum XlsbError {
8282
}
8383

8484
from_err!(std::io::Error, XlsbError, Io);
85-
from_err!(zip::result::ZipError, XlsbError, Zip);
85+
from_err!(zip_next::result::ZipError, XlsbError, Zip);
8686
from_err!(quick_xml::Error, XlsbError, Xml);
8787

8888
impl std::fmt::Display for XlsbError {

src/xlsx/mod.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ use quick_xml::events::attributes::{Attribute, Attributes};
1111
use quick_xml::events::Event;
1212
use quick_xml::name::QName;
1313
use quick_xml::Reader as XmlReader;
14-
use zip::read::{ZipArchive, ZipFile};
15-
use zip::result::ZipError;
14+
use zip_next::read::{ZipArchive, ZipFile};
15+
use zip_next::result::ZipError;
1616

1717
use crate::datatype::DataRef;
1818
use crate::formats::{builtin_format_by_id, detect_custom_number_format, CellFormat};
@@ -37,7 +37,7 @@ pub enum XlsxError {
3737
/// Io error
3838
Io(std::io::Error),
3939
/// Zip error
40-
Zip(zip::result::ZipError),
40+
Zip(zip_next::result::ZipError),
4141
/// Vba error
4242
Vba(crate::vba::VbaError),
4343
/// Xml error
@@ -90,7 +90,7 @@ pub enum XlsxError {
9090
}
9191

9292
from_err!(std::io::Error, XlsxError, Io);
93-
from_err!(zip::result::ZipError, XlsxError, Zip);
93+
from_err!(zip_next::result::ZipError, XlsxError, Zip);
9494
from_err!(crate::vba::VbaError, XlsxError, Vba);
9595
from_err!(quick_xml::Error, XlsxError, Xml);
9696
from_err!(std::string::ParseError, XlsxError, Parse);

0 commit comments

Comments
 (0)