Skip to content

Commit

Permalink
Drop serde feature
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecot committed Jan 23, 2024
1 parent 287013a commit 2670cc5
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 16 deletions.
6 changes: 0 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ documentation = "https://docs.rs/file-format"
exclude = ["/.github", "/examples", "/fixtures", "/tests", ".gitattributes", ".gitignore"]
rust-version = "1.60.0"

[dependencies]
serde = { version = "1.0", optional = true, features = ["derive"], default-features = false }

[features]
## Ecosystem features
serde = ["dep:serde"]

## Reader features
reader = [
"reader-asf",
Expand Down
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@ file-format = "0.23"

All features below are disabled by default.

### Ecosystem features

- `serde` - Adds the ability to serialize and deserialize a `FileFormat` and `Kind` using serde.

### Reader features

These features enable the detection of file formats that require a specific reader for
Expand Down
5 changes: 0 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ assert_eq!(fmt.kind(), Kind::Image);
All features below are disabled by default.
## Ecosystem features
- `serde` - Adds the ability to serialize and deserialize a [`FileFormat`] and [`Kind`] using serde.
## Reader features
These features enable the detection of file formats that require a specific reader for
Expand Down Expand Up @@ -321,7 +317,6 @@ impl From<&[u8]> for FileFormat {

/// A kind of file format.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
pub enum Kind {
/// Files and directories stored in a single, possibly compressed, archive.
Archive,
Expand Down
1 change: 0 additions & 1 deletion src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ macro_rules! formats {
} => {
/// A file format.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
#[cfg_attr(feature = "serde", derive(serde::Deserialize, serde::Serialize))]
pub enum FileFormat {
$(
#[doc=concat!($name, $(" (", $short_name, ")",)? ".")]
Expand Down

0 comments on commit 2670cc5

Please sign in to comment.