Skip to content

Commit

Permalink
Bump MSRV & allow serde and serde_derive to compile in parallel (#12
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dtolnay authored Jun 19, 2023
1 parent 99745d8 commit 2b1536c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
rust: ["1.56.0", stable]
rust: ["1.60.0", stable]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
Expand Down
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "clircle"
version = "0.4.0"
authors = ["Niklas Mohrin <niklas.mohrin@gmail.com>"]
license = "MIT OR Apache-2.0"
rust-version = "1.56"
rust-version = "1.60"
edition = "2021"
description = "Detect IO circles in your CLI apps arguments."
homepage = "https://github.com/niklasmohrin/clircle"
Expand All @@ -15,9 +15,11 @@ keywords = ["cycle", "arguments", "argv", "io"]

[features]
default = ["serde"]
serde = ["dep:serde", "dep:serde_derive"]

[dependencies]
serde = { version = "1.0.117", optional = true, features = ["derive"] }
serde = { version = "1.0.117", optional = true }
serde_derive = { version = "1.0.117", optional = true }
cfg-if = "1.0.0"

[target.'cfg(not(windows))'.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![CI](https://github.com/niklasmohrin/clircle/actions/workflows/ci.yml/badge.svg?branch=main&event=push)](https://github.com/niklasmohrin/clircle/actions/workflows/ci.yml)
[![crates.io version](https://img.shields.io/crates/v/clircle)](https://crates.io/crates/clircle)
[![MSRV](https://img.shields.io/badge/MSRV-1.56.0-blue)](https://blog.rust-lang.org/2021/10/21/Rust-1.56.0.html)
[![MSRV](https://img.shields.io/badge/MSRV-1.60.0-blue)](https://blog.rust-lang.org/2022/04/07/Rust-1.60.0.html)

Clircle provides a cross-platform API to detect read / write cycles from your
user-supplied arguments. You can get the important identifiers of a file (from
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ cfg_if::cfg_if! {
}

#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
use serde_derive::{Deserialize, Serialize};
use std::convert::TryFrom;
use std::fs::File;

Expand Down

0 comments on commit 2b1536c

Please sign in to comment.