Skip to content

Commit

Permalink
feat: use std::cell::OnceCell instead of the once_cell crate, require…
Browse files Browse the repository at this point in the history
…s bumping MSRV to Rust 1.70
  • Loading branch information
softdevca committed Feb 27, 2024
1 parent e53b0cb commit 57bae1d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
14 changes: 8 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,37 @@ version = "0.24.0"
authors = ["Johann Tuffe <[email protected]>"]
repository = "https://github.com/tafia/calamine"
documentation = "https://docs.rs/calamine"
description = "An Excel/OpenDocument Spreadsheets reader and deserializer in pure rust"
description = "An Excel/OpenDocument Spreadsheets reader and deserializer in pure Rust"
license = "MIT"
readme = "README.md"
keywords = ["excel", "ods", "xls", "xlsx", "xlsb"]
categories = ["encoding", "parsing", "text-processing"]
exclude = ["tests/**/*"]
edition = "2021"
rust-version = "1.65"
rust-version = "1.70"

[dependencies]
byteorder = "1.4"
byteorder = "1.5"
codepage = "0.1.1"
encoding_rs = "0.8"
log = "0.4"
once_cell = { version = "1.18", optional = true }
serde = "1.0"
quick-xml = { version = "0.31", features = ["encoding"] }
zip = { version = "0.6", default-features = false, features = ["deflate"] }
chrono = { version = "0.4", features = [
"serde",
], optional = true, default-features = false }
time = { version = "0.3", features = [
"serde",
], optional = true, default-features = false }

[dev-dependencies]
glob = "0.3"
env_logger = "0.10"
env_logger = "0.11"
serde_derive = "1.0"
sha256 = "1.3"

[features]
default = []
dates = ["chrono", "once_cell"]
dates = ["chrono"]
picture = []
3 changes: 1 addition & 2 deletions src/datatype.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::cell::OnceCell;
use std::fmt;

#[cfg(feature = "dates")]
use once_cell::sync::OnceCell;
use serde::de::Visitor;
use serde::{self, Deserialize};

Expand Down

0 comments on commit 57bae1d

Please sign in to comment.