Skip to content

Commit bc11861

Browse files
committed
Remove nightly-only build and fmt configuration
1 parent 7f59e58 commit bc11861

9 files changed

Lines changed: 3 additions & 65 deletions

File tree

.github/workflows/rustfmt.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,15 @@ env:
1717
jobs:
1818
build_and_test:
1919
name: Build and test
20-
runs-on: ${{ matrix.os }}
21-
strategy:
22-
fail-fast: false
23-
matrix:
24-
os: [ubuntu-latest]
25-
rust: [stable, nightly]
20+
runs-on: ubuntu-latest
2621

2722
steps:
2823
- uses: actions/checkout@v4
2924

30-
- name: Install ${{ matrix.rust }}
25+
- name: Install stable
3126
uses: dtolnay/rust-toolchain@stable
3227
with:
33-
toolchain: ${{ matrix.rust }}
28+
toolchain: stable
3429

3530
- name: check
3631
run: cargo check --all --bins --examples --all-features

Cargo.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ hyper = { version = "1.9", features = ["server", "http1"] }
4848
http-body-util = "0.1.3"
4949
hyper-util = { version = "0.1.20", features = ["full"] }
5050

51-
[build-dependencies]
52-
version_check = "0.9.5"
53-
5451
[[example]]
5552
name = "parse_async_read"
5653
path = "examples/parse_async_read.rs"

build.rs

Lines changed: 0 additions & 6 deletions
This file was deleted.

rustfmt.toml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
style_edition = "2024"
2-
unstable_features = true
3-
4-
comment_width = 120
5-
wrap_comments = true
6-
format_code_in_doc_comments = true
7-
format_macro_bodies = true
8-
format_macro_matchers = true
9-
normalize_comments = true
10-
normalize_doc_attributes = true
11-
condense_wildcard_suffixes = true
122
newline_style = "Unix"
133
use_field_init_shorthand = true
144
use_try_shorthand = true
15-
imports_granularity = "Module"
16-
group_imports = "StdExternalCrate"

src/error.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ pub enum Error {
5757
/// Failed to decode the field data as `JSON` in
5858
/// [`field.json()`](crate::Field::json) method.
5959
#[cfg(feature = "json")]
60-
#[cfg_attr(nightly, doc(cfg(feature = "json")))]
6160
DecodeJson(serde_json::Error),
6261
}
6362

src/field.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ impl<'r> Field<'r> {
204204
/// or it cannot be properly deserialized to target type `T`. For more
205205
/// details please see [`serde_json::from_slice`].
206206
#[cfg(feature = "json")]
207-
#[cfg_attr(nightly, doc(cfg(feature = "json")))]
208207
pub async fn json<T: DeserializeOwned>(self) -> crate::Result<T> {
209208
serde_json::from_slice(&self.bytes().await?).map_err(Error::DecodeJson)
210209
}

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@
116116
trivial_casts,
117117
unused_qualifications
118118
)]
119-
#![cfg_attr(nightly, feature(doc_cfg))]
120119
#![doc(test(attr(deny(rust_2018_idioms, warnings))))]
121120
#![doc(test(attr(allow(unused_extern_crates, unused_variables))))]
122121

src/multipart.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ impl<'r> Multipart<'r> {
166166
/// # tokio::runtime::Runtime::new().unwrap().block_on(run());
167167
/// ```
168168
#[cfg(feature = "tokio-io")]
169-
#[cfg_attr(nightly, doc(cfg(feature = "tokio-io")))]
170169
pub fn with_reader<R, B>(reader: R, boundary: B) -> Self
171170
where
172171
R: AsyncRead + Unpin + Send + 'r,
@@ -203,7 +202,6 @@ impl<'r> Multipart<'r> {
203202
/// # tokio::runtime::Runtime::new().unwrap().block_on(run());
204203
/// ```
205204
#[cfg(feature = "tokio-io")]
206-
#[cfg_attr(nightly, doc(cfg(feature = "tokio-io")))]
207205
pub fn with_reader_with_constraints<R, B>(
208206
reader: R,
209207
boundary: B,

0 commit comments

Comments
 (0)